vitasdk
Documentation of the vitasdk
jpeg.h
Go to the documentation of this file.
1 
6 #ifndef _PSP2_JPEG_H_
7 #define _PSP2_JPEG_H_
8 
9 #include <vitasdk/build_utils.h>
10 #include <psp2/types.h>
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 typedef struct SceJpegMJpegInitParam {
22 
23 typedef struct SceJpegPitch {
26 } SceJpegPitch;
28 
29 typedef struct SceJpegOutputInfo {
39 
40 int sceJpegInitMJpeg(SceInt32 decoderCount);
41 
43 
45 
46 int sceJpegGetOutputInfo(const SceUInt8* jpegData,
47  SceSize jpegSize,
48  SceInt32 format,
49  SceInt32 mode,
50  SceJpegOutputInfo *output);
51 
52 int sceJpegDecodeMJpegYCbCr(const SceUInt8 *jpegData,
53  SceSize jpegSize,
54  SceInt32 mode,
55  SceUInt8 *output,
56  SceSize outputSize,
57  void *buffer,
58  SceSize bufferSize);
59 
61  const SceUInt8* yuv,
62  SceSize yuvSize,
63  SceInt32 imageWidth,
64  SceInt32 format,
65  SceInt32 sampling);
66 
67 #ifdef __cplusplus
68 }
69 #endif /* __cplusplus */
70 
71 #endif /* _PSP2_JPEG_H_ */
void * buffer
Definition: bt.h:6
SceJpegPitch pitch[4]
Definition: jpeg.h:36
SceUInt32 outputSize
Definition: jpeg.h:33
SceUInt32 unk_0xc
Definition: jpeg.h:34
SceUInt32 unk_0x10
Definition: jpeg.h:35
VITASDK_BUILD_ASSERT_EQ(0xC, SceJpegMJpegInitParam)
int sceJpegGetOutputInfo(const SceUInt8 *jpegData, SceSize jpegSize, SceInt32 format, SceInt32 mode, SceJpegOutputInfo *output)
int sceJpegInitMJpeg(SceInt32 decoderCount)
SceUInt16 width
Definition: jpeg.h:31
SceInt32 options
Definition: jpeg.h:19
int sceJpegDecodeMJpegYCbCr(const SceUInt8 *jpegData, SceSize jpegSize, SceInt32 mode, SceUInt8 *output, SceSize outputSize, void *buffer, SceSize bufferSize)
SceUInt16 height
Definition: jpeg.h:32
int sceJpegMJpegCsc(SceUInt8 *rgba, const SceUInt8 *yuv, SceSize yuvSize, SceInt32 imageWidth, SceInt32 format, SceInt32 sampling)
SceInt32 colorSpace
Definition: jpeg.h:30
int sceJpegInitMJpegWithParam(const SceJpegMJpegInitParam *params)
SceUInt32 x
Definition: jpeg.h:24
SceSize size
Definition: jpeg.h:17
SceUInt32 y
Definition: jpeg.h:25
SceInt32 decoderCount
Definition: jpeg.h:18
int sceJpegFinishMJpeg()
Definition: jpeg.h:16
Definition: jpeg.h:29
Definition: jpeg.h:23
int32_t SceInt32
Definition: types.h:44
unsigned int SceSize
Definition: types.h:56
uint16_t SceUInt16
Definition: types.h:42
uint32_t SceUInt32
Definition: types.h:45
uint8_t SceUInt8
Definition: types.h:36