The BMediaBufferEncoder
class, derived from
BMediaEncoder
,
can be used to encode media data from a memory buffer (instead of from a file).
It implements the
BMediaBufferEncoder::WriteChunk()
function to accomplish this task.
BMediaBufferEncoder::AddTrackInfo()
is not implemented.
The BMediaBufferDecoder
class can be used to decode media data from a
memory buffer. It implements the
BMediaDecoder::GetNextChunk()
function to fetch data from the memory buffer, and adds a new
DecodeBuffer()
function that decodes data from one buffer into another.