|
| virtual int32_t | Init (std::vector< MediaDesc > &descs)=0 |
| | Initialize Source with filling set of media descriptions. More...
|
| |
| virtual int32_t | GetNextData (int32_t &streamIndex, std::unique_ptr< uint8_t[]> &outputBuffer, uint32_t &outputBufferSize, uint32_t &outputTimestamp)=0 |
| | Get data array for selected stream index. More...
|
| |
| virtual int32_t | Release ()=0 |
| | Relese resources used by Source object. More...
|
| |
◆ GetNextData()
| virtual int32_t r5::common::Source::GetNextData |
( |
int32_t & |
streamIndex, |
|
|
std::unique_ptr< uint8_t[]> & |
outputBuffer, |
|
|
uint32_t & |
outputBufferSize, |
|
|
uint32_t & |
outputTimestamp |
|
) |
| |
|
pure virtual |
Get data array for selected stream index.
- Parameters
-
| streamIndex | Index of media stream based on desc of Init method |
| outputBuffer | Array of data for selected stream |
| outputBufferSize | Size of data array in bytes |
| outputTimestamp | Timestamp for returned data |
- Returns
- 0 on success, negative on fail
◆ Init()
| virtual int32_t r5::common::Source::Init |
( |
std::vector< MediaDesc > & |
descs | ) |
|
|
pure virtual |
Initialize Source with filling set of media descriptions.
- Parameters
-
| descs | output set of media descriptions of streams provided by Source |
- Returns
- negative on fail, number of streams otherwise
◆ Release()
| virtual int32_t r5::common::Source::Release |
( |
| ) |
|
|
pure virtual |
Relese resources used by Source object.
- Returns
- 0 on success, negative on fail
The documentation for this class was generated from the following file: