rdopt_coding_state.h
资源名称:chapter15.rar [点击查看]
上传用户:hjq518
上传日期:2021-12-09
资源大小:5084k
文件大小:1k
源码类别:
Audio
开发平台:
Visual C++
- /*!
- ***************************************************************************
- * file
- * rdopt_coding_state.h
- *
- * author
- * Heiko Schwarz
- *
- * date
- * 17. April 2001
- *
- * brief
- * Headerfile for storing/restoring coding state
- * (for rd-optimized mode decision)
- **************************************************************************
- */
- #ifndef _RD_OPT_CS_H_
- #define _RD_OPT_CS_H_
- typedef struct {
- // important variables of data partition array
- int no_part;
- EncodingEnvironment *encenv;
- Bitstream *bitstream;
- // contexts for binary arithmetic coding
- int symbol_mode;
- MotionInfoContexts *mot_ctx;
- TextureInfoContexts *tex_ctx;
- // bit counter
- int bitcounter[MAX_BITCOUNTER_MB];
- // elements of current macroblock
- short mvd[2][BLOCK_MULTIPLE][BLOCK_MULTIPLE][2];
- int64 cbp_bits[3];
- int64 cbp_bits_8x8[3];
- } CSobj;
- typedef CSobj* CSptr;
- void delete_coding_state (CSptr); //!< delete structure
- CSptr create_coding_state (void); //!< create structure
- void store_coding_state (Macroblock *currMB, CSptr); //!< store parameters
- void reset_coding_state (Macroblock *currMB, CSptr); //!< restore parameters
- #endif