
PRELIMINARY
S3C6400X RISC MICROPROCESSOR
JPEG CODEC
22-7
Preliminary product information describe products that are in development,
for which full characterization data and associated errata are not yet available.
Specifications and information herein are subject to change without notice.
BASIC JPEG ENCODING SEQUENCE
Encoding
Start
Set
JPGMOD
Set
JPGDRI
Set
JPGGHNO
Set
JPGY & JPGX
Set
IMG_ADDRx
Set
HUF_ADDRx
Set
COEFFx
Set
QTABLE
Set
HTABLE
Set
MISC
Set
SW_JSTART
MAIN_IRQ is
high ?
Read
JPGCNT
& JPGSTS
Encoding
Start
Y
N
Encode more
frames ?
Y
N
Figure 22-4. Example flow chart of basic encoding
Take the following steps for basic JPEG encoding:
1. Set the process mode to encoding process and sub-sampling mode in
JPGMOD.
2. Set the MCU and RST marker register
JPGDRI.
3. Set the Q and H table number register
JPGQHNO.
4. Set
the
JPGY
and
JPGX
registers.
5. Set the Coefficient register
COEFF1, COEFF2, COEFF3
for
color space conversion.
6. Set
the
QTABLE
and
HTABLE.
7. Set the source image data of 1st frame Address register I
MG_ADDR0
and 2nd frame’s
IMG_ADDR1.
8. Set the destination JPEG file Address register
HUFADDR0
and next encoded JPEG file Address register
HUFADDR1.
9. Set the Miscellaneous register
MISC
10. Set the
SW_JSTART
to high.
11. You must read
JPGIRQ
and
JPGSTS
registers to clear internal pended IRQs.