hi_vdec_send_mode
Description
Defines the stream feeding modes.
Prototype
HI_VDEC_SEND_MODE_STREAM = 0 # send by stream HI_VDEC_SEND_MODE_FRAME = 1 # send by frame HI_VDEC_SEND_MODE_COMPAT = 2 # One frame supports multiple packets sending. HI_VDEC_SEND_MODE_BUTT = 3 # reserved
Members
Member |
Description |
|---|---|
HI_VDEC_SEND_MODE_STREAM |
Stream mode. Reserved. |
HI_VDEC_SEND_MODE_FRAME |
Frame mode. Currently, only this mode is supported. |
HI_VDEC_SEND_MODE_COMPAT |
Compatibility mode. Reserved. |
HI_VDEC_SEND_MODE_BUTT |
Reserved. |
Precautions
- Only HI_VDEC_SEND_MODE_FRAME is supported.
- If end_of_frame of the last packet of a frame is not set to HI_TRUE, another empty packet with end_of_frame being HI_TRUE (must carry the PTS of the current frame) can be sent to the decoder, so that the decoder knows that the current frame is completely sent.
- It is not allowed to partition a frame into multiple packets for feeding.
Parent topic: Video/Image Decoding