171 |
/* Initialize the function pointers */ |
/* Initialize the function pointers */ |
172 |
idct_int32_init(); |
idct_int32_init(); |
173 |
init_vlc_tables(); |
init_vlc_tables(); |
|
init_postproc(); |
|
174 |
|
|
175 |
/* Fixed Point Forward/Inverse DCT transformations */ |
/* Fixed Point Forward/Inverse DCT transformations */ |
176 |
fdct = fdct_int32; |
fdct = fdct_int32; |
248 |
bgra_to_yv12 = bgra_to_yv12_c; |
bgra_to_yv12 = bgra_to_yv12_c; |
249 |
abgr_to_yv12 = abgr_to_yv12_c; |
abgr_to_yv12 = abgr_to_yv12_c; |
250 |
rgba_to_yv12 = rgba_to_yv12_c; |
rgba_to_yv12 = rgba_to_yv12_c; |
251 |
|
argb_to_yv12 = argb_to_yv12_c; |
252 |
yuyv_to_yv12 = yuyv_to_yv12_c; |
yuyv_to_yv12 = yuyv_to_yv12_c; |
253 |
uyvy_to_yv12 = uyvy_to_yv12_c; |
uyvy_to_yv12 = uyvy_to_yv12_c; |
254 |
|
|
258 |
bgrai_to_yv12 = bgrai_to_yv12_c; |
bgrai_to_yv12 = bgrai_to_yv12_c; |
259 |
abgri_to_yv12 = abgri_to_yv12_c; |
abgri_to_yv12 = abgri_to_yv12_c; |
260 |
rgbai_to_yv12 = rgbai_to_yv12_c; |
rgbai_to_yv12 = rgbai_to_yv12_c; |
261 |
|
argbi_to_yv12 = argbi_to_yv12_c; |
262 |
yuyvi_to_yv12 = yuyvi_to_yv12_c; |
yuyvi_to_yv12 = yuyvi_to_yv12_c; |
263 |
uyvyi_to_yv12 = uyvyi_to_yv12_c; |
uyvyi_to_yv12 = uyvyi_to_yv12_c; |
264 |
|
|
|
|
|
265 |
/* All colorspace transformation functions YV12->User format */ |
/* All colorspace transformation functions YV12->User format */ |
266 |
yv12_to_rgb555 = yv12_to_rgb555_c; |
yv12_to_rgb555 = yv12_to_rgb555_c; |
267 |
yv12_to_rgb565 = yv12_to_rgb565_c; |
yv12_to_rgb565 = yv12_to_rgb565_c; |
269 |
yv12_to_bgra = yv12_to_bgra_c; |
yv12_to_bgra = yv12_to_bgra_c; |
270 |
yv12_to_abgr = yv12_to_abgr_c; |
yv12_to_abgr = yv12_to_abgr_c; |
271 |
yv12_to_rgba = yv12_to_rgba_c; |
yv12_to_rgba = yv12_to_rgba_c; |
272 |
|
yv12_to_argb = yv12_to_argb_c; |
273 |
yv12_to_yuyv = yv12_to_yuyv_c; |
yv12_to_yuyv = yv12_to_yuyv_c; |
274 |
yv12_to_uyvy = yv12_to_uyvy_c; |
yv12_to_uyvy = yv12_to_uyvy_c; |
275 |
|
|
279 |
yv12_to_bgrai = yv12_to_bgrai_c; |
yv12_to_bgrai = yv12_to_bgrai_c; |
280 |
yv12_to_abgri = yv12_to_abgri_c; |
yv12_to_abgri = yv12_to_abgri_c; |
281 |
yv12_to_rgbai = yv12_to_rgbai_c; |
yv12_to_rgbai = yv12_to_rgbai_c; |
282 |
|
yv12_to_argbi = yv12_to_argbi_c; |
283 |
yv12_to_yuyvi = yv12_to_yuyvi_c; |
yv12_to_yuyvi = yv12_to_yuyvi_c; |
284 |
yv12_to_uyvyi = yv12_to_uyvyi_c; |
yv12_to_uyvyi = yv12_to_uyvyi_c; |
285 |
|
|
449 |
|
|
450 |
if ((cpu_flags & XVID_CPU_3DNOWEXT)) { |
if ((cpu_flags & XVID_CPU_3DNOWEXT)) { |
451 |
|
|
|
/* Inverse DCT */ |
|
|
idct = idct_3dne; |
|
|
|
|
452 |
/* Buffer transfer */ |
/* Buffer transfer */ |
453 |
transfer_8to16copy = transfer_8to16copy_3dne; |
transfer_8to16copy = transfer_8to16copy_3dne; |
454 |
transfer_16to8copy = transfer_16to8copy_3dne; |
transfer_16to8copy = transfer_16to8copy_3dne; |
455 |
transfer_8to16sub = transfer_8to16sub_3dne; |
transfer_8to16sub = transfer_8to16sub_3dne; |
456 |
transfer_8to16subro = transfer_8to16subro_3dne; |
transfer_8to16subro = transfer_8to16subro_3dne; |
|
transfer_8to16sub2 = transfer_8to16sub2_3dne; |
|
457 |
transfer_16to8add = transfer_16to8add_3dne; |
transfer_16to8add = transfer_16to8add_3dne; |
458 |
transfer8x8_copy = transfer8x8_copy_3dne; |
transfer8x8_copy = transfer8x8_copy_3dne; |
459 |
|
|
460 |
|
if ((cpu_flags & XVID_CPU_MMXEXT)) { |
461 |
|
/* Inverse DCT */ |
462 |
|
idct = idct_3dne; |
463 |
|
|
464 |
|
/* Buffer transfer */ |
465 |
|
transfer_8to16sub2 = transfer_8to16sub2_3dne; |
466 |
|
|
467 |
|
/* Interpolation */ |
468 |
|
interpolate8x8_halfpel_h = interpolate8x8_halfpel_h_3dne; |
469 |
|
interpolate8x8_halfpel_v = interpolate8x8_halfpel_v_3dne; |
470 |
|
interpolate8x8_halfpel_hv = interpolate8x8_halfpel_hv_3dne; |
471 |
|
|
472 |
/* Quantization */ |
/* Quantization */ |
473 |
quant_h263_intra = quant_h263_intra_3dne; |
quant_h263_intra = quant_h263_intra_3dne; /* cmov only */ |
474 |
quant_h263_inter = quant_h263_inter_3dne; |
quant_h263_inter = quant_h263_inter_3dne; |
475 |
dequant_mpeg_intra = dequant_mpeg_intra_3dne; |
dequant_mpeg_intra = dequant_mpeg_intra_3dne; /* cmov only */ |
476 |
dequant_mpeg_inter = dequant_mpeg_inter_3dne; |
dequant_mpeg_inter = dequant_mpeg_inter_3dne; |
477 |
dequant_h263_intra = dequant_h263_intra_3dne; |
dequant_h263_intra = dequant_h263_intra_3dne; |
478 |
dequant_h263_inter = dequant_h263_inter_3dne; |
dequant_h263_inter = dequant_h263_inter_3dne; |
479 |
|
|
480 |
/* ME functions */ |
/* ME functions */ |
481 |
calc_cbp = calc_cbp_3dne; |
calc_cbp = calc_cbp_3dne; |
482 |
|
|
483 |
sad16 = sad16_3dne; |
sad16 = sad16_3dne; |
484 |
sad8 = sad8_3dne; |
sad8 = sad8_3dne; |
485 |
sad16bi = sad16bi_3dne; |
sad16bi = sad16bi_3dne; |
486 |
sad8bi = sad8bi_3dne; |
sad8bi = sad8bi_3dne; |
487 |
dev16 = dev16_3dne; |
dev16 = dev16_3dne; |
488 |
|
} |
|
/* Interpolation */ |
|
|
interpolate8x8_halfpel_h = interpolate8x8_halfpel_h_3dne; |
|
|
interpolate8x8_halfpel_v = interpolate8x8_halfpel_v_3dne; |
|
|
interpolate8x8_halfpel_hv = interpolate8x8_halfpel_hv_3dne; |
|
489 |
} |
} |
490 |
|
|
491 |
if ((cpu_flags & XVID_CPU_SSE2)) { |
if ((cpu_flags & XVID_CPU_SSE2)) { |
567 |
return XVID_ERR_VERSION; |
return XVID_ERR_VERSION; |
568 |
|
|
569 |
info->actual_version = XVID_VERSION; |
info->actual_version = XVID_VERSION; |
570 |
info->build = "xvid-1.0.0"; |
info->build = "xvid-1.0.3"; |
571 |
info->cpu_flags = detect_cpu_flags(); |
info->cpu_flags = detect_cpu_flags(); |
572 |
|
|
573 |
#if defined(_SMP) && defined(WIN32) |
#if defined(_SMP) && defined(WIN32) |