RM0082
LS_JPEG codec
Doc ID 018672 Rev 1
561/844
●
Ysiz
Number of lines in source image; values can range from 0 to 65,535.
●
Hdr
When set, this bit enables the JPEG headers processing (generation or parsing,
depending if the encoding or decoding behavior is selected).
●
Ns
Number of components for scan header market segment minus 1; there can be from 1
to 4 components.
●
colspctype
The number of quantization tables to insert in the output stream minus one. 0 =
Grayscale, 1 = YUV, 2 = RGB, 3= CMYK.
●
De
Selects encoding or decoding behavior. When the bit is set, the CODEC acts as a
decoder, otherwise, it works as an encoder.
●
Re
When set, this bit enables restart marker processing. The ECS encoder inserts restart
markers every (NRST + 1) minimum coded units.
●
Nf
Number of color components in the source image minus 1; there can be from 1 to 4
components. For example, in a grayscale image Nf = 0; for a RGB or YUV image Nf =
2.
25.4.5 JPGCreg2
register
This register defines the number of minimum coded units which are to be encoded by the
codec core.
Table 474.
JPGCreg1 register bit assignments
Bit
Name
Reset
Value
Description
[31:16]
-
Number of lines.
[15:09]
Reserved
-
[08]
-
Header processing enable.
[07:06]
-
Number of components for scan header marker segment minus
1.
[05:04]
-
Number of quantization tables in the output stream.
[03]
-
Decoding/encoding.
[02]
-
Restart marker processing enable.
[01:00]
-
Number of color components minus 1.