65 #define mask16b mask15b
82 #define BY ((int)( 0.098*(1<<RGB2YUV_SHIFT)+0.5))
83 #define BV ((int)(-0.071*(1<<RGB2YUV_SHIFT)+0.5))
84 #define BU ((int)( 0.439*(1<<RGB2YUV_SHIFT)+0.5))
85 #define GY ((int)( 0.504*(1<<RGB2YUV_SHIFT)+0.5))
86 #define GV ((int)(-0.368*(1<<RGB2YUV_SHIFT)+0.5))
87 #define GU ((int)(-0.291*(1<<RGB2YUV_SHIFT)+0.5))
88 #define RY ((int)( 0.257*(1<<RGB2YUV_SHIFT)+0.5))
89 #define RV ((int)( 0.439*(1<<RGB2YUV_SHIFT)+0.5))
90 #define RU ((int)(-0.148*(1<<RGB2YUV_SHIFT)+0.5))
94 #define COMPILE_TEMPLATE_MMXEXT 0
95 #define COMPILE_TEMPLATE_AMD3DNOW 0
96 #define COMPILE_TEMPLATE_SSE2 0
97 #define COMPILE_TEMPLATE_AVX 0
101 #define RENAME(a) a ## _mmx
102 #include "rgb2rgb_template.c"
106 #undef COMPILE_TEMPLATE_MMXEXT
107 #define COMPILE_TEMPLATE_MMXEXT 1
108 #define RENAME(a) a ## _mmxext
109 #include "rgb2rgb_template.c"
113 #undef COMPILE_TEMPLATE_SSE2
114 #define COMPILE_TEMPLATE_SSE2 1
115 #define RENAME(a) a ## _sse2
116 #include "rgb2rgb_template.c"
120 #undef COMPILE_TEMPLATE_AVX
121 #define COMPILE_TEMPLATE_AVX 1
122 #define RENAME(a) a ## _avx
123 #include "rgb2rgb_template.c"
127 #undef COMPILE_TEMPLATE_MMXEXT
128 #undef COMPILE_TEMPLATE_SSE2
129 #undef COMPILE_TEMPLATE_AVX
130 #undef COMPILE_TEMPLATE_AMD3DNOW
131 #define COMPILE_TEMPLATE_MMXEXT 0
132 #define COMPILE_TEMPLATE_SSE2 0
133 #define COMPILE_TEMPLATE_AVX 0
134 #define COMPILE_TEMPLATE_AMD3DNOW 1
135 #define RENAME(a) a ## _3dnow
136 #include "rgb2rgb_template.c"
157 int lumStride,
int chromStride,
int srcStride);
160 int lumStride,
int chromStride,
int srcStride);
171 rgb2rgb_init_3dnow();
173 rgb2rgb_init_mmxext();