aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/snow.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2005-04-09 22:15:48 +0000
committerMichael Niedermayer <michaelni@gmx.at>2005-04-09 22:15:48 +0000
commita0a74ad9f0f18b276b0f3581c533f19e598b7eac (patch)
treeff849a858fbb041ad964625f86784464c485b854 /libavcodec/snow.c
parentc97de57c39418cb2186e37826576d0d29b2d01f2 (diff)
downloadffmpeg-a0a74ad9f0f18b276b0f3581c533f19e598b7eac.tar.gz
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
Diffstat (limited to 'libavcodec/snow.c')
-rw-r--r--libavcodec/snow.c2
1 files changed, 1 insertions, 1 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<<QSHIFT)
#define LOSSLESS_QLOG -128
#define FRAC_BITS 8