diff options
Diffstat (limited to 'apps/codecs/libwma/wmadec.h')
-rw-r--r-- | apps/codecs/libwma/wmadec.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/apps/codecs/libwma/wmadec.h b/apps/codecs/libwma/wmadec.h index aaa06ee2a6..d22e435304 100644 --- a/apps/codecs/libwma/wmadec.h +++ b/apps/codecs/libwma/wmadec.h | |||
@@ -64,6 +64,25 @@ | |||
64 | #endif | 64 | #endif |
65 | #endif | 65 | #endif |
66 | 66 | ||
67 | #define VLCBITS 7 /*7 is the lowest without glitching*/ | ||
68 | #define VLCMAX ((22+VLCBITS-1)/VLCBITS) | ||
69 | |||
70 | #define EXPVLCBITS 7 | ||
71 | #define EXPMAX ((19+EXPVLCBITS-1)/EXPVLCBITS) | ||
72 | |||
73 | #define HGAINVLCBITS 9 | ||
74 | #define HGAINMAX ((13+HGAINVLCBITS-1)/HGAINVLCBITS) | ||
75 | |||
76 | |||
77 | typedef struct CoefVLCTable | ||
78 | { | ||
79 | int n; /* total number of codes */ | ||
80 | const uint32_t *huffcodes; /* VLC bit values */ | ||
81 | const uint8_t *huffbits; /* VLC bit size */ | ||
82 | const uint16_t *levels; /* table to build run/level tables */ | ||
83 | } | ||
84 | CoefVLCTable; | ||
85 | |||
67 | typedef struct WMADecodeContext | 86 | typedef struct WMADecodeContext |
68 | { | 87 | { |
69 | GetBitContext gb; | 88 | GetBitContext gb; |