Game Development Reference
In-Depth Information
When all pictures have been decoded, if there are still decoded pictures except
non-output G-picture in the buffer, output it.
Here we give an example of sequenced coded with I, P and B pictures as follows.
There are two B-pictures between successive I and P pictures, and also two B-pictures
between successive P-pictures. Picture '1I' is used by picture '4P' for prediction.
Pictures of '4P' and '1I' are both used by pictures of '2B' and '3B' for predictions.
Therefore the decoding order of pictures is '1I', '4P', '2B', '3B', and the display
order is '1I', '2B', '3B', '4P'.
Input order at the encoder:
1I 2B 3B 4P 5B 6B 7P 8B 9B 10I 11B 12B 13P
Decoding order:
1I 4P 2B 3B 7P 5B 6B 10I 8B 9B 13P 11B 12B
Output order at the decoder (display order):
1I 2B 3B 4P 5B 6B 7P 8B 9B 10I 11B 12B 13P
The example for sequence coded with I, P, B, G, and S pictures is as follows.
There are two B-pictures between successive output G-picture and S or P pictures,
and also two B-pictures between successive S or P pictures. Picture '1G' (an output
G-picture) is used by picture '4P' for prediction. Pictures of '4P' and '1G' are both
used by pictures of '2B' and '3B' for prediction. Picture '1G' is used by picture
'10S' for prediction. Therefore the decoding order of pictures is '1G', '4P', '2B',
'3B', and the display order is '1G', '2B', '3B', '4P'.
Input order at the encoder:
1G 2B 3B 4P 5B 6B 7P 8B 9B 10S 11B 12B 13P
Decoding order:
1G 4P 2B 3B 7P 5B 6B 10S 8B 9B 13P 11B 12B
Output order at the decoder (display order):
1G 2B 3B 4P 5B 6B 7P 8B 9B 10S 11B 12B 13P
Another example of sequence coded with non-output G picture is shown as fol-
lows. There are two B-pictures between successive pictures of I and P pictures, and
also two B-pictures between successive pictures of S or P. A non-output G-picture
is inserted between I and P pictures by the encoder. Picture '1I' is used by picture
'4P' for prediction. Pictures '4P' and '1G' are both used by pictures '2B' and '3B'
for predictions. Picture '1G' (the non-output G-picture) is used by picture '10S' for
prediction. Therefore the decoding order of pictures is '1I', '1G', '4P', '2B', '3B',
and the display order is '1I', '2B', '3B', '4P'.
Input order at the encoder:
1I 2B 3B 4P 5B 6B 7P 8B 9B 10S 11B 12B 13P
Decoding order:
1I 1G 4P 2B 3B 7P 5B 6B 10S 8B 9B 13P 11B 12B
Output order at the decoder (display order):
1I 2B 3B 4P 5B 6B 7P 8B 9B 10S 11B 12B 13P
Search WWH ::




Custom Search