PROGRAMMER'S GUIDEMPEG library
BackForward
MPEG library

9. Playback of still images


Still image playback is performed by sequentially decoding an MPEG stream in which all pictures are composed of I pictures. Specify the frame bank to store the image data and decode it. In addition, the frame bank to be displayed can be specified independently.

Figure 9.1 Playback of still images

Decoding a still image is performed by repeating the following procedure.

  1. Call the MPG_IsDecReady function until the decoding preparation is complete.

  2. Decoding is performed by the MPG_SpDecNext function.

When decoding small images, some streams may not be able to be decoded if the interval between performing this procedure is 16.7 ms or less.

In addition, the stream of still images must meet the following three conditions.

  1. Image data is continuously included

  2. There is a sequence end code at the end of the stream

  3. 16 words of dummy data after the sequence end code


BackForward
PROGRAMMER'S GUIDEMPEG library
Copyright SEGA ENTERPRISES, LTD., 1997