h263decoder.h

来自「一个优化的H.263解码器,性能达到商用级」· C头文件 代码 · 共 60 行

H
60
字号
/*************************************************************************
 *
 * 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 + =
减小字号Ctrl + -
显示快捷键?