1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
-
- #ifndef _BITSTREAM_H
- #define _BITSTREAM_H
- #include "aaccommon.h"
- #define SetBitstreamPointer STATNAME(SetBitstreamPointer)
- #define GetBits STATNAME(GetBits)
- #define GetBitsNoAdvance STATNAME(GetBitsNoAdvance)
- #define AdvanceBitstream STATNAME(AdvanceBitstream)
- #define CalcBitsUsed STATNAME(CalcBitsUsed)
- #define ByteAlignBitstream STATNAME(ByteAlignBitstream)
- typedef struct _BitStreamInfo {
- unsigned char *bytePtr;
- unsigned int iCache;
- int cachedBits;
- int nBytes;
- } BitStreamInfo;
- void SetBitstreamPointer(BitStreamInfo *bsi, int nBytes, unsigned char *buf);
- unsigned int GetBits(BitStreamInfo *bsi, int nBits);
- unsigned int GetBitsNoAdvance(BitStreamInfo *bsi, int nBits);
- void AdvanceBitstream(BitStreamInfo *bsi, int nBits);
- int CalcBitsUsed(BitStreamInfo *bsi, unsigned char *startBuf, int startOffset);
- void ByteAlignBitstream(BitStreamInfo *bsi);
- #endif
|