| 194 | #endif |
| 195 | |
| 196 | static bool writeTextBitmap(FILE *file, const float *values, int cols, int rows, int rowStride) { |
| 197 | for (int row = 0; row < rows; ++row) { |
| 198 | const float *cur = values; |
| 199 | for (int col = 0; col < cols; ++col) |
| 200 | fprintf(file, col ? " %02X" : "%02X", int(pixelFloatToByte(*cur++))); |
| 201 | fprintf(file, "\n"); |
| 202 | values += rowStride; |
| 203 | } |
| 204 | return true; |
| 205 | } |
| 206 | |
| 207 | static bool writeTextBitmapFloat(FILE *file, const float *values, int cols, int rows, int rowStride) { |
| 208 | for (int row = 0; row < rows; ++row) { |
no test coverage detected