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

📄 h263decoder.h

📁 一个优化的H.263解码器,性能达到商用级
💻 H
字号:
/*************************************************************************
 *
 * Created by Steff Lu 08-01-2003
 * H263Encoder.h: interface for the H263Encoder class.
 *
**************************************************************************/


#ifndef _H263DECODER_H__
#define _H263DECODER_H__


class CBitStream;
class CH263Decoder  
{
private:
	CBitStream* pDecoder;
	//bool		m_bIsUsing;
public:
	CH263Decoder();
	virtual ~CH263Decoder();

/**********************************************************************
 *  Name:         IsKeyFrame
 *  Description:  To see the current frame is key frame or not.
 *  Parameter:    buffer: The bit stream buffer pointer of current frame.
 *  Returns:      TRUE:  The current frame is the key frame.
 *				  FALSE: The current frame is not the key frame.
 *  Date: 080203  Author: steffl@hz.webex.com
 ***********************************************************************/
	bool IsKeyFrame(unsigned char *buffer);

/**********************************************************************
 *  Name:         GetTimeStamp
 *  Description:  Get the timestamp of the current frame.
 *  Parameter:    buffer: The bit stream buffer pointer of current frame.
 *  Returns:      The timestamp value of current frame.
 *  Date: 080203  Author: steffl@hz.webex.com
 ***********************************************************************/
	unsigned long GetTimeStamp(unsigned char *buffer);

/**********************************************************************
 *  Name:         ATDecodeH263Frame
 *  Description:  Decode a frame from bit stream buffer, output RGB video data.
 *  Parameter:    buffer [input]:  The bit stream buffer pointer of current frame.
 *				  length [input]:  The length of bit stream buffer.
 *				  rgb [output]:    Output RGB frame buffer pointer.
 *				  width [output]:  Output RGB frame width.
				  height [output]: Output RGB frame height.
 *  Returns:      1:  Succeed to decode a frame.
 *				  -1: Failed to decode a frame.
 *  Date: 080203  Author: steffl@hz.webex.com
 ***********************************************************************/
    int  ATDecodeH263Frame(unsigned char *buffer, int length, unsigned char **rgb, int *width, int *height);
	//void SetDecoderUsing(bool bUse);
	//bool GetDecoderUsing();
};

#endif // #define _H263DECODER_H__

⌨️ 快捷键说明

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