



















































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




















































Audio, image and video require vast
amounts of data
Low network’s bandwidth doesn't allow for
real time video transmission
Slow storage or processing devices don't
allow for fast playing back
Compression reduces storage requirements
Lossless: recover the original
representation
Lossy: recover a representation
similar to the original one
high compression ratios
more practical use
Hybrid: JPEG, MPEG, px64 combine
several approaches
Furht at.al. 96
Furht at.al. 96
JPEG Block Diagrams
Three main blocks:
Forward Discrete Cosine Transform (FDCT)
Quantizer
Entropy Encoder
Essentially the sequential JPEG encoder
Main component of progressive, lossless
and hierarchical encoders
For gray level and color images
F(0,0) is the DC coefficient: average
value over the 64 samples
The remaining 63 coefficients are the
AC coefficients
Pixels in [-128,127]: DCTs in
[-1024,1023]
Most frequencies have 0 or near to 0
values and need not to be encoded
This fact achieves compression
All 64 DCT coefficients are quantized
F
q
(u,v) = Round[F(u,v)/Q(u,v)]
Reduces the amplitude of coefficients
which contribute little or nothing to 0
Discards information which is not
visually significant
Quantization coefficients Q(u,v) are
specified by quantization tables
A set of 4 tables are specified by JPEG
Furht at.al. 96
Predictive coding of DC Coefficients
Adjacent blocks have similar DC intensities
Coding differences yields high
compression
Converts each sequence into binary
First DC following with ACs
Huffman tables are specified in JPEG
Each (runlength, size) is encoded
using Huffman coding
Each (amplitude) is encoded using a
variable length integer code
(1,4)( 12 ) => (1111110110 1100 )
Compression ratio (CR): increases with
higher compression
Root Mean Square Error (RMS): better
quality with lower RMS
i
i
n
i
i i
1
2