StreamProvider Class Reference

StreamProvider Class Reference#

1 min read time

Applies to Linux

rocDecode: VideoDemuxer::StreamProvider Class Reference
VideoDemuxer::StreamProvider Class Referenceabstract

Abstract interface that feeds a custom stream of bytes to the demuxer. More...

#include <video_demuxer.h>

Public Member Functions

virtual int GetData (uint8_t *buf, int buf_size)=0
 Reads up to buf_size bytes of stream data into buf. More...
 
virtual size_t GetBufferSize ()=0
 Returns the preferred buffer size to use for GetData reads.
 

Detailed Description

Abstract interface that feeds a custom stream of bytes to the demuxer.

Implement this to demux from a source other than a file path, such as an in-memory buffer or a network stream.

Member Function Documentation

◆ GetData()

virtual int VideoDemuxer::StreamProvider::GetData ( uint8_t *  buf,
int  buf_size 
)
pure virtual

Reads up to buf_size bytes of stream data into buf.

Returns
The number of bytes read, or a negative value at end of stream.

The documentation for this class was generated from the following file:
  • /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-rocdecode/checkouts/develop/projects/rocdecode/utils/video_demuxer.h