hi_venc_jpeg_param

Description

Defines the quantization parameters of a JPEGE channel.

Prototype

typedef struct {
    hi_u32 qfactor;                     
    hi_u8 y_qt[64];                      
    hi_u8 cb_qt[64];                     
    hi_u8 cr_qt[64];                     
    hi_u32 mcu_per_ecs;       
    hi_bool ecs_output_en;
} hi_venc_jpeg_param;

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.

  • If it is set to 0xFFFFFFFF, the user must also specify the y_qt, cb_qt, and cr_qt parameters. The QT configuration affects the encoding result.
  • If it is set to a value within [1, 100], the default values of y_qt, cb_qt, and cr_qt are used.

y_qt

Y QT.

Value range: [1, 255]

cb_qt

Cb QT.

Value range: [1, 255]

cr_qt

Cr QT.

Value range: [1, 255]

mcu_per_ecs

(Reserved) MCU count per entropy coded segment (ECS). Defaults to 0, indicating that an ECS is not partitioned into MCUs.

Value range: [0, (picwidth + 15)>>4 x (picheight + 15)>>4 x 2]

ecs_output_en

Reserved.