Samsung S3C6400X User Manual page 747

Table of Contents

Advertisement

JPEG CODEC
JPEG DECODING SEQUENCE: SOFTWARE CONTROLLED DECODING
Figure 22-5. Example flow chart of software controlled decoding
Take the following steps for software controlled JPEG decoding:
1. Set the process mode to decoding process in JPGMOD
2. Set the destination address of 1st decoded image data IMG_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 Miscellaneous register MISC (set MODE_SEL to 0x1 or 0x2 , DMS bit to 0)
5. Set the SW_JSTART to high.
6. If HD_IRQ is high and ERR_IRQ is low, read JPGIRQ register to clear internal pended IRQ.
7. Set the SW_JRSTART to high.
8. If MAIN_IRQ is high and ERR_IRQ is low, read frame size (in byte) from JPGCNT register
Preliminary product information describe products that are in development,
for which full characterization data and associated errata are not yet available.
22-8
Specifications and information herein are subject to change without notice.
Start
Decoding proc.
Set JPGMOD
Set
IMG_ADDRx
Read
JPGIRQ
Set
HUF_ADDRx
Set
SW_JRSTART
Set
MISC
MAIN_IRQ
is high ?
Y
Set
SW_JSTART
Read
JPGSTS
N
HD_IRQ
is high ?
Decoding
Y
more frame?
N
Encoding proc.
Finished
S3C6400X RISC MICROPROCESSOR
N
Y

Advertisement

Table of Contents
loading

Table of Contents