hi_venc_stream_info

Description

Defines the stream information.

Atlas 350 Accelerator Card does not support this structure.

Atlas A3 training product/Atlas A3 inference product does not support this structure.

Atlas A2 training product/Atlas A2 inference product does not support this structure.

For the Atlas inference product, this structure is reserved and is not supported currently.

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.

The Atlas 200I/500 A2 inference product does not support this parameter.

pic_bytes

Number of bytes in the encoded stream.

pic_cnt

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

The Atlas 200I/500 A2 inference product does not support this parameter.

start_qp

Start QP value of the frame to be encoded.

mean_qp

Average QP value of the encoded frame.

is_p_skip

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

The Atlas 200I/500 A2 inference product does not support this parameter.

residual_bits

Number of residual bits in the current frame.

The Atlas 200I/500 A2 inference product does not support this parameter.

head_bits

Number of header bits in the current frame.

The Atlas 200I/500 A2 inference product does not support this parameter.

madi_val

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

The Atlas 200I/500 A2 inference product does not support this parameter.

madp_val

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

The Atlas 200I/500 A2 inference product does not support this parameter.

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.