1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<HTML> 3<HEAD> 4<META http-equiv="content-type" content="text/html; charset=windows-1252"> 5<META http-equiv="Content-Style-Type" content="text/css"> 6<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css"> 7<BASE target="main"> 8<TITLE>THP API Menu</TITLE> 9</HEAD> 10<BODY> 11<H1><A name="thp">Movie (THP) API Function List</a></H1> 12<H2>THP Low Level APIs</H2> 13<TABLE border="1"> 14 <TBODY> 15 <TR> 16<TD><A href="low/THPInit.html"> THPInit</A></TD> 17<TD>Initializes the THP library.</TD> 18 </TR> 19 <TR> 20<TD><A href="low/THPVideoDecode.html"> THPVideoDecode</A></TD> 21<TD>Decodes THP video data.</TD> 22 </TR> 23 <TR> 24<TD><A href="low/THPAudioDecode.html"> THPAudioDecode</A></TD> 25<TD>Decodes THP audio data.</TD> 26 </TR> 27 </TBODY> 28</TABLE> 29<H2>THP Simple Player and THP Player</H2> 30<TABLE border="1"> 31 <TBODY> 32 <TR> 33<TD><A href="common/THPVideoInfo.html"> THPVideoInfo</A></TD> 34<TD>Structure that holds information about the THP video data.</TD> 35 </TR> 36 <TR> 37<TD><A href="common/THPAudioInfo.html"> THPAudioInfo</A></TD> 38<TD>Structure that holds information about the THP audio data.</TD> 39 </TR> 40 </TBODY> 41</TABLE> 42<H2>THP Simple Player</H2> 43<TABLE border="1"> 44 <TBODY> 45 <TR> 46<TD><A href="THPSimple/THPSimpleInit.html"> THPSimpleInit</A></TD> 47<TD>Initializes the THP simple player.</TD> 48 </TR> 49 <TR> 50<TD><A href="THPSimple/THPSimpleQuit.html"> THPSimpleQuit</A></TD> 51<TD>Quits the THP simple player.</TD> 52 </TR> 53 <TR> 54<TD><A href="THPSimple/THPSimpleOpen.html"> THPSimpleOpen</A></TD> 55<TD>Opens the THP movie data.</TD> 56 </TR> 57 <TR> 58<TD><A href="THPSimple/THPSimpleClose.html"> THPSimpleClose</A></TD> 59<TD>Closes the THP movie data.</TD> 60 </TR> 61 <TR> 62<TD><A href="THPSimple/THPSimpleCalcNeedMemory.html"> THPSimpleCalcNeedMemory</A></TD> 63<TD>Calculates the size of the work buffer that THP simple player uses.</TD> 64 </TR> 65 <TR> 66<TD><A href="THPSimple/THPSimpleSetBuffer.html"> THPSimpleSetBuffer</A></TD> 67<TD>Registers the work buffer in the THP simple player.</TD> 68 </TR> 69 <TR> 70<TD><A href="THPSimple/THPSimplePreLoad.html"> THPSimplePreLoad</A></TD> 71<TD>Preloads movie data in order to start THP movie data playback.</TD> 72 </TR> 73 <TR> 74<TD><A href="THPSimple/THPSimpleLoadStop.html"> THPSimpleLoadStop</A></TD> 75<TD>Stops preloading movie data and restores THP simple player to its initial state.</TD> 76 </TR> 77 <TR> 78<TD><A href="THPSimple/THPSimpleDecode.html"> THPSimpleDecode</A></TD> 79<TD>Decodes THP video data and THP audio data.</TD> 80 </TR> 81 <TR> 82<TD><A href="THPSimple/THPSimpleDrawCurrentFrame.html"> THPSimpleDrawCurrentFrame</A></TD> 83<TD>Renders the decoded THP video data.</TD> 84 </TR> 85 <TR> 86<TD><A href="THPSimple/THPSimpleAudioStart.html"> THPSimpleAudioStart</A></TD> 87<TD>Starts the playback of THP audio data.</TD> 88 </TR> 89 <TR> 90<TD><A href="THPSimple/THPSimpleAudioStop.html"> THPSimpleAudioStop</A></TD> 91<TD>Stops the playback of THP audio data.</TD> 92 </TR> 93 <TR> 94<TD><A href="THPSimple/THPSimpleSetVolume.html"> THPSimpleSetVolume</A></TD> 95<TD>Sets the audio playback volume.</TD> 96 </TR> 97 <TR> 98<TD><A href="THPSimple/THPSimpleGetVolume.html"> THPSimpleGetVolume</A></TD> 99<TD>Obtains the current playback volume.</TD> 100 </TR> 101 <TR> 102<TD><A href="THPSimple/THPSimpleGetVideoInfo.html"> THPSimpleGetVideoInfo</A></TD> 103<TD>Gets the information about the THP video data.</TD> 104 </TR> 105 <TR> 106<TD><A href="THPSimple/THPSimpleGetAudioInfo.html"> THPSimpleGetAudioInfo</A></TD> 107<TD>Gets the information about the THP audio data.</TD> 108 </TR> 109 <TR> 110<TD><A href="THPSimple/THPSimpleGetFrameRate.html"> THPSimpleGetFrameRate</A></TD> 111<TD>Gets the frame rate of the THP movie data.</TD> 112 </TR> 113 <TR> 114<TD><A href="THPSimple/THPSimpleGetTotalFrame.html"> THPSimpleGetTotalFrame</A></TD> 115<TD>Gets the number of frames in the THP movie data.</TD> 116 </TR> 117 </TBODY> 118</TABLE> 119<H2>THP Player</H2> 120<TABLE border="1"> 121 <TBODY> 122 <TR> 123<TD><A href="THPPlayer/THPPlayerInit.html"> THPPlayerInit</A></TD> 124<TD>Initializes the THP player.</TD> 125 </TR> 126 <TR> 127<TD><A href="THPPlayer/THPPlayerQuit.html"> THPPlayerQuit</A></TD> 128<TD>Quits the THP player.</TD> 129 </TR> 130 <TR> 131<TD><A href="THPPlayer/THPPlayerOpen.html"> THPPlayerOpen</A></TD> 132<TD>Opens the THP movie data.</TD> 133 </TR> 134 <TR> 135<TD><A href="THPPlayer/THPPlayerClose.html"> THPPlayerClose</A></TD> 136<TD>Closes the THP movie data.</TD> 137 </TR> 138 <TR> 139<TD><A href="THPPlayer/THPPlayerCalcNeedMemory.html"> THPPlayerCalcNeedMemory</A></TD> 140<TD>Calculates the size of the work buffer that the THP player uses.</TD> 141 </TR> 142 <TR> 143<TD><A href="THPPlayer/THPPlayerSetBuffer.html"> THPPlayerSetBuffer</A></TD> 144<TD>Registers the work rbuffer in the THP player.</TD> 145 </TR> 146 <TR> 147<TD><A href="THPPlayer/THPPlayerPrepare.html"> THPPlayerPrepare</A></TD> 148<TD>Specifies how to play back the THP movie data and the starting frame.</TD> 149 </TR> 150 <TR> 151<TD><A href="THPPlayer/THPPlayerPlay.html"> THPPlayerPlay</A></TD> 152<TD>Starts THP movie data playback.</TD> 153 </TR> 154 <TR> 155<TD><A href="THPPlayer/THPPlayerStop.html"> THPPlayerStop</A></TD> 156<TD>Stops THP movie data playback.</TD> 157 </TR> 158 <TR> 159<TD><A href="THPPlayer/THPPlayerPause.html"> THPPlayerPause</A></TD> 160<TD>Pauses THP movie data playback.</TD> 161 </TR> 162 <TR> 163<TD><A href="THPPlayer/THPPlayerSkip.html"> THPPlayerSkip</A></TD> 164<TD>Advances the THP movie data playback by one frame.</TD> 165 </TR> 166 <TR> 167<TD><A href="THPPlayer/THPPlayerDrawCurrentFrame.html"> THPPlayerDrawCurrentFrame</A></TD> 168<TD>Renders the THP video data that should be currently displayed.</TD> 169 </TR> 170 <TR> 171<TD><A href="THPPlayer/THPPlayerDrawDone.html"> THPPlayerDrawDone</A></TD> 172<TD>Called instead of the <CODE>GXDrawDone</CODE> function when THP movie data is playing.</TD> 173 </TR> 174 <TR> 175<TD><A href="THPPlayer/THPPlayerSetVolume.html"> THPPlayerSetVolume</A></TD> 176<TD>Sets the audio playback volume.</TD> 177 </TR> 178 <TR> 179<TD><A href="THPPlayer/THPPlayerGetVolume.html"> THPPlayerGetVolume</A></TD> 180<TD>Obtains the current playback volume.</TD> 181 </TR> 182 <TR> 183<TD><A href="THPPlayer/THPPlayerGetVideoInfo.html"> THPPlayerGetVideoInfo</A></TD> 184<TD>Gets the information about the THP video data.</TD> 185 </TR> 186 <TR> 187<TD><A href="THPPlayer/THPPlayerGetAudioInfo.html"> THPPlayerGetAudioInfo</A></TD> 188<TD>Gets information about the THP audio data.</TD> 189 </TR> 190 <TR> 191<TD><A href="THPPlayer/THPPlayerGetFrameRate.html"> THPPlayerGetFrameRate</A></TD> 192<TD>Gets the frame rate of the THP movie data.</TD> 193 </TR> 194 <TR> 195<TD><A href="THPPlayer/THPPlayerGetTotalFrame.html"> THPPlayerGetTotalFrame</A></TD> 196<TD>Gets the number of frames in the THP movie data.</TD> 197 </TR> 198 <TR> 199<TD><A href="THPPlayer/THPPlayerGetState.html"> THPPlayerGetState</A></TD> 200<TD>Displays the current status of the THP player.</TD> 201 </TR> 202 </TBODY> 203</TABLE> 204<H2>THP Tool API</H2> 205<H3><CODE>thpcore</CODE></H3> 206<TABLE border="1"> 207 <TBODY> 208 <TR> 209<TD><A href="tools/thpcore/THPConvertJPEG2THP.html"> THPConvertJPEG2THP</A></TD> 210<TD>Converts JPEG data into THP video data.</TD> 211 </TR> 212 <TR> 213<TD><A href="tools/thpcore/THPPrintXXXX.html"> THPPrint<br>THPPrintError<br>THPPrintLog</A></TD> 214<TD>Outputs a character string.</TD> 215 </TR> 216 <TR> 217<TD><A href="tools/thpcore/THPPrintXXXXFunc.html"> THPPrintFunc<br>THPPrintErrorFunc<br>THPPrintLogFunc</A></TD> 218<TD>Registers the character string output function.</TD> 219 </TR> 220 <TR> 221<TD><A href="tools/thpcore/THPMalloc.html"> THPMalloc<br>THPFree</A></TD> 222<TD>Register the functions for allocating and freeing memory.</TD> 223 </TR> 224 <TR> 225<TD><A href="tools/thpcore/THPImageStatus.html"> THPImageStatus</A></TD> 226<TD>Structure that contains information about the THP video data.</TD> 227 </TR> 228 <TR> 229<TD><A href="tools/thpcore/THPVerboseFlag.html"> THPVerboseFlag</A></TD> 230<TD>Sets the verbose flag. </TD> 231 </TR> 232 </TBODY> 233</TABLE> 234<H3><CODE>thpaudio</CODE></H3> 235<TABLE border="1"> 236 <TBODY> 237 <TR> 238<TD><A href="tools/thpaudio/THPAudioInit.html"> THPAudioInit</A></TD> 239<TD>Loads <CODE>dsptool.dll</CODE> and initializes the pointer for this function.</TD> 240 </TR> 241 <TR> 242<TD><A href="tools/thpaudio/THPAudioQuit.html"> THPAudioQuit</A></TD> 243<TD>Call this function when finishing THP audio data conversion. </TD> 244 </TR> 245 <TR> 246<TD><A href="tools/thpaudio/THPAudioCreateHandle.html"> THPAudioCreateHandle</A></TD> 247<TD>Reads information about the WAV file and sets the information in the <code>THPAudioHandle</code> structure.</TD> 248 </TR> 249 <TR> 250<TD><A href="tools/thpaudio/THPAudioFreeHandle.html"> THPAudioFreeHandle</A></TD> 251<TD>Releases the <code>THPAudioHandle</code> structure.</TD> 252 </TR> 253 <TR> 254<TD><A href="tools/thpaudio/THPAudioGetInfo.html"> THPAudioGetInfo</A></TD> 255<TD>Gets the number of channels and the playback frequency from the <code>THPAudioHandle</code> structure.</TD> 256 </TR> 257 <TR> 258<TD><A href="tools/thpaudio/THPAudioGetTotalSamples.html"> THPAudioGetTotalSamples</A></TD> 259<TD>Calculates the number of audio data samples required for the THP movie data.</TD> 260 </TR> 261 <TR> 262<TD><A href="tools/thpaudio/THPAudioGetFrameSize.html"> THPAudioGetFrameSize</A></TD> 263<TD>Calculates the size of THP audio data required for the specified frame of THP movie data.</TD> 264 </TR> 265 <TR> 266<TD><A href="tools/thpaudio/THPAudioGetMaxFrameSize.html"> THPAudioGetMaxFrameSize</A></TD> 267<TD>Calculates the size of the audio data for each frame of the THP movie data and returns the largest size.</TD> 268 </TR> 269 <TR> 270<TD><A href="tools/thpaudio/THPAudioGetMaxFrameSamples.html"> THPAudioGetMaxFrameSamples</A></TD> 271<TD>This function calculates the number of samples in the audio data for each frame in the THP movie data and returns the maximum value. </TD> 272 </TR> 273 <TR> 274<TD><A href="tools/thpaudio/THPAudioWriteFrame.html"> THPAudioWriteFrame</A></TD> 275<TD>Encodes audio data using ADPCM.</TD> 276 </TR> 277 <TR> 278<TD><A href="tools/thpaudio/THPAudioHandle.html"> THPAudioHandle</A></TD> 279<TD>Retains the information needed for creating THP audio data.</TD> 280 </TR> 281 <TR> 282<TD><A href="tools/thpaudio/THPAudioFileInfo.html"> THPAudioFileInfo</A></TD> 283<TD>Retains the information for the original WAV data that is converted into THP audio data.</TD> 284 </TR> 285 </TBODY> 286</TABLE> 287<H3><CODE>thputilities</CODE></H3> 288<TABLE border="1"> 289 <TBODY> 290 <TR> 291<TD><A href="tools/thputilities/THPUtyConvertToUnixFmt.html"> THPUtyConvertToUnixFmt</A></TD> 292<TD>Converts a Unix path into a DOS path.</TD> 293 </TR> 294 <TR> 295<TD><A href="tools/thputilities/THPUtyReverseEndianU16.html"> THPUtyReverseEndianU16</A></TD> 296<TD>Converts the endian of an integer value (u16).</TD> 297 </TR> 298 <TR> 299<TD><A href="tools/thputilities/THPUtyReverseEndianU32.html"> THPUtyReverseEndianU32</A></TD> 300<TD>Converts the endian of an integer value (u32). </TD> 301 </TR> 302 <TR> 303<TD><A href="tools/thputilities/THPUtyReverseEndianF32.html"> THPUtyReverseEndianF32</A></TD> 304<TD>Converts the endian of a floating point value (f32). </TD> 305 </TR> 306 <TR> 307<TD><A href="tools/thputilities/THPUtyWritePad32.html"> THPUtyWritePad32</A></TD> 308<TD>Outputs NULL to file with a 32-byte alignment.</TD> 309 </TR> 310 <TR> 311<TD><A href="tools/thputilities/THPUtyPutU32.html"> THPUtyPutU32</A></TD> 312<TD>Converts and then outputs the endian of an integer value (u32).</TD> 313 </TR> 314 <TR> 315<TD><A href="tools/thputilities/THPUtyPutF32.html"> THPUtyPutF32</A></TD> 316<TD>Converts and then outputs the endian of a floating point value (f32).</TD> 317 </TR> 318 <TR> 319<TD><A href="tools/thputilities/THPUtyHeaderInit.html"> THPUtyHeaderInit</A></TD> 320<TD>This function initializes the <code>THPHeader</code> structure.</TD> 321 </TR> 322 <TR> 323<TD><A href="tools/thputilities/THPUtyWriteTHPHeader.html"> THPUtyWriteTHPHeader</A></TD> 324<TD>Outputs the <code>THPHeader</code> structure.</TD> 325 </TR> 326 <TR> 327<TD><A href="tools/thputilities/THPUtyWriteTHPFrameCompInfo.html"> THPUtyWriteTHPFrameCompInfo</A></TD> 328<TD>Outputs the <code>THPFrameCompInfo</code> structure.</TD> 329 </TR> 330 <TR> 331<TD><A href="tools/thputilities/THPUtyWriteTHPVideoInfo.html"> THPUtyWriteTHPVideoInfo</A></TD> 332<TD>Outputs the <code>THPVideoInfo</code> structure.</TD> 333 </TR> 334 <TR> 335<TD><A href="tools/thputilities/THPUtyWriteTHPAudioInfo.html"> THPUtyWriteTHPAudioInfo</A></TD> 336<TD>Outputs the <code>THPAudioInfo</code> structure.</TD> 337 </TR> 338 <TR> 339<TD><A href="tools/thputilities/THPUtyWriteTHPFrameHeader.html"> THPUtyWriteTHPFrameHeader</A></TD> 340<TD>Outputs the <code>THPFrameHeader</code>structure.</TD> 341 </TR> 342 <TR> 343<TD><A href="tools/thputilities/THPUtyWriteTHPComponentsInfo.html"> THPUtyWriteTHPComponentsInfo</A></TD> 344<TD>Outputs the <code>THPVideoInfo</code> and the <code>THPAudioInfo</code> structure.</TD> 345 </TR> 346 <TR> 347<TD><A href="tools/thputilities/THPUtyWriteTHPFileHeader.html"> THPUtyWriteTHPFileHeader</A></TD> 348<TD>Outputs the <code>THPFileHeader</code> structure.</TD> 349 </TR> 350 <TR> 351<TD><A href="tools/thputilities/THPUtyReadTHPHeader.html"> THPUtyReadTHPHeader</A></TD> 352<TD>Reads the <code>THPHeader</code> structure.</TD> 353 </TR> 354 <TR> 355<TD><A href="tools/thputilities/THPUtyReadTHPFrameCompInfo.html"> THPUtyReadTHPFrameCompInfo</A></TD> 356<TD>Reads the <code>THPFrameCompInfo</code> structure.</TD> 357 </TR> 358 <TR> 359<TD><A href="tools/thputilities/THPUtyReadTHPVideoInfo.html"> THPUtyReadTHPVideoInfo</A></TD> 360<TD>Reads the <code>THPVideoInfo</code> structure.</TD> 361 </TR> 362 <TR> 363<TD><A href="tools/thputilities/THPUtyReadTHPVideoInfoOld.html"> THPUtyReadTHPVideoInfoOld</A></TD> 364<TD>Reads the <code>THPVideoInfo</code> structure from the THP movie data (for Ver 1.0 and earlier versions).</TD> 365 </TR> 366 <TR> 367<TD><A href="tools/thputilities/THPUtyReadTHPAudioInfo.html"> THPUtyReadTHPAudioInfo</A></TD> 368<TD>Reads the <code>THPVAudioInfo</code> structure.</TD> 369 </TR> 370 <TR> 371<TD><A href="tools/thputilities/THPUtyReadTHPAudioInfoOld.html"> THPUtyReadTHPAudioInfoOld</A></TD> 372<TD>Reads the <code>THPAudioInfo</code> structure from the THP movie data (for Ver 1.0 and earlier versions).</TD> 373 </TR> 374 <TR> 375<TD><A href="tools/thputilities/THPUtyReadTHPFrameHeader.html"> THPUtyReadTHPFrameHeader</A></TD> 376<TD>Reads the <code>THPFrameHeader</code> structure.</TD> 377 </TR> 378 <TR> 379<TD><A href="tools/thputilities/THPUtyReadTHPFileHeader.html"> THPUtyReadTHPFileHeader</A></TD> 380<TD>Reads the <code>THPFileHeader</code> structure.</TD> 381 </TR> 382 <TR> 383<TD><A href="tools/thputilities/THPUtyCopyTHPFile.html"> THPUtyCopyTHPFile</A></TD> 384<TD>Copies the THP movie data.</TD> 385 </TR> 386 <TR> 387<TD><A href="tools/thputilities/THPUtyCreateTHP.html"> THPUtyCreateTHP</A></TD> 388<TD>Creates THP movie data.</TD> 389 </TR> 390 <TR> 391<TD><A href="tools/thputilities/THPUtyChangeAudioTrack.html"> THPUtyChangeAudioTrack</A></TD> 392<TD>Switches the audio track of the THP movie data.</TD> 393 </TR> 394 </TBODY> 395</TABLE> 396<br> 397</BODY> 398</HTML> 399 400