67 #define mask16b mask15b 84 #define BY ((int)( 0.098*(1<<RGB2YUV_SHIFT)+0.5)) 85 #define BV ((int)(-0.071*(1<<RGB2YUV_SHIFT)+0.5)) 86 #define BU ((int)( 0.439*(1<<RGB2YUV_SHIFT)+0.5)) 87 #define GY ((int)( 0.504*(1<<RGB2YUV_SHIFT)+0.5)) 88 #define GV ((int)(-0.368*(1<<RGB2YUV_SHIFT)+0.5)) 89 #define GU ((int)(-0.291*(1<<RGB2YUV_SHIFT)+0.5)) 90 #define RY ((int)( 0.257*(1<<RGB2YUV_SHIFT)+0.5)) 91 #define RV ((int)( 0.439*(1<<RGB2YUV_SHIFT)+0.5)) 92 #define RU ((int)(-0.148*(1<<RGB2YUV_SHIFT)+0.5)) 96 #define COMPILE_TEMPLATE_MMXEXT 0 97 #define COMPILE_TEMPLATE_AMD3DNOW 0 98 #define COMPILE_TEMPLATE_SSE2 0 99 #define COMPILE_TEMPLATE_AVX 0 103 #define RENAME(a) a ## _mmx 104 #include "rgb2rgb_template.c" 108 #undef COMPILE_TEMPLATE_MMXEXT 109 #define COMPILE_TEMPLATE_MMXEXT 1 110 #define RENAME(a) a ## _mmxext 111 #include "rgb2rgb_template.c" 115 #undef COMPILE_TEMPLATE_SSE2 116 #define COMPILE_TEMPLATE_SSE2 1 117 #define RENAME(a) a ## _sse2 118 #include "rgb2rgb_template.c" 122 #undef COMPILE_TEMPLATE_AVX 123 #define COMPILE_TEMPLATE_AVX 1 124 #define RENAME(a) a ## _avx 125 #include "rgb2rgb_template.c" 129 #undef COMPILE_TEMPLATE_MMXEXT 130 #undef COMPILE_TEMPLATE_SSE2 131 #undef COMPILE_TEMPLATE_AVX 132 #undef COMPILE_TEMPLATE_AMD3DNOW 133 #define COMPILE_TEMPLATE_MMXEXT 0 134 #define COMPILE_TEMPLATE_SSE2 0 135 #define COMPILE_TEMPLATE_AVX 0 136 #define COMPILE_TEMPLATE_AMD3DNOW 1 137 #define RENAME(a) a ## _3dnow 138 #include "rgb2rgb_template.c" 159 int lumStride,
int chromStride,
int srcStride);
162 int lumStride,
int chromStride,
int srcStride);
173 rgb2rgb_init_3dnow();
175 rgb2rgb_init_mmxext();
void(* shuffle_bytes_3012)(const uint8_t *src, uint8_t *dst, int src_size)
#define INLINE_SSE2(flags)
static atomic_int cpu_flags
av_cold void rgb2rgb_init_x86(void)
#define INLINE_AVX(flags)
Macro definitions for various function/variable attributes.
void(* shuffle_bytes_2103)(const uint8_t *src, uint8_t *dst, int src_size)
void ff_shuffle_bytes_2103_mmxext(const uint8_t *src, uint8_t *dst, int src_size)
void ff_shuffle_bytes_2103_ssse3(const uint8_t *src, uint8_t *dst, int src_size)
void(* shuffle_bytes_3210)(const uint8_t *src, uint8_t *dst, int src_size)
#define DECLARE_ALIGNED(n, t, v)
Declare a variable that is aligned in memory.
#define EXTERNAL_SSE2(flags)
#define INLINE_MMX(flags)
void ff_shuffle_bytes_1230_ssse3(const uint8_t *src, uint8_t *dst, int src_size)
void(* shuffle_bytes_1230)(const uint8_t *src, uint8_t *dst, int src_size)
#define DECLARE_ASM_CONST(n, t, v)
Declare a static constant aligned variable appropriate for use in inline assembly code...
#define INLINE_AMD3DNOW(flags)
#define EXTERNAL_SSSE3(flags)
void(* uyvytoyuv422)(uint8_t *ydst, uint8_t *udst, uint8_t *vdst, const uint8_t *src, int width, int height, int lumStride, int chromStride, int srcStride)
void ff_shuffle_bytes_3210_ssse3(const uint8_t *src, uint8_t *dst, int src_size)
int av_get_cpu_flags(void)
Return the flags which specify extensions supported by the CPU.
void ff_shuffle_bytes_0321_ssse3(const uint8_t *src, uint8_t *dst, int src_size)
void(* shuffle_bytes_0321)(const uint8_t *src, uint8_t *dst, int src_size)
#define EXTERNAL_MMXEXT(flags)
void ff_shuffle_bytes_3012_ssse3(const uint8_t *src, uint8_t *dst, int src_size)
#define INLINE_MMXEXT(flags)
#define EXTERNAL_AVX(flags)