hi_venc_stream_info

Description

Defines the stream information.

Prototype

typedef struct {
    hi_venc_ref_type ref_type; 
    hi_u32 pic_bytes; 
    hi_u32 pic_cnt; 
    hi_u32 start_qp; 
    hi_u32 mean_qp; 
    hi_bool is_p_skip;

    hi_u32 residual_bits; 
    hi_u32 head_bits; 
    hi_u32 madi_val; 
    hi_u32 madp_val; 
    hi_u64 sse_sum; 
    hi_u32 sse_lcu_cnt; 
    hi_double psnr_val; 
} hi_venc_stream_info;

Members

Member

Description

ref_type

Type of the frame in advanced frame skipping reference mode.

pic_bytes

Number of encoded bytes.

pic_cnt

Number of frames if is_by_frame == 1; or number of packets if is_by_frame == 0.

start_qp

Start QP.

mean_qp

Mean QP.

is_p_skip

Whether the P-frame is coded as a skip frame.

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.

sse_sum

SSE of the current frame.

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

sse_lcu_cnt

Number of LCUs in 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.

For H.264, the psnr_val value can be obtained only when the product of the input image resolution is less than 4096 x 2032.

For H.265, the psnr_val value can be obtained only when the product of the input image resolution is less than 8192 x 4064.