Mercurial > libavcodec.hg
comparison vp3dsp.c @ 2692:fb8f26fc57eb libavcodec
remove permutation done to quant tables and then undone during idct
move permutation from idct to unpack_vlcs
author | michael |
---|---|
date | Tue, 17 May 2005 09:18:49 +0000 |
parents | f65d87bfdd5a |
children | 02925a3903b6 |
comparison
equal
deleted
inserted
replaced
2691:a24b82b5a704 | 2692:fb8f26fc57eb |
---|---|
51 int32_t A_, B_, C_, D_, _Ad, _Bd, _Cd, _Dd, E_, F_, G_, H_; | 51 int32_t A_, B_, C_, D_, _Ad, _Bd, _Cd, _Dd, E_, F_, G_, H_; |
52 int32_t _Ed, _Gd, _Add, _Bdd, _Fd, _Hd; | 52 int32_t _Ed, _Gd, _Add, _Bdd, _Fd, _Hd; |
53 int32_t t1, t2; | 53 int32_t t1, t2; |
54 | 54 |
55 int i, j; | 55 int i, j; |
56 | 56 |
57 /* de-zigzag and dequantize */ | 57 /* de-zigzag and dequantize */ |
58 for (i = 0; i < coeff_count; i++) { | 58 for (i = 0; i < coeff_count; i++) { |
59 j = dezigzag_index[i]; | 59 dequantized_data[i] = dequant_matrix[i] * input_data[i]; |
60 dequantized_data[j] = dequant_matrix[i] * input_data[i]; | |
61 } | 60 } |
62 | 61 |
63 /* Inverse DCT on the rows now */ | 62 /* Inverse DCT on the rows now */ |
64 for (i = 0; i < 8; i++) { | 63 for (i = 0; i < 8; i++) { |
65 /* Check for non-zero values */ | 64 /* Check for non-zero values */ |