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:
parent
6f8dbefdec
commit
2cc0afa762
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue