Skip to main content

hi_venc_h264_adv_stream_info

hi_venc_jpeg_mod_param

说明

Device上的venc内jpege模块中参数。

定义

hi_venc_jpeg_mod_param = {"one_stream_buf": one_stream_buf, # RW; Range:[0, 1]; one stream buffer
"mini_buf_mode": mini_buf_mode, # RW; Range:[0, 1]; Jpege MiniBufMode
"clear_stream_buf": clear_stream_buf, # RW; Range:[0, 1]; JpegClearStreamBuf
"dering_mode": dering_mode} # RW; Range:[0, 1]; Jpege Dering Mode };

成员

成员名称描述
one_stream_buf整型,编码码流帧配置模式,默认值为1。
- 0:多包模式,暂不支持
- 1:单包模式
mini_buf_mode整型,编码码流buffer 配置模式,暂不支持,默认值为0。
- 0:码流buffer 根据分辨率分配。
- 1:码流buffer 下限为32k,用户保证合理。
clear_stream_buf整型,JPEG 编码通道设置属性时是否清空码流buffer,暂不支持,默认值为1。
- 0:设置通道属性时保留码流buffer 和上下文计数。
- 1:设置通道属性时清空码流 buffer。
dering_mode预留参数,暂不使用,默认值为0。

父主题: 视频/图像编码

hi_venc_jpeg_param

说明

用于设置或者获取指定JPEGE编码通道的量化参数的数据字典。

定义

hi_venc_jpeg_param = {"qfactor": qfactor, # RW; Range:0xFFFFFFFF or [1,100]; Qfactor value
"y_qt": y_qt[64], # RW; Range:[1, 255]; Y quantization table
"cb_qt": cb_qt[64], # RW; Range:[1, 255]; Cb quantization table
"cr_qt": cr_qt[64], # RW; Range:[1, 255]; Cr quantization table
"mcu_per_ecs": mcu_per_ecs, # RW; the max MCU number is (picwidth + 15) >> 4 x (picheight +15) >> 4 x 2]; MCU number of one ECS
"ecs_output_en": ecs_output_en}

成员

成员名称描述
qfactor整型,编码质量范围0xFFFFFFFF或[1, 100],数值越小图片质量越差,默认100。
- 0xFFFFFFFF:配置成该值,则用户需要自行配置y_qt、cb_qt、cr_qt,量化表的配置会影响最后的编码结果。
- [1, 100]:配置成该范围内的值,表示y_qt、cb_qt、cr_qt参数不生效,以系统默认的为准。
y_qt列表,Y 量化表。 取值范围:[1, 255]。
cb_qt列表,Cb 量化表。 取值范围:[1, 255]。
cr_qt列表,Cr 量化表。 取值范围:[1, 255]。
mcu_per_ecs整型,每个 ECS 中包含多少个MCU,系统默认为 0,表示不划分ECS,预留参数,当前不支持。 mcu_per_ecs:[0, (picwidth+15)>>4 x(picheight+15)>>4 x 2]
ecs_output_en整型,预留参数,暂不支持。

父主题: 视频/图像编码

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码流包类型。

父主题: 视频/图像编码

在线提单