Japanese
PROGRAMMER'S GUIDEMPEG library
BackForward
MPEG library

9. Still image playback


Still images are played back by sequentially decoding an MPEG stream in which all pictures are I pictures. Specify the frame bank that stores image data and decode it. You can also specify the frame banks to display independently.

Figure 9.1 Still image playback

Still images are decoded by repeating the following steps.

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

  2. Execute decoding using the MPG_SpDecNext function.

When decoding small images, if the interval at which this step is performed is less than 16.7ms, some streams may not be able to be decoded.

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

  1. Contains continuous image data

  2. Contains a sequence end code at the end of the stream

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


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