Mercurial > libavcodec.hg
comparison mpc7.c @ 9517:dcae1f330498 libavcodec
Compact and make constant two tables used by Musepack decoders
author | kostya |
---|---|
date | Mon, 20 Apr 2009 15:36:27 +0000 |
parents | d719a2711c64 |
children | f1dc62781766 |
comparison
equal
deleted
inserted
replaced
9516:f15a920ce40e | 9517:dcae1f330498 |
---|---|
38 #define SAMPLES_PER_BAND 36 | 38 #define SAMPLES_PER_BAND 36 |
39 #define MPC_FRAME_SIZE (BANDS * SAMPLES_PER_BAND) | 39 #define MPC_FRAME_SIZE (BANDS * SAMPLES_PER_BAND) |
40 | 40 |
41 static VLC scfi_vlc, dscf_vlc, hdr_vlc, quant_vlc[MPC7_QUANT_VLC_TABLES][2]; | 41 static VLC scfi_vlc, dscf_vlc, hdr_vlc, quant_vlc[MPC7_QUANT_VLC_TABLES][2]; |
42 | 42 |
43 static uint16_t quant_offsets[MPC7_QUANT_VLC_TABLES*2 + 1] = | 43 static const uint16_t quant_offsets[MPC7_QUANT_VLC_TABLES*2 + 1] = |
44 { | 44 { |
45 0, 512, 1024, 1536, 2052, 2564, 3076, 3588, 4100, 4612, 5124, | 45 0, 512, 1024, 1536, 2052, 2564, 3076, 3588, 4100, 4612, 5124, |
46 5636, 6164, 6676, 7224 | 46 5636, 6164, 6676, 7224 |
47 }; | 47 }; |
48 | 48 |