SendStreamData
Function Usage
Sends a copy of stream data to the decoder for decoding. This API is synchronous.
Prototype
DecoderRetCode SendStreamData(uint8_t *buffer, uint32_t filledLen)
Parameter Description
Field Name |
Input/Output |
Field Type |
Description |
|---|---|---|---|
buffer |
Input |
uint8_t * |
Buffer of the input stream data. |
Field Name |
Input/Output |
Field Type |
Description |
|---|---|---|---|
filledLen |
Input |
uint32_t |
Length of the input stream data. |
Return Value Description
Data type: DecoderRetCode
The value can be any of the following:
- VIDEO_DECODER_SUCCESS: Stream data is sent successfully.
- VIDEO_DECODER_DECODE_FAIL: Failed to send stream data.
- VIDEO_DECODER_WRITE_OVERFLOW: Write overflow.
Parent topic: Decoding APIs (C and C++)