66 #define mask16b mask15b
79 #define BY ((int)( 0.098*(1<<RGB2YUV_SHIFT)+0.5))
80 #define BV ((int)(-0.071*(1<<RGB2YUV_SHIFT)+0.5))
81 #define BU ((int)( 0.439*(1<<RGB2YUV_SHIFT)+0.5))
82 #define GY ((int)( 0.504*(1<<RGB2YUV_SHIFT)+0.5))
83 #define GV ((int)(-0.368*(1<<RGB2YUV_SHIFT)+0.5))
84 #define GU ((int)(-0.291*(1<<RGB2YUV_SHIFT)+0.5))
85 #define RY ((int)( 0.257*(1<<RGB2YUV_SHIFT)+0.5))
86 #define RV ((int)( 0.439*(1<<RGB2YUV_SHIFT)+0.5))
87 #define RU ((int)(-0.148*(1<<RGB2YUV_SHIFT)+0.5))
91 #define COMPILE_TEMPLATE_MMXEXT 0
92 #define COMPILE_TEMPLATE_AMD3DNOW 0
93 #define COMPILE_TEMPLATE_SSE2 0
94 #define COMPILE_TEMPLATE_AVX 0
98 #define RENAME(a) a ## _mmx
99 #include "rgb2rgb_template.c"
103 #undef COMPILE_TEMPLATE_MMXEXT
104 #define COMPILE_TEMPLATE_MMXEXT 1
105 #define RENAME(a) a ## _mmxext
106 #include "rgb2rgb_template.c"
110 #undef COMPILE_TEMPLATE_SSE2
111 #define COMPILE_TEMPLATE_SSE2 1
112 #define RENAME(a) a ## _sse2
113 #include "rgb2rgb_template.c"
117 #undef COMPILE_TEMPLATE_AVX
118 #define COMPILE_TEMPLATE_AVX 1
119 #define RENAME(a) a ## _avx
120 #include "rgb2rgb_template.c"
124 #undef COMPILE_TEMPLATE_MMXEXT
125 #undef COMPILE_TEMPLATE_SSE2
126 #undef COMPILE_TEMPLATE_AVX
127 #undef COMPILE_TEMPLATE_AMD3DNOW
128 #define COMPILE_TEMPLATE_MMXEXT 0
129 #define COMPILE_TEMPLATE_SSE2 0
130 #define COMPILE_TEMPLATE_AVX 0
131 #define COMPILE_TEMPLATE_AMD3DNOW 1
132 #define RENAME(a) a ## _3dnow
133 #include "rgb2rgb_template.c"
152 rgb2rgb_init_3dnow();
154 rgb2rgb_init_mmxext();