1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

RGB jpeg swap

This commit is contained in:
Brian Fiete 2024-02-15 14:24:05 -05:00
parent 6f8dbefdec
commit 2cc0afa762

View file

@ -240,9 +240,9 @@ bool JPEGData::ReadData()
uint8* p = *scanline; uint8* p = *scanline;
for ( JDIMENSION i = 0; i < cinfo.output_width; ++i ) for ( JDIMENSION i = 0; i < cinfo.output_width; ++i )
{ {
int r = *p++;
int g = *p++;
int b = *p++; int b = *p++;
int g = *p++;
int r = *p++;
*destPtr++ = 0xFF000000 | (r << 16) | (g << 8) | (b); *destPtr++ = 0xFF000000 | (r << 16) | (g << 8) | (b);
} }
} }