MCPcopy Create free account
hub / github.com/awawa-dev/HyperHDR / getWhiteBlackColorLevels

Function getWhiteBlackColorLevels

sources/lut-calibrator/BoardUtils.cpp:95–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93 }
94
95 void getWhiteBlackColorLevels(const Image<ColorRgb>& yuvImage, CapturedColor& white, CapturedColor& black, int& line)
96 {
97 auto top = readBlock(yuvImage, int2(0, 0));
98 auto bottom = readBlock(yuvImage, int2(0, SCREEN_BLOCKS_Y - 1));
99 if (top.y() > bottom.y())
100 {
101 white = top;
102 black = bottom;
103 line = 0;
104 }
105 else
106 {
107 white = bottom;
108 black = top;
109 line = SCREEN_BLOCKS_Y - 1;
110 }
111 }
112
113 bool verifyBlackColorPattern(const Image<ColorRgb>& yuvImage, bool isFirstWhite, CapturedColor& black)
114 {

Callers 1

parseBoardFunction · 0.85

Calls 2

readBlockFunction · 0.85
int2Class · 0.85

Tested by

no test coverage detected