comparison dsputil.h @ 3010:533c6386eca9 libavcodec

8x8 integer dct from x264 as cmp function (under CONFIG_GPL) if this gives better quality then SATD then someone should port the x86 code too or maybe we could even just call it from libx264 the 4x4 one could be tried too ...
author michael
date Wed, 04 Jan 2006 16:31:23 +0000
parents bfabfdf9ce55
children c75fb0747e74
comparison
equal deleted inserted replaced
3009:f5898b9b8a8a 3010:533c6386eca9
168 me_cmp_func vsse[5]; 168 me_cmp_func vsse[5];
169 me_cmp_func nsse[5]; 169 me_cmp_func nsse[5];
170 me_cmp_func w53[5]; 170 me_cmp_func w53[5];
171 me_cmp_func w97[5]; 171 me_cmp_func w97[5];
172 me_cmp_func dct_max[5]; 172 me_cmp_func dct_max[5];
173 me_cmp_func dct264_sad[5];
173 174
174 me_cmp_func me_pre_cmp[5]; 175 me_cmp_func me_pre_cmp[5];
175 me_cmp_func me_cmp[5]; 176 me_cmp_func me_cmp[5];
176 me_cmp_func me_sub_cmp[5]; 177 me_cmp_func me_sub_cmp[5];
177 me_cmp_func mb_cmp[5]; 178 me_cmp_func mb_cmp[5];
364 case FF_CMP_W53: 365 case FF_CMP_W53:
365 return (4*lambda)>>(FF_LAMBDA_SHIFT); 366 return (4*lambda)>>(FF_LAMBDA_SHIFT);
366 case FF_CMP_W97: 367 case FF_CMP_W97:
367 return (2*lambda)>>(FF_LAMBDA_SHIFT); 368 return (2*lambda)>>(FF_LAMBDA_SHIFT);
368 case FF_CMP_SATD: 369 case FF_CMP_SATD:
370 case FF_CMP_DCT264:
369 return (2*lambda)>>FF_LAMBDA_SHIFT; 371 return (2*lambda)>>FF_LAMBDA_SHIFT;
370 case FF_CMP_RD: 372 case FF_CMP_RD:
371 case FF_CMP_PSNR: 373 case FF_CMP_PSNR:
372 case FF_CMP_SSE: 374 case FF_CMP_SSE:
373 case FF_CMP_NSSE: 375 case FF_CMP_NSSE: