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

📄 h263.h

📁 vc++的基于263协议的视频发送接收源码
💻 H
字号:
extern "C" {

/////////////////Decoder Functions//////////////////////////

//decode one frame
//BitCount is the size of bitstream (in bytes )
__declspec(dllexport) int WINAPI DecodeOneFrame(int BitCount);

//init the internal structure of decoder
__declspec(dllexport) BOOL WINAPI InitDecoder(unsigned char **DecoderInput,unsigned char **DecoderOutput,int PictureW,int PictureH);

//free resource used by decoder
__declspec(dllexport) void WINAPI FreeDecoder(void);

/////////////////Encoder Functions//////////////////////////

//encode one frame of picture, using IntraFrame encoder
//that means, this frame has no relation with other frames
//return: size of bitstream encoded (in bytes)
__declspec(dllexport) int WINAPI EncodeOneIntra(void);

//encode one frame of picture, using InterFrame encoder
//that means, how this frame is encoded depends on frames
//that has been encoded since last call of <EncodeOneIntra>
//return: size of bitstream encoded (in bytes)
__declspec(dllexport) int WINAPI EncodeOneInter(void);

//init the internal structure of encoder
__declspec(dllexport) long WINAPI InitEncoder(unsigned char **EncoderInput ,unsigned char **EncoderOutput,int PictureWidth,int PictureHeight);

//free resource used by encoder
__declspec(dllexport) void WINAPI FreeEncoder(void);

//set the compression ratio(1 to 31)
//the smaller newQP, the better image quality you'll get
//return: current QP
__declspec(dllexport) int WINAPI SetCompressRatio(int newQP);

//set Video format
//555:   R 5, G 5, B 5
//565:   R 5, G 6, B 5
//888:	 R 8, G 8, B 8
__declspec( dllexport ) void WINAPI SetVideoFormat(int NewVideoFormat);

}

⌨️ 快捷键说明

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