hi_venc_h265_adv_stream_info

Description

Defines the advanced features of the H.265 stream.

Prototype

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;

Members

Member

Description

residual_bits

Number of residual bits in the current frame.

head_bits

Number of header bits in the current frame.

madi_val

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

madp_val

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

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 x 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.

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.

#define HI_VENC_QP_HIST_NUM 52

move_scene32x32_num

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

move_scene_bits

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