hi_venc_h264_stream_info
hi_venc_chn_status
说明
定义编码通道的状态字典。
定义
hi_venc_chn_status = {"left_pics": left_pics, # R; left picture number
"left_stream_bytes": left_stream_bytes, # R; left stream bytes
"left_stream_frames": left_stream_frames, # R; left stream frames
"cur_packs": cur_packs, # R; pack number of current frame
"left_recv_pics": left_recv_pics, # R; Number of frames to be received.
"left_enc_pics": left_enc_pics, # R; Number of frames to be encoded.
"is_jpeg_snap_end": is_jpeg_snap_end, # R; the end of Snap.
"release_pic_pts": release_pic_pts,
"stream_info": hi_venc_stream_info}
成员
| 成员名称 | 描述 |
|---|---|
| left_pics | 整型,待编码的图像数,暂不支持。 |
| left_stream_bytes | 整型,码流buffer剩余的byte 数,暂不支持。 |
| left_stream_frames | 整型,码流buffer剩余的帧数,暂不支持。 |
| cur_packs | 整型,当前帧的码流包个数。 |
| left_recv_pics | 整型,剩余待接收的帧数,在用户调用接口 acl.himpi.venc_start_chn设置接收帧数后有效,暂不支持。 |
| left_enc_pics | 整型,剩余待编码的帧数,在用户调用接口 acl.himpi.venc_start_chn设置接收帧数后有效,暂不支持。 |
| is_jpeg_snap_end | 整型,Jpege抓拍模式下指示抓拍过程是否结束,暂不支持。 |
| release_pic_pts | 整型,预留参数,暂不支持。 |
| stream_info | 整型,码流信息。 |
注意事项
如果venc接收的抓拍帧有丢帧出现,is_jpeg_snap_end会存在不能正确标记抓拍结束的情况。
父主题: 视频/图像编码
hi_venc_h264_stream_info
说明
定义H.264协议码流特征信息。
定义
hi_venc_h264_stream_info = {"pic_bytes": pic_bytes,
"inter16x16_mb_num": inter16x16_mb_num,
"inter8x8_mb_num": inter8x8_mb_num,
"intra16_mb_num": intra16_mb_num,
"intra8_mb_num": intra8_mb_num,
"intra4_mb_num": intra4_mb_num,
"ref_type": hi_venc_ref_type,
"update_attr_cnt": update_attr_cnt,
"start_qp": start_qp,
"mean_qp": mean_qp,
"is_p_skip": is_p_skip }
成员
| 成员名称 | 描述 |
|---|---|
| pic_bytes | 整型,编码当前帧的字节(BYTE)数。 |
| inter16x16_mb_num | 整型,编码当前帧中采用 Inter16x16 预测模式的宏块数。 Atlas 200/500 A2推理产品,暂不支持该参数。 |
| inter8x8_mb_num | 整型,编码当前帧中采用 Inter8x8 预测模式的宏块数。 Atlas 200/500 A2推理产品,暂不支持该参数。 |
| intra16_mb_num | 整型,编码当前帧中采用 Intra16 预测模式的宏块数。 Atlas 200/500 A2推理产品,暂不支持该参数。 |
| intra8_mb_num | 整型,编码当前帧中采用 Intra8 预测模式的宏块数。 Atlas 200/500 A2推理产品,暂不支持该参数。 |
| intra4_mb_num | 整型,编码当前帧中采用 Intra4 预测模式的宏块数。 Atlas 200/500 A2推理产品,暂不支持该参数。 |
| ref_type | 整型,高级跳帧参考下的编码帧类型。 Atlas 200/500 A2推理产品,暂不支持该参数。 |
| update_attr_cnt | 整型,通道属性或参数(包含 RC 参数)被设置的次数。 Atlas 200/500 A2推理产品,暂不支持该参数。 |
| start_qp | 整型,编码当前帧的 startqp 值。 |
| mean_qp | 整型,编码当前帧的平均 QP 帧。 |
| is_p_skip | 整型,标识当前帧是否为 pskip 帧。 Atlas 200/500 A2推理产品,暂不支持该参数。 |
父主题: 视频/图像编码
hi_venc_ref_type
说明
定义H.264跳帧参考码流的帧类型和参考属性,暂不支持。
定义
HI_VENC_BASE_IDR_SLICE = 0 # the Idr frame at Base layer
HI_VENC_BASE_P_SLICE_REF_TO_IDR = 1 # the P frame at Base layer referenced by other frames at Base layer and reference to Idr frame
HI_VENC_BASE_P_SLICE_REF_BY_BASE = 2 # the P frame at Base layer referenced by other frames at Base layer
HI_VENC_BASE_P_SLICE_REF_BY_ENHANCE = 3 # the P frame at Base layer referenced by other frames at Enhance layer
HI_VENC_ENHANCE_P_SLICE_REF_BY_ENHANCE = 4 #the P frame at Enhance layer referenced by other frames at Enhance layer
HI_VENC_ENHANCE_P_SLICE_NOT_FOR_REF = 5 # the P frame at Enhance layer not referenced
HI_VENC_P_SLICE_BUTT = 6
父主题: 视频/图像编码
hi_venc_jpeg_stream_info
说明
定义JPEG协议码流特征信息, 暂不支持。
定义
hi_venc_jpeg_stream_info = {"pic_bytes": pic_bytes,
"update_attr_cnt": update_attr_cnt,
"qfactor": qfactor}
成员
| 成员名称 | 描述 |
|---|---|
| pic_bytes | 整型,一帧JPEG码流大小,以字节(byte)为单位。 |
| update_attr_cnt | 整型,通道属性或参数(包含 RC 参数)被设置的次数。 |
| qfactor | 整型,编码当前帧的 Qfactor。 |
父主题: 视频/图像编码
在线提单