THPSimpleDecode

Syntax

#include "THPSimple.h"

s32 THPSimpleDecode(s32 audioTrack);

Arguments

audioTrack Audio track number to decode.

Return Values

Returns oneof the following values.

Definitions Value Description
THP_DECODE_OK 0 The decode was successful.
THP_VIDEO_DECODE_FAIL 1 Failed to decode THP video data.
THP_NO_READ_BUFFER 2 Data read was not in time.
THP_NO_AUDIO_BUFFER 3 There is no empty audio buffer.
THP_INVALID_AUDIO_TRACK 4 The THP movie data does not have the specified audio track.

Description

The THPSimpleDecode function extracts the THP video data by calling THPVideoDecode, a low-level API in the THP library. If audio data is interleaved in the THP movie data, this function extracts the THP audio data by calling THPAudioDecode, another low-level API.

The extracted data is stored inside the simple player.

The argument of the THPSimpleDecode function specifies the audio track number to decode. (Track numbers start at 0.) This argument Indicates the audio track number to automatically play. If the THP movie data does not have audio data, the argument is ignored.

Note:The CPU extracts the THP audio data.

See Also

THPVideoDecode, THPAudioDecode

Revision History

2006/03/01 Initial version.


CONFIDENTIAL