Download SPEAr320 address map and registers

Transcript
JPEG codec
SPEAr320
●
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.
18.2.3
JPGCreg2 register
This register defines the number of minimum coded units which are to be encoded by the
codec core.
Table 324. JPGCreg2 register bit assignments
Bit
Name
Reset
Value
[31:26]
Reserved
-
[25:00]
NMCU
-
●
Description
Number of MCU’s minus 1.
NMCU
This value defines the number of minimum coded units to be coded, minus 1; there can
be from 0 to 67,108,863 MCU’s.
18.2.4
JPGCreg3 register
This register defines a couple of parameters for the image format and the coding process.
288/533
Doc ID 022180 Rev 1