hi_venc_h264_adv_stream_info

Description

Defines the advanced features of the H.264 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_scene16x16_num; 
    hi_u32 move_scene_bits; 
} hi_venc_h264_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 value 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 4096 x 2032.

sse_lcu_cnt

Number of LCUs in the current frame.

sse_sum

Sum of squared errors (SSE) value 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_scene16x16_num

Number of 16 x 16 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.