CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - postdechandler
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - postdechandler - List
[
Multimedia Develop
]
divxecode
DL : 0
编解码器的xvid静态库的c++封装 编码: m_vdo_enc->Encode(pBuffer) // 这里pBuffer是BGR24的320x240的数据 编码如果成功,就会自动调用PostEncHandler函数,就可以得到编码后的结果 解码: m_vdo_dec->Decode(xvid, xvid_len) // 传入的存有xvid数据的buffer和长度 解码成功后,会自动调用PostDecHandler,注意对于流媒体数据而言,在这个函数中还有一个形参是标明本次解码用掉了多少个字节的xvid缓冲区的数据,便于下一帧解码的时候调整缓冲区指针-Xvid codec static library code c++ package: m_vdo_enc-> Encode (pBuffer) // here pBuffer is 320x240 the BGR24 data encoding, if successful, will automatically call PostEncHandler function can be encoded on the results of decoding : m_vdo_dec-> Decode (xvid, xvid_len) // incoming data have xvid codec and the length of the buffer is successful, will automatically call PostDecHandler, pay attention to the streaming media data, in this function there is a shape parameter decoder is used indicate the number of bytes of the data buffer xvid for decoding the next frame when the buffer pointer adjustment
Date
: 2025-07-06
Size
: 6kb
User
:
chai
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.