vitasdk
Documentation of the vitasdk
jpegenc.h File Reference
#include <vitasdk/build_utils.h>
#include <psp2/types.h>
#include <psp2common/jpegenc.h>

Go to the source code of this file.

Data Structures

struct  SceJpegEncoderInitParam
 

Enumerations

enum  SceJpegEncoderInitParamOption { SCE_JPEGENC_INIT_PARAM_OPTION_NONE = 0 , SCE_JPEGENC_INIT_PARAM_OPTION_LPDDR2_MEMORY = 1 }
 

Functions

 VITASDK_BUILD_ASSERT_EQ (0x1C, SceJpegEncoderInitParam)
 
int sceJpegEncoderInit (SceJpegEncoderContext context, int inWidth, int inHeight, SceJpegEncoderPixelFormat pixelformat, void *outBuffer, SceSize outSize)
 Initialize a jpeg encoder. More...
 
int sceJpegEncoderInitWithParam (SceJpegEncoderContext context, const SceJpegEncoderInitParam *initParam)
 Initialize a jpeg encoder with param. More...
 
int sceJpegEncoderEnd (SceJpegEncoderContext context)
 Terminate a jpeg encoder. More...
 
int sceJpegEncoderEncode (SceJpegEncoderContext context, const void *inBuffer)
 Execute a jpeg encode. More...
 
int sceJpegEncoderSetCompressionRatio (SceJpegEncoderContext context, int ratio)
 Set encoder compression ratio. More...
 
int sceJpegEncoderSetOutputAddr (SceJpegEncoderContext context, void *outBuffer, SceSize outSize)
 Set encoder output address. More...
 
int sceJpegEncoderCsc (SceJpegEncoderContext context, void *outBuffer, const void *inBuffer, int inPitch, SceJpegEncoderPixelFormat inPixelFormat)
 Execute a color conversion from ARGB to YCbCr. More...
 
int sceJpegEncoderGetContextSize (void)
 Return required free size to allocate a jpeg encoder. More...
 
int sceJpegEncoderSetValidRegion (SceJpegEncoderContext context, int inWidth, int inHeight)
 Set encoder valid region (?) More...
 
int sceJpegEncoderSetHeaderMode (SceJpegEncoderContext context, int mode)
 Set header used for output file. More...