6 #ifndef _PSP2_JPEGENC_H_
7 #define _PSP2_JPEGENC_H_
int inWidth
Input width in pixels.
Definition: jpegenc.h:24
int inHeight
Input height in pixels.
Definition: jpegenc.h:25
int sceJpegEncoderInitWithParam(SceJpegEncoderContext context, const SceJpegEncoderInitParam *initParam)
Initialize a jpeg encoder with param.
int sceJpegEncoderCsc(SceJpegEncoderContext context, void *outBuffer, const void *inBuffer, int inPitch, SceJpegEncoderPixelFormat inPixelFormat)
Execute a color conversion from ARGB to YCbCr.
SceSize outSize
Output size in bytes.
Definition: jpegenc.h:28
int option
Additional options, OR of SceJpegEncoderInitParamOption.
Definition: jpegenc.h:29
int sceJpegEncoderSetOutputAddr(SceJpegEncoderContext context, void *outBuffer, SceSize outSize)
Set encoder output address.
int sceJpegEncoderGetContextSize(void)
Return required free size to allocate a jpeg encoder.
SceJpegEncoderInitParamOption
Definition: jpegenc.h:17
VITASDK_BUILD_ASSERT_EQ(0x1C, SceJpegEncoderInitParam)
int sceJpegEncoderEnd(SceJpegEncoderContext context)
Terminate a jpeg encoder.
SceJpegEncoderPixelFormat
Definition: jpegenc.h:30
void * SceJpegEncoderContext
Definition: jpegenc.h:17
int sceJpegEncoderEncode(SceJpegEncoderContext context, const void *inBuffer)
Execute a jpeg encode.
int sceJpegEncoderInit(SceJpegEncoderContext context, int inWidth, int inHeight, SceJpegEncoderPixelFormat pixelformat, void *outBuffer, SceSize outSize)
Initialize a jpeg encoder.
int sceJpegEncoderSetHeaderMode(SceJpegEncoderContext context, int mode)
Set header used for output file.
SceSize size
Size of this structure.
Definition: jpegenc.h:23
int sceJpegEncoderSetValidRegion(SceJpegEncoderContext context, int inWidth, int inHeight)
Set encoder valid region (?)
int sceJpegEncoderSetCompressionRatio(SceJpegEncoderContext context, int ratio)
Set encoder compression ratio.
void * outBuffer
A physically continuous memory block 256 bytes aligned.
Definition: jpegenc.h:27
int pixelFormat
A valid SceJpegEncoderPixelFormat set of values.
Definition: jpegenc.h:26
@ SCE_JPEGENC_INIT_PARAM_OPTION_NONE
Default option.
Definition: jpegenc.h:18
@ SCE_JPEGENC_INIT_PARAM_OPTION_LPDDR2_MEMORY
LPDDR2 memory will be used instead of CDRAM.
Definition: jpegenc.h:19
unsigned int SceSize
Definition: types.h:56