| 144 | } |
| 145 | |
| 146 | int GetStorageRequirements( int width, int height, int flags ) |
| 147 | { |
| 148 | // fix any bad flags |
| 149 | flags = FixFlags( flags ); |
| 150 | |
| 151 | // compute the storage requirements |
| 152 | int blockcount = ( ( width + 3 )/4 ) * ( ( height + 3 )/4 ); |
| 153 | int blocksize = ( ( flags & ( kDxt1 | kBc4 ) ) != 0 ) ? 8 : 16; |
| 154 | return blockcount*blocksize; |
| 155 | } |
| 156 | |
| 157 | void CompressImage( u8 const* rgba, int width, int height, void* blocks, int flags, float* metric ) |
| 158 | { |
nothing calls this directly
no test coverage detected