bit_res.h
资源名称:VC++视频传输.rar [点击查看]
上传用户:hxb_1234
上传日期:2010-03-30
资源大小:8328k
文件大小:1k
源码类别:
VC书籍
开发平台:
Visual C++
- /* bit_res.h
- Declarations for Bit Reservoir for Layer III
- Adapted from the public c code by Jeff Tsay. */
- #ifndef BIT_RES_H
- #define BIT_RES_H
- #include "all.h"
- #define BUFSIZE 4096
- class Bit_Reserve {
- public:
- Bit_Reserve();
- ~Bit_Reserve();
- uint32 hsstell() const { return(totbit); }
- uint32 hgetbits(uint32 N);
- uint32 hget1bit();
- void hputbuf(int32 val);
- void rewindNbits(int32 N);
- void rewindNbytes(int32 N);
- private:
- uint32 offset, totbit, buf_byte_idx;
- uint32 *buf;
- uint32 buf_bit_idx;
- uint32 *putmask;
- };
- #endif