MCPcopy Create free account
hub / github.com/codestation/qcma / LoadR8G8B8

Function LoadR8G8B8

common/dds.cpp:302–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300}
301
302static bool LoadR8G8B8( QDataStream & s, const DDSHeader & header, QImage & img )
303{
304 const uint w = header.width;
305 const uint h = header.height;
306
307 for( uint y = 0; y < h; y++ ) {
308 QRgb * scanline = (QRgb *) img.scanLine( y );
309 for( uint x = 0; x < w; x++ ) {
310 uchar r, g, b;
311 s >> b >> g >> r;
312 scanline[x] = qRgb(r, g, b);
313 }
314 }
315
316 return true;
317}
318
319static bool LoadA1R5G5B5( QDataStream & s, const DDSHeader & header, QImage & img )
320{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected