hi_venc_h265_adv_stream_info

Function

Defines the advanced features of an H.265 stream.

For Ascend 950PR&950DT products, this structure is not supported.

For Atlas A3 products, this structure is not supported.

For Atlas A2 products, this structure is not supported.

For Atlas inference products, this structure is reserved.

Definition

typedef struct {
    hi_u32 residual_bits;
    hi_u32 head_bits;
    hi_u32 madi_val;
    hi_u32 madp_val;
    hi_double psnr_val;
    hi_u32 sse_lcu_cnt;
    hi_u64 sse_sum;
    hi_venc_sse_info sse_info[HI_VENC_MAX_SSE_NUM];
    hi_u32 qp_hist[HI_VENC_QP_HIST_NUM];
    hi_u32 move_scene32x32_num;
    hi_u32 move_scene_bits;
} hi_venc_h265_adv_stream_info;

For details about basic data types hi_u32, hi_double, and hi_u64, see Basic Data Types.

Members

Member

Description

residual_bits

Number of residual bits in the current frame.

For Atlas 200I/500 A2 inference products, this parameter is not supported currently.

head_bits

Number of bits in the header of the current frame.

For Atlas 200I/500 A2 inference products, this parameter is not supported currently.

madi_val

MADi value of the spatial texture complexity of the current frame.

For Atlas 200I/500 A2 inference products, this parameter is not supported currently.

madp_val

MADp value of the temporal motion complexity of the current frame.

For Atlas 200I/500 A2 inference products, this parameter is not supported currently.

psnr_val

PSNR of the current frame.

The formula for calculating the PSNR varies according to the software. Therefore, the PSNR also varies.

The psnr_val value can be obtained only when the product of the input image resolution is less than 8192 × 4064.

sse_lcu_cnt

Number of LCUs in the current frame.

sse_sum

SSE of the current frame.

The formula for calculating the SSE varies according to the software. Therefore, the SSE also varies.

sse_info

SSE of the eight regions in the current frame. For details, see hi_venc_sse_info.

The formula for calculating the SSE varies according to the software. Therefore, the SSE also varies.

#define HI_VENC_MAX_SSE_NUM 8

qp_hist

QP histogram of the current frame.

For Atlas 200I/500 A2 inference products, this parameter is not supported currently.

#define HI_VENC_QP_HIST_NUM 52

move_scene32x32_num

Number of 32 × 32 foreground CUs in the current frame. The foreground macroblock-level stream control needs to be enabled.

For Atlas 200I/500 A2 inference products, this parameter is not supported currently.

move_scene_bits

Number of foreground bits in the current frame. The foreground macroblock-level stream control needs to be enabled.

For Atlas 200I/500 A2 inference products, this parameter is not supported currently.