vitasdk
Documentation of the vitasdk
jpegenc.h
Go to the documentation of this file.
1 
6 #ifndef _PSP2KERN_AVCODEC_JPEGENC_H_
7 #define _PSP2KERN_AVCODEC_JPEGENC_H_
8 
9 #include <vitasdk/build_utils.h>
10 #include <psp2kern/types.h>
11 #include <psp2common/jpegenc.h>
12 
25 int ksceJpegEncoderInit(SceJpegEncoderContext context, int inWidth, int inHeight, SceJpegEncoderPixelFormat pixelformat, void *outBuffer, SceSize outSize);
26 
35 
44 int ksceJpegEncoderEncode(SceJpegEncoderContext context, const void *inBuffer);
45 
55 
56 
66 int ksceJpegEncoderSetOutputAddr(SceJpegEncoderContext context, void *outBuffer, SceSize outSize);
67 
79 int ksceJpegEncoderCsc(SceJpegEncoderContext context, void *outBuffer, const void *inBuffer, int inPitch, SceJpegEncoderPixelFormat inPixelFormat);
80 
87 
97 int ksceJpegEncoderSetValidRegion(SceJpegEncoderContext context, int inWidth, int inHeight);
98 
108 
109 #endif /* _PSP2KERN_AVCODEC_JPEGENC_H_ */
110 
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