hi_venc_stream_info

Function

Defines the stream information.

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

For Atlas A3 training products/Atlas A3 inference products, this structure is not supported.

For Atlas A2 training products/Atlas A2 inference products, this structure is not supported.

For Atlas inference products, this structure is reserved.

Definition

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;

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

Members

Member

Description

ref_type

Type of the frame in advanced frame skipping reference mode. For details, see hi_venc_ref_type.

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

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.

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

start_qp

Start QP.

mean_qp

Mean QP.

is_p_skip

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

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

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 header bits in 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.

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 × 2032.

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