hi_venc_jpeg_param

Description

Defines the quantization parameters of a JPEGE channel.

Prototype

hi_venc_jpeg_param = {"qfactor": qfactor, # RW; Range:0xFFFFFFFF or [1,100]; Qfactor value
                      "y_qt": y_qt[64], # RW; Range:[1, 255]; Y quantization table
                      "cb_qt": cb_qt[64], # RW; Range:[1, 255]; Cb quantization table
                      "cr_qt": cr_qt[64], # RW; Range:[1, 255]; Cr quantization table
                      "mcu_per_ecs": mcu_per_ecs, # RW; the max MCU number is (picwidth + 15) >> 4 x (picheight +15) >> 4 x 2]; MCU number of one ECS
                      "ecs_output_en": ecs_output_en}

Members

Member

Description

qfactor

Int, 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 encode 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

List, Y quantization table.

Value range: [1, 255]

cb_qt

List, Cb quantization table.

Value range: [1, 255]

cr_qt

List, Cr quantization table.

Value range: [1, 255]

mcu_per_ecs

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

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

ecs_output_en

Int, reserved.