You are on page 1of 9

1

1
1
@NTUEE
DSP/ IC Lab
JPEG Marker Definitions
2
@NTUEE
DSP/ IC Lab
Definition of SOF
n
Markers
2
2
3
@NTUEE
DSP/ IC Lab
Definition of non-SOF
n
Markers
4
@NTUEE
DSP/ IC Lab
SOI (FFD8)
Start of Image
Length : No length or parameter sequence follows
Function : begins the compressed data stream
3
3
5
@NTUEE
DSP/ IC Lab
DQT (FFDB)
Define Quantization Table(s)
Length : Variable length with known structure
Function : defines one or more quantization tables
6
@NTUEE
DSP/ IC Lab
SOF
0
(FFC0

)
Start of Frame (Baseline DCT)
Length : Variable length with known structure
Function : begins a frame header
n in SOF
n
identifies the mode of compression and the entropy coder
used within the frame
4
4
7
@NTUEE
DSP/ IC Lab
DHT (FFC4)
Define Huffman Table(s)
Length : Variable length with known structure
Function : defines one or more Huffman tables
8
@NTUEE
DSP/ IC Lab
SOS (FFDA)
Start of Scan
Length : Variable length with known structure
Function : begins a scan header
The scan header is always followed immediately by entropy-coded
data for the scan.
5
5
9
@NTUEE
DSP/ IC Lab
EOI (FFD9)
End of Image
Length : No length or parameter sequence follows
Function : terminates the JPEG compressed data stream
10
@NTUEE
DSP/ IC Lab
Frame Header Structure (SOF
n
)
6
6
11
@NTUEE
DSP/ IC Lab
DQT Marker Segment Structure
12
@NTUEE
DSP/ IC Lab
DHT Marker Segment Structure
7
7
13
@NTUEE
DSP/ IC Lab
Scan Header Structure (SOS)
14
@NTUEE
DSP/ IC Lab
Example of Nonhierarchical
Compressed Data Structure
8
8
15
@NTUEE
DSP/ IC Lab
Example of Baseline compressed
data structure
SOI (FFD8)
DQT (FFDB), length, Q Table def.
SOF (FFC0), length, frame parameters
DHT (FFC4), length, Huffman Table def.
SOS (FFDA), length, Scan parameters
compressed data
EOI (FFD9)
16
@NTUEE
DSP/ IC Lab
Baseline Compressed
Data Stream for Y
SOI
DQT
SOS
DHT
SOF
EOI
9
9
17
@NTUEE
DSP/ IC Lab
Baseline Compressed Data
for Interleaved YYCbCr
18
@NTUEE
DSP/ IC Lab
Define Quantization Table
DQT
marker
Length =132 bytes
( FFDB excluded )
identifier
Q table
element
precision
0 : 8-bit
1 : 16-bit
Chrominance table
Luminance table

You might also like