#include <win32/thpcore.h>s32 THPConvertJPEG2THP(void* jpeg_ptr,
void* thp_ptr,
s32 jpeg_length,
THPImageStatus* status);jpeg_ptr |
Pointer to the conversion source JPEG data. |
thp_ptr |
Output buffer for THP video data after conversion. |
jpeg_length |
Size of the conversion source JPEG data. |
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 | The JPEG data is invalid. |
This function converts jpeg_length bytes of JPEG data specified by jpeg_ptr and outputs the converted JPEG data to the buffer specified by thp_ptr. Information about the converted data is saved in the THPImageStatus structure specified by status.
2006/03/01 Initial version.
CONFIDENTIAL