237 |
|
|
238 |
/* reduced resoltuion */ |
/* reduced resoltuion */ |
239 |
|
|
240 |
|
copy_upsampled_8x8_16to8 = xvid_Copy_Upsampled_8x8_16To8_C; |
241 |
|
add_upsampled_8x8_16to8 = xvid_Add_Upsampled_8x8_16To8_C; |
242 |
#ifdef ARCH_X86 |
#ifdef ARCH_X86 |
243 |
vfilter_31 = xvid_VFilter_31_x86; |
vfilter_31 = xvid_VFilter_31_x86; |
244 |
hfilter_31 = xvid_HFilter_31_x86; |
hfilter_31 = xvid_HFilter_31_x86; |
245 |
#else |
#else |
|
copy_upsampled_8x8_16to8 = xvid_Copy_Upsampled_8x8_16To8_C; |
|
|
add_upsampled_8x8_16to8 = xvid_Add_Upsampled_8x8_16To8_C; |
|
246 |
vfilter_31 = xvid_VFilter_31_C; |
vfilter_31 = xvid_VFilter_31_C; |
247 |
hfilter_31 = xvid_HFilter_31_C; |
hfilter_31 = xvid_HFilter_31_C; |
248 |
#endif |
#endif |
249 |
|
filter_18x18_to_8x8 = xvid_Filter_18x18_To_8x8_C; |
250 |
|
filter_diff_18x18_to_8x8 = xvid_Filter_Diff_18x18_To_8x8_C; |
251 |
|
|
252 |
/* Initialize internal colorspace transformation tables */ |
/* Initialize internal colorspace transformation tables */ |
253 |
colorspace_init(); |
colorspace_init(); |
356 |
copy_upsampled_8x8_16to8 = xvid_Copy_Upsampled_8x8_16To8_mmx; |
copy_upsampled_8x8_16to8 = xvid_Copy_Upsampled_8x8_16To8_mmx; |
357 |
add_upsampled_8x8_16to8 = xvid_Add_Upsampled_8x8_16To8_mmx; |
add_upsampled_8x8_16to8 = xvid_Add_Upsampled_8x8_16To8_mmx; |
358 |
hfilter_31 = xvid_HFilter_31_mmx; |
hfilter_31 = xvid_HFilter_31_mmx; |
359 |
|
filter_18x18_to_8x8 = xvid_Filter_18x18_To_8x8_mmx; |
360 |
|
filter_diff_18x18_to_8x8 = xvid_Filter_Diff_18x18_To_8x8_mmx; |
361 |
|
|
362 |
/* image input xxx_to_yv12 related functions */ |
/* image input xxx_to_yv12 related functions */ |
363 |
yv12_to_yv12 = yv12_to_yv12_mmx; |
yv12_to_yv12 = yv12_to_yv12_mmx; |
513 |
static int |
static int |
514 |
xvid_init_convert(XVID_INIT_CONVERTINFO* convert) |
xvid_init_convert(XVID_INIT_CONVERTINFO* convert) |
515 |
{ |
{ |
516 |
const int flip1 = (convert->input.colorspace & XVID_CSP_VFLIP) ^ (convert->output.colorspace & XVID_CSP_VFLIP); |
// const int flip1 = (convert->input.colorspace & XVID_CSP_VFLIP) ^ (convert->output.colorspace & XVID_CSP_VFLIP); |
517 |
const int width = convert->width; |
const int width = convert->width; |
518 |
const int height = convert->height; |
const int height = convert->height; |
519 |
const int width2 = convert->width/2; |
const int width2 = convert->width/2; |