hi_vdec_send_mode

Description

Defines the stream feeding modes.

Prototype

typedef enum {
    HI_VDEC_SEND_MODE_STREAM = 0, 
    HI_VDEC_SEND_MODE_FRAME , 
    HI_VDEC_SEND_MODE_COMPAT, 
    HI_VDEC_SEND_MODE_BUTT 
}hi_vdec_send_mode;

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.

Restrictions

  1. Only HI_VDEC_SEND_MODE_FRAME is supported.
  2. 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.
  3. It is not allowed to partition a frame into multiple packets for feeding.