12.7. JPEGE

【调试信息】

# cat /proc/cvitek/jpege
Module: [JPEGE] System Build Time [#1 SMP PREEMPT Sat Jan 23 02:50:26 CST 2021]
-----MODULE PARAM-------------------------------------------------
OnePack: 0       JpegeMiniBufMode: 0     JpegClearStreamBuf: 0   JpegeDeringMode: 0
-----CHN ATTR-----------------------------------------------------
ID: 0    bMjpeg: Y       PicType: YUV422         MaxWidth: 3840  MaxHeight: 2160         Width: 3840     Height: 2160    BufSize: 0      ByFrm: 1        MCU: 1  Qfactor: 0      C2GEn: 0        DcfEn: 0

【调试信息分析】

记录JPEG 编码过程中,各通道的编码属性、状态。

【参数说明】

参数

描述

MODULEPARAM

OnePack

Mode in which streams are obtained

0: Streams are obtained in multi-packet mode.

1: Streams are obtained in single-packet mode.

JpegeMiniBufMode

Mode of allocating the stream buffers

0: The stream buffers are allocated based on the resolution.

1: The lower limit for the stream buffer size is 32

KB. Users need to ensure that the size of the

allocated stream buffer is appropriate.

JpegClearStreamBuf

Whether to clear the stream buffers when the attribute of a JPEG encoding channel is set.

0: The stream buffers and context count are reserved.

1: The stream buffers are cleared.

JpegeDeringMode

De-ring effect mode enable for the JPEG encoding channel

0: disabled

1: enabled.

Under the same quantization table and Qfactor, the ring phenomenon can be reduced and

the image file size can be decreased, but some image clarity and details are also lost.

CHN ATTR

ID

Channel ID

bMjpeg

MJPEG encoding

No: JPEG snapshot

Yes: MJPEG encoding

PicType

Picture type: YVU422 or YVU420

MaxWidth

Maximum width of the encoding channel (unit: pixel)

MaxHeight

Maximum height of the encoding channel (unit: pixel)

Width

Picture width

Height

Picture height

BufSize

Stream buffer size (unit: byte)

MCU

Number of minimum coded units (MCUs) in each embedded RISC-V subsystem (ECS)

ByFrm

Whether to obtain streams by frame

Value: {0, 1}

Qfactor

Channel Qfactor

C2GEn

Color-to-gray enable

Value: {0, 1}

DcfEn

Whether the JPEG image has a thumbnail

Value: {0, 1}