Lines Matching defs:points
23 static void GetCheckPoints(Point center, std::vector<Point> &points)
26 points.push_back(center);
27 points.push_back({center.x + STEP, center.y});
28 points.push_back({center.x + STEP, center.y + STEP});
29 points.push_back({center.x + STEP, center.y - STEP});
30 points.push_back({center.x, center.y + STEP});
31 points.push_back({center.x - STEP, center.y});
32 points.push_back({center.x - STEP, center.y - STEP});
33 points.push_back({center.x - STEP, center.y + STEP});
34 points.push_back({center.x, center.y - STEP});
57 static std::vector<uint32_t> GetCheckColors(const std::vector<LayerSettings> &layers, const std::vector<Point> &points)
60 for (auto point : points) {
86 std::vector<Point> points;
90 GetCheckPoints({RECT.x, RECT.y}, points);
91 GetCheckPoints({RECT.x, RECT.y + RECT.h}, points);
92 GetCheckPoints({RECT.x + RECT.w, RECT.y}, points);
93 GetCheckPoints({RECT.x + RECT.w, RECT.y + RECT.h}, points);
95 GetCheckPoints({RECT.x + RECT.w / MID_POS, RECT.y + RECT.h / MID_POS}, points); // center point
100 std::vector<uint32_t> colors = GetCheckColors(layers, points);
101 DISPLAY_TEST_CHK_RETURN((colors.size() != points.size()), DISPLAY_FAILURE,
103 for (uint32_t i = 0; i < points.size(); i++) {
104 if ((points[i].x >= clientBuffer.width) || (points[i].x < 0) || (points[i].y < 0) ||
105 (points[i].y >= clientBuffer.height)) {
108 ret = CheckPixel(clientBuffer, points[i].x, points[i].y, colors[i]);