22 #ifndef IMAGE_CODECS_INDEO_GET_BITS_H 23 #define IMAGE_CODECS_INDEO_GET_BITS_H 25 #include "common/bitstream.h" 53 template <
int maxDepth,
int bits>
59 index = peekBits<bits>();
60 code = table[index][0];
63 if (maxDepth > 1 && n < 0) {
68 code = table[index][0];
71 if (maxDepth > 2 && n < 0) {
76 code = table[index][0];
void skip(uint32 n)
Definition: bitstream.h:283
Definition: bitstream.h:55
Definition: algorithm.h:29
uint32 size() const
Definition: bitstream.h:313
int getVLC2(int16(*table)[2])
Definition: get_bits.h:54
GetBits(const byte *dataPtr, uint32 dataSize)
Definition: get_bits.h:38
uint32 pos() const
Definition: bitstream.h:308
Definition: get_bits.h:33
uint32 peekBits()
Definition: bitstream.h:188
Definition: movie_decoder.h:32
BitStreamImpl< BitStreamMemoryStream, uint64, 8, false, false > BitStreamMemory8LSB
Definition: bitstream.h:504
int getBitsLeft() const
Definition: get_bits.h:43