hi_venc_data_type
hi_venc_h264_adv_stream_info
说明
定义H.264协议码流高级特征信息。
定义
hi_venc_h264_adv_stream_info = {"residual_bits": residual_bits, # R; the residual num
"head_bits": head_bits, # R; the head bit num
"madi_val": madi_val, # R; the madi value
"madp_val": madp_val, # R; the madp value
"psnr_val": psnr_val, # R; the PSNR value
"sse_lcu_cnt": sse_lcu_cnt, # R; the lcu cnt of the sse
"sse_sum": sse_sum, R; the sum of the sse
"sse_info": [hi_venc_sse_info], # R; the information of the sse
"qp_hist": [qp_hist], # R; the Qp histogram value
"move_scene16x16_num": move_scene16x16_num, # R; the 16x16 cu num of the move scene
"move_scene_bits": move_scene_bits} # R; the stream bit num of the move scene
成员
| 成员名称 | 描述 |
|---|---|
| residual_bits | 整型,编码当前帧残差(bit)数。 Atlas 200/500 A2推理产品,暂不支持该参数。 |
| head_bits | 整型,编码当前帧头信息的(bit)数。 Atlas 200/500 A2推理产品,暂不支持该参数。 |
| madi_val | 整型,编码当前帧空域纹理复杂度Madi值。 Atlas 200/500 A2推理产品,暂不支持该参数。 |
| madp_val | 整型,编码当前帧时域运动复杂度Madp值。 Atlas 200/500 A2推理产品,暂不支持该参数。 |
| psnr_val | 整型,编码当前帧的PSNR(Peak signal-to-noise ratio,峰值信噪比)值。 不同软件中关于峰值信噪比的计算公式略有不同,因此峰值信噪比值可能存在差异。 仅支持输入图片分辨率小于或等于3840*2160分辨率时获取psnr_val值,否则psnr_val值无效。 |
| sse_lcu_cnt | 整型,编码当前帧中LCU(Largest Coding Unit)个数。 |
| sse_sum | 整型,编码当前帧中SSE(Sum of Squared Errors,和方差)值。 不同软件中关于和方差的计算公式略有不同,因此和方差值可能存在差异。 |
| sse_info | 列表,编码当前帧中 8个区域的SSE(和方差)值。 不同软件中关于和方差的计算公式略有不同,因此和方差值可能存在差异。 |
| qp_hist | 列表,编码当前帧Qp直方图。 Atlas 200/500 A2推理产品,暂不支持该参数。 |
| move_scene16x16_num | 整型,判断为图像前景的16*16块的数目,需要开启前景宏块级码控制。 Atlas 200/500 A2推理产品,暂不支持该参数。 |
| move_scene_bits | 整型,判断为图像前景区域编码bit数,需要开启前景宏块级码控制。 Atlas 200/500 A2推理产品,暂不支持该参数。 |
父主题: 视频/图像编码
hi_venc_h265_adv_stream_info
说明
定义H.265协议码流高级特征信息。
定义
hi_venc_h265_adv_stream_info = {"residual_bits": residual_bits, # R; the residual num
"head_bits": head_bits, # R; the head bit num
"madi_val": madi_val, # R; the madi value
"madp_val": madp_val, # R; the madp value
"psnr_val": psnr_val, # R; the PSNR value
"sse_lcu_cnt": sse_lcu_cnt, # R; the lcu cnt of the sse
"sse_sum": sse_sum, R; the sum of the sse
"sse_info": [hi_venc_sse_info], # R; the information of the sse
"qp_hist": [qp_hist], # R; the Qp histogram value
"move_scene32x32_num": move_scene32x32_num, # R; the 32x32 cu num of the move scene
"move_scene_bits": move_scene_bits} # R; the stream bit num of the move scene
成员
| 成员名称 | 描述 |
|---|---|
| residual_bits | 整型,编码当前帧残差(bit)数 。 Atlas 200/500 A2推理产品,暂不支持该参数。 |
| head_bits | 整型,编码当前帧头信息的(bit)数 。 Atlas 200/500 A2推理产品,暂不支持该参数。 |
| madi_val | 整型,编码当前帧空域纹理复杂度Madi值 。 Atlas 200/500 A2推理产品,暂不支持该参数。 |
| madp_val | 整型,编码当前帧时域运动复杂度Madp值。 Atlas 200/500 A2推理产品,暂不支持该参数。 |
| psnr_val | 整型,编码当前帧的PSNR(峰值信噪比)值 。 不同软件中关于峰值信噪比的计算公式略有不同,因此峰值信噪比值可能存在差异。 仅支持输入图片分辨率小于或等于3840*2160分辨率时获取psnr_val值,否则psnr_val值无效。 |
| sse_lcu_cnt | 整型,编码当前帧中LCU个数 。 |
| sse_sum | 编码当前帧中SSE(和方差)值。 不同软件中关于和方差的计算公式略有不同,因此和方差值可能存在差异。 |
| sse_info | 列表,编码当前帧中 8个区域的SSE(和方差)值。 不同软件中关于和方差的计算公式略有不同,因此和方差值可能存在差异。 |
| qp_hist | 列表,编码当前帧Qp直方图。 Atlas 200/500 A2推理产品,暂不支持该参数。 |
| move_scene32x32_num | 整型,判断为图像前景的32*32块的数目,需要开启前景宏块级码控制。 Atlas 200/500 A2推理产品,暂不支持该参数。 |
| move_scene_bits | 整型,判断为图像前景区域编码bit数,需要开启前景宏块级码控制。 Atlas 200/500 A2推理产品,暂不支持该参数。 |
父主题: 视频/图像编码
hi_venc_data_type
说明
定义码流结果类型。
定义
hi_venc_data_type = {"h264_type": hi_venc_h264_nalu_type, # R; H264E NALU types
"jpeg_type": hi_venc_jpege_pack_type, # R; JPEGE pack types
"h265_type": hi_venc_h265_nalu_type, # R; H265E NALU types
"prores_type": hi_venc_prores_pack_type}
成员
| 成员名称 | 描述 |
|---|---|
| h264_type | 整型,H.264码流包类型。 |
| jpeg_type | 整型,JPEG码流包类型。 |
| h265_type | 整型,H.265码流包类型。 |
| prores_type | 整型,PRORES码流包类型。 |
父主题: 视频/图像编码
hi_venc_h264_nalu_type
说明
定义H.264码流NALU类型。
定义
HI_VENC_H264_NALU_B_SLICE = 0 # B SLICE types
HI_VENC_H264_NALU_P_SLICE = 1 # P SLICE types
HI_VENC_H264_NALU_I_SLICE = 2 # I SLICE types
HI_VENC_H264_NALU_IDR_SLICE = 5 # IDR SLICE types
HI_VENC_H264_NALU_SEI = 6 # SEI types
HI_VENC_H264_NALU_SPS = 7 # SPS types
HI_VENC_H264_NALU_PPS = 8 # PPS types
HI_VENC_H264_NALU_BUTT = 9
父主题: 视频/图像编码
hi_venc_jpege_pack_type
说明
定义JPEG码流的PACK类型。
定义
HI_VENC_JPEG_PACK_ECS = 5 # ECS types
HI_VENC_JPEG_PACK_APP = 6 # APP types
HI_VENC_JPEG_PACK_VDO = 7 # VDO types
HI_VENC_JPEG_PACK_PIC = 8 # PIC types
HI_VENC_JPEG_PACK_DCF = 9 # DCF types
HI_VENC_JPEG_PACK_DCF_PIC = 10 # DCF PIC types
HI_VENC_JPEG_PACK_BUTT = 11
父主题: 视频/图像编码
hi_venc_h265_nalu_type
说明
定义H.265码流NALU类型。
定义
HI_VENC_H265_NALU_B_SLICE = 0 # B SLICE types
HI_VENC_H265_NALU_P_SLICE = 1 # P SLICE types
HI_VENC_H265_NALU_I_SLICE = 2 # I SLICE types
HI_VENC_H265_NALU_IDR_SLICE = 19 # IDR SLICE types
HI_VENC_H265_NALU_VPS = 32 # VPS types
HI_VENC_H265_NALU_SPS = 33 # SPS types
HI_VENC_H265_NALU_PPS = 34 # PPS types
HI_VENC_H265_NALU_SEI = 39 # SEI types
HI_VENC_H265_NALU_ENHANCE = 64 # ENHANCE typesHI_VENC_H265_NALU_BUTT
父主题: 视频/图像编码
在线提单