| 205 | } |
| 206 | |
| 207 | void ExtractBlock( const uint8_t* inPtr, const int width, uint8_t* colorBlock ) |
| 208 | { |
| 209 | for( int j = 0; j < 4; j++ ) |
| 210 | { |
| 211 | memcpy( &colorBlock[j * 4 * 4], inPtr, 4 * 4 ); |
| 212 | inPtr += width * 4; |
| 213 | } |
| 214 | } |
| 215 | |
| 216 | // Extract a block, but blank out blue, and swap red and alpha, on the fly. |
| 217 | void ExtractBlockDXT5N( const uint8_t* inPtr, const int width, uint8_t* colorBlock ) |
no outgoing calls
no test coverage detected