Professional Documents
Culture Documents
MPEG 2 Compression - Methods
MPEG 2 Compression - Methods
Macroblock in 4:2:0
16
Y 16
16 Cr 4
Cb
16
Y 4 Cr 16 4 Cb
2 components
more components gives more details... ...but our eyes are less sensitive to high frequency components
3 components
4 components
Vertical Frequency
Picture Quality
Equal elements in a row do not have to be coded individually, just transmit the elementcode and the number of successive occurances !
Video signals also contains more or less frequent elements (DCT coefficients)
Some Remarks..
Picture data is now compressed by a factor 8 (at least)...
The process is the same as for JPEG Compression of Y, Cr and Cb is done separately The decompression must be done in realtime The process is referred to as intra-frame-coding (removes redundancy within a frame) There are still a lot of redundancy to remove if we consider several frames (inter-frame-coding)
I, P and B Pictures
I (Intra) pictures
Coded without reference to other pictures Contains all necessary ino for their reconstruction Comparable with a JPEG picture Relatively low compression rate (about 1:8) Coded from preceeding I or P pictures using motion compensation Higher compression rate (about 1:25) Coded by bidirectional interpolation between preceeding and following I and P pictures High compression rate (about 1:70) MP@ML has the parameters (M,N) = (3,12)
P (Predicted) pictures
B (bidirectional) pictures
I BB P BB P BB P BB I
.....
Macroblock Layer
Slice Layer
16
Y1 Y2 Y3 Y4 16
Cr
Cb 4 4
Block Layer
GOP header
Picture
Picture
Picture
Picture Header
Slice
Slice
Slice
Slice Header
Macroblock
Macroblock
Macroblock
Block2(Y)
Block3(Y)
Block4(Y)
Block5(C)
Block6(C)
Reordering of pictures
Display Order
1 I
2 B
3 B
4 P
5 B
6 B
7 P
8 B
9 B
1 0 P
1 1 B
12 13 B I
1 I
4 P
2 B
3 B
7 P
5 B
6 B
1 0 P
8 B
9 B
13 I
1 1 B
12 B
Motion Estimation
Search Window (Block Matching)
Frame1
Frame2
I and P pictures can differ a lot so a difference picture is encoded (pixel by pixel difference) Also called predicted error For the same reason as for I pictures, DCT, VLC and RLC coding is applied to the predicted pictures Both motion vectors and predicted errors defines the P picture (motion compensation)
Coding P pictures
Coding B picture
Linear Interpolation (of prediction error and motion vectors) between previous and following I and (or) P pictures I and P pictures needed in advance to create B pictures