MCPcopy Create free account
hub / github.com/IENT/YUView / addLine

Method addLine

YUViewLib/src/statistics/FrameTypeData.cpp:91–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91void FrameTypeData::addLine(unsigned short x,
92 unsigned short y,
93 unsigned short w,
94 unsigned short h,
95 int x1,
96 int y1,
97 int x2,
98 int y2)
99{
100 StatsItemVector vec;
101 vec.pos[0] = x;
102 vec.pos[1] = y;
103 vec.size[0] = w;
104 vec.size[1] = h;
105 vec.point[0] = Point(x1, y1);
106 vec.point[1] = Point(x2, y2);
107 vec.isLine = true;
108 vectorData.push_back(vec);
109}
110
111void FrameTypeData::addPolygonValue(const Polygon &points, int val)
112{

Callers 2

loadStatisticDataMethod · 0.80
loadStatisticDataMethod · 0.80

Calls 1

PointClass · 0.70

Tested by

no test coverage detected