
NUC970 Technical Reference Manual
Publication Release Date: Dec. 15, 2015
- 1041 -
Revision V1.30
NUC97
0
T
E
CHNIC
A
L
RE
F
E
RE
N
CE
MA
NUA
L
AHB Master BIU
Pre-Processing /
Post-Processing
Playback
IRAM
8 * 64
ORAM
16 * 32
DCT /
IDCT
TRAM
72 * 15
ZRAM
64 * 12 * 2
Quant
VLE
AHB Master BIU
Pre-Processing /
Post-Processing
VLD
IQuant
HTAB
352 * 8
QTAB
64 * 8 * 3
Figure 5.29-2 JPEG Codec block diagram (Decode)
5.29.4 Basic Configuration
Before using JPEG engine,
it’s necessary to enable clock of JPEG engine. Set JPEG
(CLK_HCLKEN[29]) high to enable clock for JPEG engine operation.
JPEG Encode Programming
5.29.4.1
The programming flow for JPEG encode operation is described as follows:
The programmer needs to program all the required control registers parameters, like image format,
width, height, header format, quantization-table, scaling-factor, memory address, etc. before triggering
the JPEG engine. Apply engine soft reset by setting reset ENG_RST(JMCR[1]) to 1 and then to 0. For
planar format, PLANAR_ON (JITCR[15]) set to 1. For single mode, the programmer can trigger the
JPEG engine once by setting the engine enable bit JPG_EN (JITCR[15]) to 1 and then to 0. For
continue mode, the JPEG engine will continually operate if the engine enable bit JPG_EN (JITCR[15])
is kept in 1, and will stop operate when JPG_EN (JITCR[15]) is set to 0 and the current picture is
encoded completely. When the encode operation for one picture (with both primary and thumbnail
images if thumbnail encode is enabled) is complete, the JPEG codec will issue an interrupt to host.