6 #ifndef _PSP2KERN_AVCODEC_JPEGENC_H_
7 #define _PSP2KERN_AVCODEC_JPEGENC_H_
int ksceJpegEncoderInit(SceJpegEncoderContext context, int inWidth, int inHeight, SceJpegEncoderPixelFormat pixelformat, void *outBuffer, SceSize outSize)
Initialize a jpeg encoder.
int ksceJpegEncoderSetHeaderMode(SceJpegEncoderContext context, int mode)
Set header used for output file.
int ksceJpegEncoderGetContextSize(void)
Return required free size to allocate a jpeg encoder.
int ksceJpegEncoderSetValidRegion(SceJpegEncoderContext context, int inWidth, int inHeight)
Set encoder valid region (?)
int ksceJpegEncoderEncode(SceJpegEncoderContext context, const void *inBuffer)
Execute a jpeg encode.
int ksceJpegEncoderSetCompressionRatio(SceJpegEncoderContext context, int ratio)
Set encoder compression ratio.
int ksceJpegEncoderEnd(SceJpegEncoderContext context)
Terminate a jpeg encoder.
int ksceJpegEncoderSetOutputAddr(SceJpegEncoderContext context, void *outBuffer, SceSize outSize)
Set encoder output address.
int ksceJpegEncoderCsc(SceJpegEncoderContext context, void *outBuffer, const void *inBuffer, int inPitch, SceJpegEncoderPixelFormat inPixelFormat)
Execute a color conversion from ARGB to YCbCr.
SceJpegEncoderPixelFormat
Definition: jpegenc.h:30
void * SceJpegEncoderContext
Definition: jpegenc.h:17
unsigned int SceSize
Definition: types.h:56