BMediaBufferEncoder & BMediaBufferDecoder

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.

Creative Commons License
Legal Notice
This work is licensed under a Creative Commons Attribution-Non commercial-No Derivative Works 3.0 License.