#include <win32/thpcore.h>
s32 THPConvertJPEG2THP(void* jpeg_ptr,
void* thp_ptr,
s32 jpeg_length,
THPImageStatus* status);
| jpeg_ptr | Pointer to the JPEG data to be converted |
|---|---|
| thp_ptr | Output buffer for THP video data after conversion. |
| jpeg_length | Size of the JPEG data to convert. |
| status | Pointer to the THPImageStatus structure that stores the THP image information. |
Returns one of the following codes.
| Code | Value | Description |
| THP_ERROR_NOERROR | 0 | The function ended normally. |
|---|---|---|
| THP_ERROR_JPEGFILE | 3 | JPEG data is invalid. |
The THPConvertJPEG2THP function converts jpeg_length bytes of the JPEG data specified by jpeg_ptr into THP video data and outputs it to the buffer specified by thp_ptr. Information about the conversion data is stored in the THPImageStatus structure specified by status.
2006/03/01 Initial version.
CONFIDENTIAL