From 27c61ac53df2876b80633ec5b69229d06f466131 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 4 Jan 2006 16:31:23 +0000 Subject: 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 ... Originally committed as revision 4811 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/dsputil.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavcodec/dsputil.h') diff --git a/libavcodec/dsputil.h b/libavcodec/dsputil.h index f9c6dff612..969fdbcb69 100644 --- a/libavcodec/dsputil.h +++ b/libavcodec/dsputil.h @@ -170,6 +170,7 @@ typedef struct DSPContext { me_cmp_func w53[5]; me_cmp_func w97[5]; me_cmp_func dct_max[5]; + me_cmp_func dct264_sad[5]; me_cmp_func me_pre_cmp[5]; me_cmp_func me_cmp[5]; @@ -366,6 +367,7 @@ static inline int get_penalty_factor(int lambda, int lambda2, int type){ case FF_CMP_W97: return (2*lambda)>>(FF_LAMBDA_SHIFT); case FF_CMP_SATD: + case FF_CMP_DCT264: return (2*lambda)>>FF_LAMBDA_SHIFT; case FF_CMP_RD: case FF_CMP_PSNR: -- cgit v1.2.3