Samsung S3C6400X User Manual page 746

Table of Contents

Advertisement

S3C6400X RISC MICROPROCESSOR
BASIC JPEG ENCODING SEQUENCE
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 IMG_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.
Encoding
Start
Set JPGMOD
Set JPGDRI
Set JPGGHNO
Set
JPGY & JPGX
Set
COEFFx
Set
QTABLE
Set
HTABLE
Figure 22-4. Example flow chart of basic encoding
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.
Set
IMG_ADDRx
Set
HUF_ADDRx
Set
MISC
Set
SW_JSTART
MAIN_IRQ is
high ?
N
Y
Read JPGCNT
& JPGSTS
Y
Encode more
frames ?
N
Encoding
Start
JPEG CODEC
22-7

Advertisement

Table of Contents
loading

Table of Contents