#include <win32/thputilities.h>s32 THPUtyCreateTHP(FILE* op,
s32 fileFlag,
void* filePtr,
THPFileHeader* fileHeader,
THPAudioHandle** audioHandleList);op |
File pointer to the output destination. |
fileFlag |
Flag that specifies the input data type. |
filePtr |
Pointer to input data appropriate for fileFlag. |
fileHeader |
Pointer to the THPFileHeader structure. |
audioHandleList |
Pointer list for THPAudioHandle structures. |
Returns one of the following codes:
| code | value | description |
THP_ERROR_NOERROR |
0 | The function ended normally. |
THP_ERROR_FILEIO |
1 | Failed to read or write from file. |
THP_ERROR_THPFILE |
2 | The THP movie data is invalid. |
THP_ERROR_JPEGFILE |
3 | The JPEG data is invalid. |
THP_ERROR_DATA |
4 | The data is invalid. |
THP_ERROR_FATAL |
5 | Failed to allocate memory. |
This function creates THP movie data based on the information in fileHeader and outputs it to op.
For more information, see the thputilities(D).lib source code in build/tools/thputilities/src/thputilities.c.
2006/03/01 Initial version.
CONFIDENTIAL