| 174 | } |
| 175 | |
| 176 | void simulate8bit(const BitmapSection<float, 1> &bitmap) { |
| 177 | const float *end = bitmap.pixels+1*bitmap.width*bitmap.height; |
| 178 | for (float *p = bitmap.pixels; p < end; ++p) |
| 179 | *p = pixelByteToFloat(pixelFloatToByte(*p)); |
| 180 | } |
| 181 | |
| 182 | void simulate8bit(const BitmapSection<float, 3> &bitmap) { |
| 183 | const float *end = bitmap.pixels+3*bitmap.width*bitmap.height; |
no test coverage detected