MCPcopy Create free account
hub / github.com/devilsen/CZXing / Deflate

Function Deflate

czxing/src/main/cpp/zxing/src/BitMatrix.cpp:160–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160BitMatrix Deflate(const BitMatrix& input, int width, int height, float top, float left, float subSampling)
161{
162 BitMatrix result(width, height);
163
164 for (int y = 0; y < result.height(); y++) {
165 auto yOffset = top + y * subSampling;
166 for (int x = 0; x < result.width(); x++) {
167 if (input.get(PointF(left + x * subSampling, yOffset)))
168 result.set(x, y);
169 }
170 }
171
172 return result;
173}
174
175} // ZXing
176

Callers 3

DetectPureFunction · 0.85
DetectPureQRFunction · 0.85
DetectPureMQRFunction · 0.85

Calls 4

heightMethod · 0.45
widthMethod · 0.45
getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected