#include "THPPlayer.h" BOOL THPPlayerPrepare(s32 frameNum, s32 playFlag, s32 audioTrack);
| frameNum | Frame number from which to start playing the THP movie data. |
|---|---|
| playFlag | Playback flag. |
| audioTrack | Audio track number to play. |
Returns TRUE if successful, FALSE otherwise.
The THPPlayerPrepare function performs preparations to playback the THP movie data. Based on the presence or absence of THP audio data and the playback style (streaming or memory-based), a video decode thread, audio decode thread, and read thread are created. Next it preloads the data and decodes the starting frame. In addition, a VI post callback is registered to control playback. (The VI post callback that is registered first will be called internally.)
The first argument of the THPPlayerPrepare function is the frame number from which to start THP movie playback. The second argument is the playback flag. The third argument is the audio track number (0- ) to play. If the THP movie data does not have audio data, the third argument is ignored.
If the THP movie data does not have offset data to each frame, the playback start frame must be set to 0.
The playback flag is set to one of the following values.
| Flag | Value | Description |
| THP_PLAY_ONESHOT | 0 | Plays the THP movie data once and then stops. |
|---|---|---|
| THP_PLAY_LOOP | 1 | Plays the THP movie data as a loop. |
None.
2006/03/01 Initial version.
CONFIDENTIAL