bit_res.h
来自「VC++视频开发实例集锦(包括“远程视频监控”"语音识别系统"」· C头文件 代码 · 共 39 行
H
39 行
/* 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
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?