66 #define mask16b mask15b
79 #define RGB2YUV_SHIFT 8
80 #define BY ((int)( 0.098*(1<<RGB2YUV_SHIFT)+0.5))
81 #define BV ((int)(-0.071*(1<<RGB2YUV_SHIFT)+0.5))
82 #define BU ((int)( 0.439*(1<<RGB2YUV_SHIFT)+0.5))
83 #define GY ((int)( 0.504*(1<<RGB2YUV_SHIFT)+0.5))
84 #define GV ((int)(-0.368*(1<<RGB2YUV_SHIFT)+0.5))
85 #define GU ((int)(-0.291*(1<<RGB2YUV_SHIFT)+0.5))
86 #define RY ((int)( 0.257*(1<<RGB2YUV_SHIFT)+0.5))
87 #define RV ((int)( 0.439*(1<<RGB2YUV_SHIFT)+0.5))
88 #define RU ((int)(-0.148*(1<<RGB2YUV_SHIFT)+0.5))
92 #define COMPILE_TEMPLATE_MMXEXT 0
93 #define COMPILE_TEMPLATE_AMD3DNOW 0
94 #define COMPILE_TEMPLATE_SSE2 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_MMXEXT
118 #undef COMPILE_TEMPLATE_SSE2
119 #undef COMPILE_TEMPLATE_AMD3DNOW
120 #define COMPILE_TEMPLATE_MMXEXT 0
121 #define COMPILE_TEMPLATE_SSE2 0
122 #define COMPILE_TEMPLATE_AMD3DNOW 1
123 #define RENAME(a) a ## _3DNOW
124 #include "rgb2rgb_template.c"
143 rgb2rgb_init_3DNOW();
145 rgb2rgb_init_MMXEXT();