我要评分
获取效率
正确性
完整性
易理解

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.