hi_venc_h264_adv_stream_info
Function
Defines the advanced features of an H.264 stream.
For
For
For
For
Definition
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;For details about basic data types hi_u32, hi_double, and hi_u64, see Basic Data Types.
Members
Member |
Description |
|---|---|
residual_bits |
Number of residual bits in the current frame. For |
head_bits |
Number of bits in the header of the current frame. For |
madi_val |
MADi value of the spatial texture complexity of the current frame. For |
madp_val |
MADp value of the temporal motion complexity of the current frame. For |
psnr_val |
Peak signal-to-noise ratio (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 × 2032. |
sse_lcu_cnt |
Number of LCUs in the current frame. |
sse_sum |
Sum of squared errors (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. For details, see hi_venc_sse_info. 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. For #define HI_VENC_QP_HIST_NUM 52 |
move_scene16x16_num |
Number of 16 × 16 foreground CUs in the current frame. The foreground macroblock-level stream control needs to be enabled. For |
move_scene_bits |
Number of foreground bits in the current frame. The foreground macroblock-level stream control needs to be enabled. For |