vitasdk
Documentation of the vitasdk

Detailed Description

Exports for User.


Using this library in your project

Include the header file in your project:

#include <psp2/jpeg.h>


Link the library to the executable:

SceJpeg_stub



Functions

 VITASDK_BUILD_ASSERT_EQ (0xC, SceJpegMJpegInitParam)
 
 VITASDK_BUILD_ASSERT_EQ (8, SceJpegPitch)
 
 VITASDK_BUILD_ASSERT_EQ (0x34, SceJpegOutputInfo)
 
int sceJpegInitMJpeg (SceInt32 decoderCount)
 
int sceJpegInitMJpegWithParam (const SceJpegMJpegInitParam *params)
 
int sceJpegFinishMJpeg ()
 
int sceJpegGetOutputInfo (const SceUInt8 *jpegData, SceSize jpegSize, SceInt32 format, SceInt32 mode, SceJpegOutputInfo *output)
 
int sceJpegDecodeMJpegYCbCr (const SceUInt8 *jpegData, SceSize jpegSize, SceInt32 mode, SceUInt8 *output, SceSize outputSize, void *buffer, SceSize bufferSize)
 
int sceJpegMJpegCsc (SceUInt8 *rgba, const SceUInt8 *yuv, SceSize yuvSize, SceInt32 imageWidth, SceInt32 format, SceInt32 sampling)
 

Data Structure Documentation

◆ SceJpegMJpegInitParam

struct SceJpegMJpegInitParam
Data Fields
SceSize size
SceInt32 decoderCount
SceInt32 options

◆ SceJpegPitch

struct SceJpegPitch
Data Fields
SceUInt32 x
SceUInt32 y

◆ SceJpegOutputInfo

struct SceJpegOutputInfo
Data Fields
SceInt32 colorSpace
SceUInt16 width
SceUInt16 height
SceUInt32 outputSize
SceUInt32 unk_0xc
SceUInt32 unk_0x10
SceJpegPitch pitch[4]

Function Documentation

◆ VITASDK_BUILD_ASSERT_EQ() [1/3]

VITASDK_BUILD_ASSERT_EQ ( 0xC  ,
SceJpegMJpegInitParam   
)

◆ VITASDK_BUILD_ASSERT_EQ() [2/3]

VITASDK_BUILD_ASSERT_EQ ( ,
SceJpegPitch   
)

◆ VITASDK_BUILD_ASSERT_EQ() [3/3]

VITASDK_BUILD_ASSERT_EQ ( 0x34  ,
SceJpegOutputInfo   
)

◆ sceJpegInitMJpeg()

int sceJpegInitMJpeg ( SceInt32  decoderCount)

◆ sceJpegInitMJpegWithParam()

int sceJpegInitMJpegWithParam ( const SceJpegMJpegInitParam params)

◆ sceJpegFinishMJpeg()

int sceJpegFinishMJpeg ( )

◆ sceJpegGetOutputInfo()

int sceJpegGetOutputInfo ( const SceUInt8 jpegData,
SceSize  jpegSize,
SceInt32  format,
SceInt32  mode,
SceJpegOutputInfo output 
)

◆ sceJpegDecodeMJpegYCbCr()

int sceJpegDecodeMJpegYCbCr ( const SceUInt8 jpegData,
SceSize  jpegSize,
SceInt32  mode,
SceUInt8 output,
SceSize  outputSize,
void *  buffer,
SceSize  bufferSize 
)

◆ sceJpegMJpegCsc()

int sceJpegMJpegCsc ( SceUInt8 rgba,
const SceUInt8 yuv,
SceSize  yuvSize,
SceInt32  imageWidth,
SceInt32  format,
SceInt32  sampling 
)