| 92 | } |
| 93 | |
| 94 | static void FixRange( int& min, int& max, int steps ) |
| 95 | { |
| 96 | if( max - min < steps ) |
| 97 | max = std::min( min + steps, 255 ); |
| 98 | if( max - min < steps ) |
| 99 | min = std::max( 0, max - steps ); |
| 100 | } |
| 101 | |
| 102 | static int FitCodes( u8 const* rgba, int mask, u8 const* codes, u8* indices ) |
| 103 | { |
no test coverage detected