66 #define mask16b mask15b
83 #define BY ((int)( 0.098*(1<<RGB2YUV_SHIFT)+0.5))
84 #define BV ((int)(-0.071*(1<<RGB2YUV_SHIFT)+0.5))
85 #define BU ((int)( 0.439*(1<<RGB2YUV_SHIFT)+0.5))
86 #define GY ((int)( 0.504*(1<<RGB2YUV_SHIFT)+0.5))
87 #define GV ((int)(-0.368*(1<<RGB2YUV_SHIFT)+0.5))
88 #define GU ((int)(-0.291*(1<<RGB2YUV_SHIFT)+0.5))
89 #define RY ((int)( 0.257*(1<<RGB2YUV_SHIFT)+0.5))
90 #define RV ((int)( 0.439*(1<<RGB2YUV_SHIFT)+0.5))
91 #define RU ((int)(-0.148*(1<<RGB2YUV_SHIFT)+0.5))
95 #define COMPILE_TEMPLATE_MMXEXT 0
96 #define COMPILE_TEMPLATE_AMD3DNOW 0
97 #define COMPILE_TEMPLATE_SSE2 0
98 #define COMPILE_TEMPLATE_AVX 0
102 #define RENAME(a) a ## _mmx
103 #include "rgb2rgb_template.c"
107 #undef COMPILE_TEMPLATE_MMXEXT
108 #define COMPILE_TEMPLATE_MMXEXT 1
109 #define RENAME(a) a ## _mmxext
110 #include "rgb2rgb_template.c"
114 #undef COMPILE_TEMPLATE_SSE2
115 #define COMPILE_TEMPLATE_SSE2 1
116 #define RENAME(a) a ## _sse2
117 #include "rgb2rgb_template.c"
121 #undef COMPILE_TEMPLATE_AVX
122 #define COMPILE_TEMPLATE_AVX 1
123 #define RENAME(a) a ## _avx
124 #include "rgb2rgb_template.c"
128 #undef COMPILE_TEMPLATE_MMXEXT
129 #undef COMPILE_TEMPLATE_SSE2
130 #undef COMPILE_TEMPLATE_AVX
131 #undef COMPILE_TEMPLATE_AMD3DNOW
132 #define COMPILE_TEMPLATE_MMXEXT 0
133 #define COMPILE_TEMPLATE_SSE2 0
134 #define COMPILE_TEMPLATE_AVX 0
135 #define COMPILE_TEMPLATE_AMD3DNOW 1
136 #define RENAME(a) a ## _3dnow
137 #include "rgb2rgb_template.c"
156 rgb2rgb_init_3dnow();
158 rgb2rgb_init_mmxext();
#define DECLARE_ALIGNED(n, t, v)
#define INLINE_SSE2(flags)
av_cold void rgb2rgb_init_x86(void)
#define INLINE_AVX(flags)
Macro definitions for various function/variable attributes.
#define DECLARE_ASM_CONST(n, t, v)
#define INLINE_MMX(flags)
#define INLINE_AMD3DNOW(flags)
int av_get_cpu_flags(void)
Return the flags which specify extensions supported by the CPU.
#define INLINE_MMXEXT(flags)