
PRELIMINARY
S3C6400X RISC MICROPROCESSOR
JPEG CODEC
22-9
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.
9. You must read
JPGIRQ
and
JPGSTS
registers to clear internal pended IRQs.
JPEG DECODING SEQUENCE: HARDWARE CONTROLLED DECODING (ONLY 1 FRAME)
Y
MAIN_IRQ
is high ?
Y
Decoding
more frame?
N
Start
Decoding proc.
Set
JPGMOD
Set
IMG_ADDRx
Set
HUF_ADDRx
Set
JPGCON
Set
MISC
Set
SW_JSTART
N
Encoding proc.
Finished
Figure 22-6. Example flow chart of hardware controlled decoding
Take the following steps for hardware controlled JPEG decoding:
1. Set the process mode to decoding process in
JPGMOD
.
2. Set the destination address of 1st decoded image data I
MG_ADDR0
and 2nd decoded image data
address
IMG_ADDR1.
3. Set the source address of 1st JPEG file
HUFADDR0
and next JPEG file Address
HUFADDR1.
4. Set the HW_DEC to 1 in
JPGCON
HW_DEC,
CLK_SEL
1 0
5. Set the Miscellaneous register
MISC (set MODE_SEL to 0x1 or 0x2 , DMS bit to 0).
6. Set
the
SW_JSTART
to high.
7. If MAIN_IRQ is high and ERR_IRQ is low, read frame size (in byte) from
JPGCNT
register.
8. You must read
JPGIRQ
and
JPGSTS
registers to clear internal pended IRQs.