| 300 | } |
| 301 | |
| 302 | static 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 | |
| 319 | static bool LoadA1R5G5B5( QDataStream & s, const DDSHeader & header, QImage & img ) |
| 320 | { |
nothing calls this directly
no outgoing calls
no test coverage detected