MCPcopy Create free account
hub / github.com/MyGUI/mygui / writeBinBitmap

Function writeBinBitmap

MyGUIEngine/src/msdfgen/main.cpp:218–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216}
217
218static bool writeBinBitmap(FILE *file, const float *values, int cols, int rows, int rowStride) {
219 for (int row = 0; row < rows; ++row) {
220 const float *cur = values;
221 for (int col = 0; col < cols; ++col) {
222 byte v = pixelFloatToByte(*cur++);
223 fwrite(&v, 1, 1, file);
224 }
225 values += rowStride;
226 }
227 return true;
228}
229
230#ifdef __BIG_ENDIAN__
231static bool writeBinBitmapFloatBE(FILE *file, const float *values, int cols, int rows, int rowStride)

Callers 1

writeOutputFunction · 0.85

Calls 1

pixelFloatToByteFunction · 0.85

Tested by

no test coverage detected