62 #define mask16b mask15b
72 #define RGB2YUV_SHIFT 8
73 #define BY ((int)( 0.098*(1<<RGB2YUV_SHIFT)+0.5))
74 #define BV ((int)(-0.071*(1<<RGB2YUV_SHIFT)+0.5))
75 #define BU ((int)( 0.439*(1<<RGB2YUV_SHIFT)+0.5))
76 #define GY ((int)( 0.504*(1<<RGB2YUV_SHIFT)+0.5))
77 #define GV ((int)(-0.368*(1<<RGB2YUV_SHIFT)+0.5))
78 #define GU ((int)(-0.291*(1<<RGB2YUV_SHIFT)+0.5))
79 #define RY ((int)( 0.257*(1<<RGB2YUV_SHIFT)+0.5))
80 #define RV ((int)( 0.439*(1<<RGB2YUV_SHIFT)+0.5))
81 #define RU ((int)(-0.148*(1<<RGB2YUV_SHIFT)+0.5))
85 #define COMPILE_TEMPLATE_MMX2 0
86 #define COMPILE_TEMPLATE_AMD3DNOW 0
87 #define COMPILE_TEMPLATE_SSE2 0
91 #define RENAME(a) a ## _MMX
96 #undef COMPILE_TEMPLATE_MMX2
97 #define COMPILE_TEMPLATE_MMX2 1
98 #define RENAME(a) a ## _MMX2
103 #undef COMPILE_TEMPLATE_SSE2
104 #define COMPILE_TEMPLATE_SSE2 1
105 #define RENAME(a) a ## _SSE2
110 #undef COMPILE_TEMPLATE_MMX2
111 #undef COMPILE_TEMPLATE_SSE2
112 #undef COMPILE_TEMPLATE_AMD3DNOW
113 #define COMPILE_TEMPLATE_MMX2 0
114 #define COMPILE_TEMPLATE_SSE2 0
115 #define COMPILE_TEMPLATE_AMD3DNOW 1
116 #define RENAME(a) a ## _3DNOW
133 rgb2rgb_init_3DNOW();