THPUtyCreateTHP

Syntax

#include <win32/thputilities.h>

s32 THPUtyCreateTHP(FILE*            op,
                    s32              fileFlag,
                    void*            filePtr,
                    THPFileHeader*   fileHeader,
                    THPAudioHandle** audioHandleList);

Arguments

op File pointer to output destination.
fileFlag Flag that specifies the input data type.
filePtr Pointer to input data corresponding to fileFlag.
fileHeader Pointer to THPFileHeader structure.
audioHandleList Pointer list for THPAudioHandle structures.

Return Values

Returns one of the following codes.

Code Value Description
THP_ERROR_NOERROR 0 The function ended normally.
THP_ERROR_FILEIO 1 Failed to read to or write from file.
THP_ERROR_THPFILE 2 The THP movie data is invalid.
THP_ERROR_JPEGFILE 3 JPEG data is invalid.
THP_ERROR_DATA 4 Data is invalid.
THP_ERROR_FATAL 5 Failed to allocate memory.

Description

Generates THP movie data based on the information in fileHeader and outputs it to op.

For details, see the thputilities(D).lib source code in build/tools/thputilities/src/thputilities.c.

See Also

THPAudioHandle

Revision History

2006/03/01 Initial version.


CONFIDENTIAL