Go to the source code of this file.
◆ sceJpegCreateMJpeg()
int sceJpegCreateMJpeg |
( |
int | width, |
|
|
int | height ) |
Creates the decoder context.
- Parameters
-
width | - The width of the frame |
height | - The height of the frame |
- Returns
- 0 on success, < 0 on error
◆ sceJpegDecodeMJpeg()
int sceJpegDecodeMJpeg |
( |
u8 * | jpegbuf, |
|
|
SceSize | size, |
|
|
void * | rgba, |
|
|
u32 | unk ) |
Decodes a mjpeg frame.
- Parameters
-
jpegbuf | - the buffer with the mjpeg frame |
size | - size of the buffer pointed by jpegbuf |
rgba | - buffer where the decoded data in RGBA format will be stored. It should have a size of (width * height * 4). |
unk | - Unknown, pass 0 |
- Returns
- (width * 65536) + height on success, < 0 on error
◆ sceJpegDeleteMJpeg()
int sceJpegDeleteMJpeg |
( |
void | | ) |
|
Deletes the current decoder context.
- Returns
- 0 on success, < 0 on error
◆ sceJpegFinishMJpeg()
int sceJpegFinishMJpeg |
( |
void | | ) |
|
Finishes the MJpeg library.
- Returns
- 0 on success, < 0 on error
◆ sceJpegInitMJpeg()
int sceJpegInitMJpeg |
( |
void | | ) |
|
Inits the MJpeg library.
- Returns
- 0 on success, < 0 on error