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

Function simulate8bit

MyGUIEngine/src/msdfgen/core/render-sdf.cpp:176–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176void 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
182void simulate8bit(const BitmapSection<float, 3> &bitmap) {
183 const float *end = bitmap.pixels+3*bitmap.width*bitmap.height;

Callers 1

mainFunction · 0.85

Calls 2

pixelByteToFloatFunction · 0.85
pixelFloatToByteFunction · 0.85

Tested by

no test coverage detected