⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bitstream.h

📁 瑞芯微RK2608固件源代码
💻 H
字号:
/*****************************************************************************
 *
 *  XVID MPEG-4@QVGA VIDEO DECODER ON ROCKCHIP RK2606
 *	
 *	Author:
 *		Jian Huan	<jh@rock-chips.com>
 *
 *	Date:
 *		2005-06-15
 ****************************************************************************/

#ifndef _BITSTREAM_H_
#define _BITSTREAM_H_

#include "../xvid_decoder.h"
#include "../static_data.h"

/*****************************************************************************
 * Prototypes
 ****************************************************************************/
#define READ_MARKER()				BitstreamSkip(bs, 1)

//* header stuff */
__attribute__((section(".avi_v_text, \"ax\"")))
short BitstreamReadHeaders(BITSTREAM * bs,
							DECCOEFF  *xvid_decoeff);

__attribute__((section(".avi_v_text, \"ax\"")))
short 
log2bin(short value);

/*****************************************************************************
 * BITSTREAM functions
 ****************************************************************************/
/* reads n bits from bitstream without changing the stream pos */
__attribute__((section(".avi_v_text, \"ax\"")))
unsigned long
BitstreamShowBits(BITSTREAM * bs, short bits);

/*  read bitstream in ping-pong buffer from file */
__attribute__((section(".avi_v_text, \"ax\"")))
void 
FillBuffer(BITSTREAM *bs);

__attribute__((section(".avi_v_text, \"ax\"")))
void
BitstreamSkip(BITSTREAM * bs,  short bits);

/* move forward to the next byte boundary */
__attribute__((section(".avi_v_text, \"ax\"")))
void
BitstreamByteAlign(BITSTREAM * bs);

/* read n bits from bitstream */
__attribute__((section(".avi_v_text, \"ax\"")))
unsigned long 
BitstreamGetBits(BITSTREAM * bs, short n);

#endif /* _BITSTREAM_H_ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -