
The
Guide
72
Bi
-di
re
ct
io
na
l e
nc
odi
ng
Wh
a
t is
b
i-di
re
ct
io
na
l e
nc
odi
ng
?
Bi-directional encoding
As discussed in
Forward—General concepts,
there are three different frame
types available for the DivX encoder to select from. These are intra-frames,
predicted-frames and bi-directional-frames, or
I
,
P
and
B
frames respectively.
Recall that in an I-frame all blocks are intra-blocks and are encoded as the image
filling the block. In a P-frame blocks can be either intra-blocks or forward
predicted blocks—those described by a vector referencing a matching area of
image in the previous frame (known as forward prediction).
Bi-directional frames can contain blocks that are intra, forwards predicted,
backwards predicted, or both forwards
and
backwards predicted. This means
that B-frames reference not only the previous frame but the next frame also.
In the diagram frames 2 and 4 are bi-directional frames and any macroblock may
be predicted from either the previous (forward) or next (backward) frame. If a
block is both forwards and backwards predicted then when motion compensation
takes place the block image will be the result of blending the appropriate areas of
the forwards and backwards frames together.
Notice that frame 4 contains some intra-blocks because in the example these
blocks could not be predicted from either the forwards or backwards frame.
What is bi-directional encoding?
Frame 1 (I)
Frame 3 (P)
Frame 5 (P)
Frame 2 (B)
Frame 4 (B)
Summary of Contents for USBAV-708 INSTANT VIDEOMPX
Page 1: ...Revision 1 0...
Page 4: ...The Guide 4 Introduction...
Page 10: ...The Guide 10 Quick Start Guide...
Page 23: ...The Guide 23 Forward...
Page 31: ...The Guide 31 Bitrate mode...
Page 47: ...The Guide 47 Performance Quality...
Page 55: ...The Guide 55 Psychovisual Enhancement...
Page 61: ...The Guide 61 Source pre processing...
Page 65: ...The Guide 65 Crop and Resize...
Page 71: ...The Guide 71 MPEG4 Tools...
Page 83: ...The Guide 83 Advanced...
Page 87: ...The Guide 87 Interlacing...
Page 92: ...The Guide 92 Video Buffer Verifier...
Page 96: ...The Guide 96 Profiles...
Page 100: ...The Guide 100 DivX Certified Program...
Page 104: ...The Guide 104 E K G...
Page 109: ...The Guide 109 DivX Decoder...
Page 115: ...The Guide 115 Acknowledgements...