Movie (THP) API Function List

THP Low Level APIs

THPInit Initializes the THP library.
THPVideoDecode Decodes THP video data.
THPAudioDecode Decodes THP audio data.

THP Simple Player and THP Player

THPVideoInfo Structure that holds information about the THP video data.
THPAudioInfo Structure that holds information about the THP audio data.

THP Simple Player

THPSimpleInit Initializes the THP simple player.
THPSimpleQuit Quits the THP simple player.
THPSimpleOpen Opens the THP movie data.
THPSimpleClose Closes the THP movie data.
THPSimpleCalcNeedMemory Calculates the size of the work buffer that THP simple player uses.
THPSimpleSetBuffer Registers the work buffer in the THP simple player.
THPSimplePreLoad Preloads movie data in order to start THP movie data playback.
THPSimpleLoadStop Stops preloading movie data and restores THP simple player to its initial state.
THPSimpleDecode Decodes THP video data and THP audio data.
THPSimpleDrawCurrentFrame Renders the decoded THP video data.
THPSimpleAudioStart Starts the playback of THP audio data.
THPSimpleAudioStop Stops the playback of THP audio data.
THPSimpleSetVolume Sets the audio playback volume.
THPSimpleGetVolume Obtains the current playback volume.
THPSimpleGetVideoInfo Gets the information about the THP video data.
THPSimpleGetAudioInfo Gets information about the THP audio data.
THPSimpleGetFrameRate Gets the frame rate of the THP movie data.
THPSimpleGetTotalFrame Gets the number of frames in the THP movie data.

THP Player

THPPlayerInit Initializes the THP player.
THPPlayerQuit Quits the THP player.
THPPlayerOpen Opens the THP movie data.
THPPlayerClose Closes the THP movie data.
THPPlayerCalcNeedMemory Calculates the size of the work buffer that the THP player uses.
THPPlayerSetBuffer Registers the work rbuffer in the THP player.
THPPlayerPrepare Specifies how to play back the THP movie data and the starting frame.
THPPlayerPlay Starts THP movie data playback.
THPPlayerStop Stops THP movie data playback.
THPPlayerPause Pauses THP movie data playback.
THPPlayerSkip Advances the THP movie data playback by one frame.
THPPlayerDrawCurrentFrame Renders the THP video data that should be currently displayed.
THPPlayerDrawDone Called instead of the GXDrawDone function when THP movie data is playing.
THPPlayerSetVolume Sets the audio playback volume.
THPPlayerGetVolume Obtains the current playback volume.
THPPlayerGetVideoInfo Gets information about the THP video data.
THPPlayerGetAudioInfo Gets information about the THP audio data.
THPPlayerGetFrameRate Gets the frame rate of the THP movie data.
THPPlayerGetTotalFrame Gets the number of frames in the THP movie data.
THPPlayerGetState Displays the current status of the THP player.

THP Tool API

thpcore

THPConvertJPEG2THP Converts JPEG data into THP video data.
THPPrint
THPPrintError
THPPrintLog
Outputs a character string.
THPPrintFunc
THPPrintErrorFunc
THPPrintLogFunc
Registers the character string output function.
THPMalloc
THPFree
Register the functions for allocating and freeing memory.
THPImageStatus Structure that contains information about the THP video data.
THPVerboseFlag Sets the verbose flag.

thpaudio

THPAudioInit Loads dsptool.dll and initializes the pointer for this function.
THPAudioQuit Call this function when finishing THP audio data conversion.
THPAudioCreateHandle Reads information about the WAV file and sets the information in the THPAudioHandle structure.
THPAudioFreeHandle Releases the THPAudioHandle structure.
THPAudioGetInfo Gets the number of channels and the playback frequency from the THPAudioHandle structure.
THPAudioGetTotalSamples Calculates the number of audio data samples required for the THP movie data.
THPAudioGetFrameSize Calculates the size of THP audio data required for the specified frame of THP movie data.
THPAudioGetMaxFrameSize Calculates the size of the audio data for each frame of the THP movie data and returns the largest size.
THPAudioGetMaxFrameSamples Calculates the number of samples in the audio data for each frame in the THP movie data and returns the maximum value.
THPAudioWriteFrame Encodes audio data using ADPCM.
THPAudioHandle Retains the information needed for creating THP audio data.
THPAudioFileInfo Retains the information for the original WAV data that is converted into THP audio data.

thputilities

THPUtyConvertToUnixFmt Converts a UNIX path into a DOS path.
THPUtyReverseEndianU16 Converts the endian of an integer value (u16).
THPUtyReverseEndianU32 Converts the endian of an integer value (u32).
THPUtyReverseEndianF32 Converts the endian of a floating point value (f32).
THPUtyWritePad32 Outputs NULL to file with a 32-byte alignment.
THPUtyPutU32 Converts and then outputs the endian of an integer value (u32).
THPUtyPutF32 Converts and then outputs the endian of a floating point value (f32).
THPUtyHeaderInit Initializes the THPHeader structure.
THPUtyWriteTHPHeader Outputs the THPHeader structure.
THPUtyWriteTHPFrameCompInfo Outputs the THPFrameCompInfo structure.
THPUtyWriteTHPVideoInfo Outputs the THPVideoInfo structure.
THPUtyWriteTHPAudioInfo Outputs the THPAudioInfo structure.
THPUtyWriteTHPFrameHeader Outputs the THPFrameHeaderstructure.
THPUtyWriteTHPComponentsInfo Outputs the THPVideoInfo and the THPAudioInfo structure.
THPUtyWriteTHPFileHeader Outputs the THPFileHeader structure.
THPUtyReadTHPHeader Reads the THPHeader structure.
THPUtyReadTHPFrameCompInfo Reads the THPFrameCompInfo structure.
THPUtyReadTHPVideoInfo Reads the THPVideoInfo structure.
THPUtyReadTHPVideoInfoOld Reads the THPVideoInfo structure from the THP movie data (for Ver 1.0 and earlier versions).
THPUtyReadTHPAudioInfo Reads the THPVAudioInfo structure.
THPUtyReadTHPAudioInfoOld Reads the THPAudioInfo structure from the THP movie data (for Ver 1.0 and earlier versions).
THPUtyReadTHPFrameHeader Reads the THPFrameHeader structure.
THPUtyReadTHPFileHeader Reads the THPFileHeader structure.
THPUtyCopyTHPFile Copies the THP movie data.
THPUtyCreateTHP Creates THP movie data.
THPUtyChangeAudioTrack Switches the audio track of the THP movie data.

CONFIDENTIAL