PSPSDK 2025-07-17
Loading...
Searching...
No Matches
pspjpeg.h
Go to the documentation of this file.
1/*
2 * PSP Software Development Kit - https://github.com/pspdev
3 * -----------------------------------------------------------------------
4 * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
5 *
6 * pspjpeg.h - Prototypes for the sceJpeg library
7 *
8 * Copyright (c) 2007 dot_blank
9 *
10 */
11#ifndef __PSPJPEG_H__
12#define __PSPJPEG_H__
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
18#include <psptypes.h>
19
20#define SCE_JPEG_ERROR_BAD_MARKER_LENGTH (0x80650004)
21#define SCE_JPEG_ERROR_INVALID_POINTER (0x80650010)
22#define SCE_JPEG_ERROR_UNSUPPORT_COLORSPACE (0x80650013)
23#define SCE_JPEG_ERROR_UNSUPPORT_SAMPLING (0x80650016)
24#define SCE_JPEG_ERROR_UNSUPPORT_IMAGE_SIZE (0x80650020)
25#define SCE_JPEG_ERROR_UNKNOWN_MARKER (0x80650035)
26
33
40
49int sceJpegCreateMJpeg(int width, int height);
50
57
71int sceJpegDecodeMJpeg(u8 *jpegbuf, SceSize size, u8 *rgba, u32 unk);
72
83int sceJpegGetOutputInfo(u8 *jpegbuf, SceSize size, int *colourInfo, int unk);
84
98int sceJpegDecodeMJpegYCbCr(u8 *jpegbuf, SceSize size, u8 *yCbCr, SceSize yCbCrSize, u32 unk);
99
112int sceJpegCsc(u8 *imageAddr, u8 *yCbCrAddr, int widthHeight, int bufferWidth, int colourInfo);
113
114#ifdef __cplusplus
115}
116#endif
117
118#endif
int sceJpegDecodeMJpegYCbCr(u8 *jpegbuf, SceSize size, u8 *yCbCr, SceSize yCbCrSize, u32 unk)
Decodes a mjpeg frame to YCbCr encoding.
int sceJpegDeleteMJpeg(void)
Deletes the current decoder context.
int sceJpegCsc(u8 *imageAddr, u8 *yCbCrAddr, int widthHeight, int bufferWidth, int colourInfo)
Converts a frame from YCbCr to RGBA.
int sceJpegCreateMJpeg(int width, int height)
Creates the decoder context.
int sceJpegFinishMJpeg(void)
Finishes the MJpeg library.
int sceJpegGetOutputInfo(u8 *jpegbuf, SceSize size, int *colourInfo, int unk)
Reads information from mjpeg frame.
int sceJpegDecodeMJpeg(u8 *jpegbuf, SceSize size, u8 *rgba, u32 unk)
Decodes a mjpeg frame to RGBA encoding.
int sceJpegInitMJpeg(void)
Inits the MJpeg library.
unsigned int SceSize
Definition psptypes.h:103
uint8_t u8
Definition psptypes.h:38
uint32_t u32
Definition psptypes.h:41