MediaRead
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
Description
Reads sample data from the media source.Parameters
- sourceReaderHandle: The source reader handle.
- streamIndex: The stream to pull data from. The value can be:
0–0xFFFFFFFB: The zero-based index of a stream.- SOURCE_READER_FIRST_VIDEO_STREAM:
0xFFFFFFFC- The first video stream. - SOURCE_READER_FIRST_AUDIO_STREAM:
0xFFFFFFFD- The first audio stream. - SOURCE_READER_ANY_STREAM:
0xFFFFFFFE- Get the next available sample, regardless of which stream.
- buffer: The buffer used to store the incoming data.
- length: The length of the data buffer.
- onReadCallback: The name of the CAPL callback function (see OnMediaRead).
Return Values
- 0: The function succeeded.
- ≠0: Error code