hi_venc_jpeg_param
Function
Defines the quantization parameters of a JPEGE channel.
Definition
#define HI_VENC_JPEG_QT_COEF_NUM 64
typedef struct {
hi_u32 qfactor;
hi_u8 y_qt[HI_VENC_JPEG_QT_COEF_NUM];
hi_u8 cb_qt[HI_VENC_JPEG_QT_COEF_NUM];
hi_u8 cr_qt[HI_VENC_JPEG_QT_COEF_NUM];
hi_u32 mcu_per_ecs;
hi_bool ecs_output_en;
} hi_venc_jpeg_param;For details about basic data types hi_u32, hi_u8, and hi_bool, see Basic Data Types.
Members
Member |
Description |
|---|---|
qfactor |
Encoding quality factor. A smaller value indicates poorer image quality. Must be 0xFFFFFFFF or in the range of [1, 100]. Defaults to 100.
|
y_qt |
Y quantization table. Value range: [1, 255] |
cb_qt |
Cb quantization table. Value range: [1, 255] |
cr_qt |
Cr quantization table. Value range: [1, 255] |
mcu_per_ecs |
(Reserved) MCU count per entropy coded segment (ECS). Defaults to 0, indicating an ECS is not partitioned into MCUs. Value range: [0, (picwidth + 15)>>4 × (picheight + 15)>>4 × 2] |
ecs_output_en |
Reserved parameter, not supported currently. |
Parent topic: VENC/JPEGE