mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-25 06:19:51 +00:00
Merge pull request #3088 from CPkmn/patch-2
Try fixing sceJpegGetOutputInfo again
This commit is contained in:
commit
c8ce303f4d
@ -95,14 +95,6 @@ int sceJpegGetOutputInfo(u32 jpegAddr, int jpegSize, u32 colourInfoAddr, int dht
|
||||
{
|
||||
ERROR_LOG_REPORT(HLE, "sceJpegGetOutputInfo(%i, %i, %i, %i)", jpegAddr, jpegSize, colourInfoAddr, dhtMode);
|
||||
|
||||
// Buffer to store info about the color space in use.
|
||||
// - Bits 24 to 32 (Always empty): 0x00
|
||||
// - Bits 16 to 24 (Color mode): 0x00 (Unknown), 0x01 (Greyscale) or 0x02 (YCbCr)
|
||||
// - Bits 8 to 16 (Vertical chroma subsampling value): 0x00, 0x01 or 0x02
|
||||
// - Bits 0 to 8 (Horizontal chroma subsampling value): 0x00, 0x01 or 0x02
|
||||
if (Memory::IsValidAddress(colourInfoAddr))
|
||||
Memory::Write_U32(0x00020202, colourInfoAddr);
|
||||
|
||||
int w = 0, h = 0, actual_components = 0;
|
||||
|
||||
if (!Memory::IsValidAddress(jpegAddr))
|
||||
@ -129,6 +121,14 @@ int sceJpegGetOutputInfo(u32 jpegAddr, int jpegSize, u32 colourInfoAddr, int dht
|
||||
}
|
||||
}
|
||||
|
||||
// Buffer to store info about the color space in use.
|
||||
// - Bits 24 to 32 (Always empty): 0x00
|
||||
// - Bits 16 to 24 (Color mode): 0x00 (Unknown), 0x01 (Greyscale) or 0x02 (YCbCr)
|
||||
// - Bits 8 to 16 (Vertical chroma subsampling value): 0x00, 0x01 or 0x02
|
||||
// - Bits 0 to 8 (Horizontal chroma subsampling value): 0x00, 0x01 or 0x02
|
||||
if (Memory::IsValidAddress(colourInfoAddr))
|
||||
Memory::Write_U32(0x00020202, colourInfoAddr);
|
||||
|
||||
#ifdef JPEG_DEBUG
|
||||
char jpeg_fname[256];
|
||||
u8 *jpegBuf = Memory::GetPointer(jpegAddr);
|
||||
|
Loading…
Reference in New Issue
Block a user