Skip to content

Commit e794711

Browse files
added sceJpegGetOutputInfo
1 parent 1257728 commit e794711

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/mpeg/pspjpeg.h

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ int sceJpegDecodeMJpeg(u8 *jpegbuf, SceSize size, void *rgba, u32 dhtMode);
7272
*
7373
* @return (width * 65536) + height on success, < 0 on error
7474
*/
75-
int sceJpegDecodeMJpegYCbCr(u8 *jpegAddr, SceSize jpegSize, u8 *yCbCr, SceSize yCbCrSize, u32 dhtMode);
75+
int sceJpegDecodeMJpegYCbCr(u8 *jpegbuf, SceSize jpegSize, u8 *yCbCr, SceSize yCbCrSize, u32 dhtMode);
7676

7777
/**
7878
* Converts a frame from YCbCr to ABGR
@@ -87,6 +87,18 @@ int sceJpegDecodeMJpegYCbCr(u8 *jpegAddr, SceSize jpegSize, u8 *yCbCr, SceSize y
8787
*/
8888
int sceJpegCsc(u8 *imageAddr, u8 *yCbCrAddr, int widthHeight, int bufferWidth, int colourInfo);
8989

90+
/**
91+
* Reads information from mjpeg frame
92+
*
93+
* @param jpegbuf - the buffer with the mjpeg frame
94+
* @param size - size of the mjpeg frame
95+
* @param colourInfoAddr - address where the mjpeg chroma information will be stored
96+
* @param dhtMode - Unknown, pass 0
97+
*
98+
* @return 0 on success, < 0 on error
99+
*/
100+
int sceJpegGetOutputInfo(u8* jpegbuf, SceSize size, int* colourInfoAddr, int dhtMode);
101+
90102
#ifdef __cplusplus
91103
}
92104
#endif

0 commit comments

Comments
 (0)