hi_venc_pack

Description

Defines the dictionary of a frame stream packet.

Prototype

hi_venc_pack = {"phys_addr": phys_addr,
                "addr": addr,
                "len": len,
                "pts": pts,
                "is_frame_end": is_frame_end,
                "data_type": hi_venc_data_type,
                "offset": offset,
                "data_num": data_num
                "pack_info": [hi_venc_pack_info]}

hi_venc_pack = {"input_addr": input_addr,
                "addr": addr,
                "len": len,
                "pts": pts,
                "is_frame_end": is_frame_end,
                "data_type": hi_venc_data_type,
                "offset": offset,
                "data_num": data_num
                "pack_info": [hi_venc_pack_info]}

Members

Member

Description

addr

Int, start address of a stream packet.

phys_addr

Int, physical address of a stream packet.

input_addr

Int, buffer address of input stream data.

len

Int, stream packet length.

If the value of len is 0, video or image encoding fails.

data_type

Int, stream type. H.265, H.264, and JPEG packets are supported.

pts

Int, timestamp (μs).

is_frame_end

Int, end of a frame.

Selected from:

  • HI_TRUE: The packet marks the end of the frame.
  • HI_FALSE: The packet does not mark the end of the frame.

offset

Int, offset of the packet payload relative to the start address addr.

data_num

Int, number of packets in a stream, which is related to the data_type setting.

pack_info

List, packet information.