Mercurial > libavcodec.hg
comparison snow.c @ 2601:c31a28f27d9a libavcodec
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
author | michael |
---|---|
date | Sat, 09 Apr 2005 22:15:48 +0000 |
parents | 2bcea6618a87 |
children | 5ec55feb6fdd |
comparison
equal
deleted
inserted
replaced
2600:2bcea6618a87 | 2601:c31a28f27d9a |
---|---|
29 #include <assert.h> | 29 #include <assert.h> |
30 | 30 |
31 #define MAX_DECOMPOSITIONS 8 | 31 #define MAX_DECOMPOSITIONS 8 |
32 #define MAX_PLANES 4 | 32 #define MAX_PLANES 4 |
33 #define DWTELEM int | 33 #define DWTELEM int |
34 #define QSHIFT 3 | 34 #define QSHIFT 5 |
35 #define QROOT (1<<QSHIFT) | 35 #define QROOT (1<<QSHIFT) |
36 #define LOSSLESS_QLOG -128 | 36 #define LOSSLESS_QLOG -128 |
37 #define FRAC_BITS 8 | 37 #define FRAC_BITS 8 |
38 | 38 |
39 static const int8_t quant3[256]={ | 39 static const int8_t quant3[256]={ |