mirror of
https://github.com/WinampDesktop/winamp.git
synced 2024-12-04 21:01:30 -05:00
23 lines
632 B
C++
Vendored
23 lines
632 B
C++
Vendored
/****************************************************************************
|
|
* Contents: 'Carryless rangecoder' by Dmitry Subbotin *
|
|
****************************************************************************/
|
|
|
|
|
|
class RangeCoder
|
|
{
|
|
public:
|
|
void InitDecoder(Unpack *UnpackRead);
|
|
inline int GetCurrentCount();
|
|
inline uint GetCurrentShiftCount(uint SHIFT);
|
|
inline void Decode();
|
|
inline void PutChar(unsigned int c);
|
|
inline unsigned int GetChar();
|
|
|
|
uint low, code, range;
|
|
struct SUBRANGE
|
|
{
|
|
uint LowCount, HighCount, scale;
|
|
} SubRange;
|
|
|
|
Unpack *UnpackRead;
|
|
};
|