mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-29 03:47:31 +09:00
Issue #2101 - Part 2: Use stdint.h types instead of uint8 and friends
Required for upcoming libyuv update
This commit is contained in:
parent
c0c76cd455
commit
42f3296899
19 changed files with 431 additions and 451 deletions
|
|
@ -15,33 +15,27 @@
|
|||
extern "C" {
|
||||
// Can only do 1x.
|
||||
// This is the second fastest of the scalers.
|
||||
void FastConvertYUVToRGB32Row(const uint8* y_buf,
|
||||
const uint8* u_buf,
|
||||
const uint8* v_buf,
|
||||
uint8* rgb_buf,
|
||||
void FastConvertYUVToRGB32Row(const uint8_t* y_buf,
|
||||
const uint8_t* u_buf,
|
||||
const uint8_t* v_buf,
|
||||
uint8_t* rgb_buf,
|
||||
int width);
|
||||
|
||||
void FastConvertYUVToRGB32Row_C(const uint8* y_buf,
|
||||
const uint8* u_buf,
|
||||
const uint8* v_buf,
|
||||
uint8* rgb_buf,
|
||||
void FastConvertYUVToRGB32Row_C(const uint8_t* y_buf,
|
||||
const uint8_t* u_buf,
|
||||
const uint8_t* v_buf,
|
||||
uint8_t* rgb_buf,
|
||||
int width,
|
||||
unsigned int x_shift);
|
||||
|
||||
void FastConvertYUVToRGB32Row(const uint8* y_buf,
|
||||
const uint8* u_buf,
|
||||
const uint8* v_buf,
|
||||
uint8* rgb_buf,
|
||||
int width);
|
||||
|
||||
// Can do 1x, half size or any scale down by an integer amount.
|
||||
// Step can be negative (mirroring, rotate 180).
|
||||
// This is the third fastest of the scalers.
|
||||
// Only defined on Windows x86-32.
|
||||
void ConvertYUVToRGB32Row_SSE(const uint8* y_buf,
|
||||
const uint8* u_buf,
|
||||
const uint8* v_buf,
|
||||
uint8* rgb_buf,
|
||||
void ConvertYUVToRGB32Row_SSE(const uint8_t* y_buf,
|
||||
const uint8_t* u_buf,
|
||||
const uint8_t* v_buf,
|
||||
uint8_t* rgb_buf,
|
||||
int width,
|
||||
int step);
|
||||
|
||||
|
|
@ -49,10 +43,10 @@ void ConvertYUVToRGB32Row_SSE(const uint8* y_buf,
|
|||
// This allows rotation by 90 or 270, by stepping by stride.
|
||||
// This is the forth fastest of the scalers.
|
||||
// Only defined on Windows x86-32.
|
||||
void RotateConvertYUVToRGB32Row_SSE(const uint8* y_buf,
|
||||
const uint8* u_buf,
|
||||
const uint8* v_buf,
|
||||
uint8* rgb_buf,
|
||||
void RotateConvertYUVToRGB32Row_SSE(const uint8_t* y_buf,
|
||||
const uint8_t* u_buf,
|
||||
const uint8_t* v_buf,
|
||||
uint8_t* rgb_buf,
|
||||
int width,
|
||||
int ystep,
|
||||
int uvstep);
|
||||
|
|
@ -60,33 +54,26 @@ void RotateConvertYUVToRGB32Row_SSE(const uint8* y_buf,
|
|||
// Doubler does 4 pixels at a time. Each pixel is replicated.
|
||||
// This is the fastest of the scalers.
|
||||
// Only defined on Windows x86-32.
|
||||
void DoubleYUVToRGB32Row_SSE(const uint8* y_buf,
|
||||
const uint8* u_buf,
|
||||
const uint8* v_buf,
|
||||
uint8* rgb_buf,
|
||||
void DoubleYUVToRGB32Row_SSE(const uint8_t* y_buf,
|
||||
const uint8_t* u_buf,
|
||||
const uint8_t* v_buf,
|
||||
uint8_t* rgb_buf,
|
||||
int width);
|
||||
|
||||
// Handles arbitrary scaling up or down.
|
||||
// Mirroring is supported, but not 90 or 270 degree rotation.
|
||||
// Chroma is under sampled every 2 pixels for performance.
|
||||
void ScaleYUVToRGB32Row(const uint8* y_buf,
|
||||
const uint8* u_buf,
|
||||
const uint8* v_buf,
|
||||
uint8* rgb_buf,
|
||||
void ScaleYUVToRGB32Row(const uint8_t* y_buf,
|
||||
const uint8_t* u_buf,
|
||||
const uint8_t* v_buf,
|
||||
uint8_t* rgb_buf,
|
||||
int width,
|
||||
int source_dx);
|
||||
|
||||
void ScaleYUVToRGB32Row(const uint8* y_buf,
|
||||
const uint8* u_buf,
|
||||
const uint8* v_buf,
|
||||
uint8* rgb_buf,
|
||||
int width,
|
||||
int source_dx);
|
||||
|
||||
void ScaleYUVToRGB32Row_C(const uint8* y_buf,
|
||||
const uint8* u_buf,
|
||||
const uint8* v_buf,
|
||||
uint8* rgb_buf,
|
||||
void ScaleYUVToRGB32Row_C(const uint8_t* y_buf,
|
||||
const uint8_t* u_buf,
|
||||
const uint8_t* v_buf,
|
||||
uint8_t* rgb_buf,
|
||||
int width,
|
||||
int source_dx);
|
||||
|
||||
|
|
@ -94,24 +81,17 @@ void ScaleYUVToRGB32Row_C(const uint8* y_buf,
|
|||
// Mirroring is supported, but not 90 or 270 degree rotation.
|
||||
// Chroma is under sampled every 2 pixels for performance.
|
||||
// This is the slowest of the scalers.
|
||||
void LinearScaleYUVToRGB32Row(const uint8* y_buf,
|
||||
const uint8* u_buf,
|
||||
const uint8* v_buf,
|
||||
uint8* rgb_buf,
|
||||
void LinearScaleYUVToRGB32Row(const uint8_t* y_buf,
|
||||
const uint8_t* u_buf,
|
||||
const uint8_t* v_buf,
|
||||
uint8_t* rgb_buf,
|
||||
int width,
|
||||
int source_dx);
|
||||
|
||||
void LinearScaleYUVToRGB32Row(const uint8* y_buf,
|
||||
const uint8* u_buf,
|
||||
const uint8* v_buf,
|
||||
uint8* rgb_buf,
|
||||
int width,
|
||||
int source_dx);
|
||||
|
||||
void LinearScaleYUVToRGB32Row_C(const uint8* y_buf,
|
||||
const uint8* u_buf,
|
||||
const uint8* v_buf,
|
||||
uint8* rgb_buf,
|
||||
void LinearScaleYUVToRGB32Row_C(const uint8_t* y_buf,
|
||||
const uint8_t* u_buf,
|
||||
const uint8_t* v_buf,
|
||||
uint8_t* rgb_buf,
|
||||
int width,
|
||||
int source_dx);
|
||||
|
||||
|
|
@ -121,7 +101,7 @@ void LinearScaleYUVToRGB32Row_C(const uint8* y_buf,
|
|||
#else
|
||||
#define SIMD_ALIGNED(var) var __attribute__((aligned(16)))
|
||||
#endif
|
||||
extern SIMD_ALIGNED(const int16 kCoefficientsRgbY[768][4]);
|
||||
extern SIMD_ALIGNED(const int16_t kCoefficientsRgbY[768][4]);
|
||||
|
||||
// x64 uses MMX2 (SSE) so emms is not required.
|
||||
// Warning C4799: function has no EMMS instruction.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue