From a0a74ad9f0f18b276b0f3581c533f19e598b7eac Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 9 Apr 2005 22:15:48 +0000 Subject: [PATCH] increasing precission of the quantization parameter this is needed as the quantization stepsize for each subband is also in this precission and insignificant changes to the wavelet like scaling its coefficients slightly differently would lead to wildly variing PSNR and bitrate note, a encoder could also simply choose to leave the least significant bits of the quantization parameters zero which would give the exact previous behaviour except a y very tiny number of bits in the header Originally committed as revision 4115 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/snow.c | 2 +- tests/ffmpeg.regression.ref | 12 ++++++------ tests/rotozoom.regression.ref | 12 ++++++------ 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/libavcodec/snow.c b/libavcodec/snow.c index b355920553..f96d9343a7 100644 --- a/libavcodec/snow.c +++ b/libavcodec/snow.c @@ -31,7 +31,7 @@ #define MAX_DECOMPOSITIONS 8 #define MAX_PLANES 4 #define DWTELEM int -#define QSHIFT 3 +#define QSHIFT 5 #define QROOT (1<