@@ -26,7 +26,7 @@ namespace iris
2626 public:
2727
2828 FrameData () {};
29- FrameData (int frame, long timeMs) : Frame(frame)
29+ FrameData (unsigned int frame, unsigned long timeMs) : Frame(frame)
3030 {
3131 TimeStampMs = msToTimeSpan (timeMs);
3232 };
@@ -108,7 +108,7 @@ namespace iris
108108 // / <summary>
109109 // / Frame index
110110 // / </summary>
111- int Frame = 0 ;
111+ unsigned int Frame = 0 ;
112112
113113 // / <summary>
114114 // / frame timestamp in milliseconds
@@ -123,10 +123,10 @@ namespace iris
123123 float AverageRedDiff = 0 ;
124124 float AverageRedDiffAcc = 0 ;
125125 float PatternRisk = 0 ;
126- int LuminanceTransitions = 0 ;
127- int RedTransitions = 0 ;
128- int LuminanceExtendedFailCount = 0 ;
129- int RedExtendedFailCount = 0 ;
126+ unsigned int LuminanceTransitions = 0 ;
127+ unsigned int RedTransitions = 0 ;
128+ unsigned int LuminanceExtendedFailCount = 0 ;
129+ unsigned int RedExtendedFailCount = 0 ;
130130 FlashResult luminanceFrameResult = FlashResult::Pass;
131131 FlashResult redFrameResult = FlashResult::Pass;
132132 std::string patternArea = " 0.00%" ;
@@ -161,7 +161,7 @@ namespace iris
161161
162162 struct FrameDataJson
163163 {
164- void reserve (const int & size)
164+ void reserve (const unsigned int & size)
165165 {
166166 frame.reserve (size);
167167 timeStampMs.reserve (size);
@@ -190,7 +190,7 @@ namespace iris
190190
191191 }
192192
193- void reserveLineGraphData (const int & size)
193+ void reserveLineGraphData (const unsigned int & size)
194194 {
195195 timeStampMs.reserve (size);
196196 luminanceTransitions.reserve (size);
@@ -238,25 +238,25 @@ namespace iris
238238 patternFrameResult.push_back ((int )data.patternFrameResult );
239239 }
240240
241- std::vector<int > frame;
241+ std::vector<unsigned int > frame;
242242 std::vector<std::string> timeStampMs;
243243 std::vector<std::string> luminanceFlashArea;
244244 std::vector<float > luminanceAverage;
245245 std::vector<float > averageLuminanceDiff;
246246 std::vector<float > averageLuminanceDiffAcc;
247- std::vector <std::string> redFlashArea;
247+ std::vector < std::string> redFlashArea;
248248 std::vector<float > redAverage;
249249 std::vector<float > averageRedDiff;
250250 std::vector<float > averageRedDiffAcc;
251- std::vector<int > luminanceTransitions;
252- std::vector<int > redTransitions;
253- std::vector<int > luminanceExtendedFailCount;
254- std::vector<int > redExtendedFailCount;
255- std::vector<short > luminanceFrameResult;
256- std::vector<short > redFrameResult;
251+ std::vector<unsigned int > luminanceTransitions;
252+ std::vector<unsigned int > redTransitions;
253+ std::vector<unsigned int > luminanceExtendedFailCount;
254+ std::vector<unsigned int > redExtendedFailCount;
255+ std::vector<unsigned short > luminanceFrameResult;
256+ std::vector<unsigned short > redFrameResult;
257257 std::vector<std::string> patternArea;
258258 std::vector<int > patternDetectedLines;
259- std::vector<short > patternFrameResult;
259+ std::vector<unsigned short > patternFrameResult;
260260 };
261261
262262 // Serializes FrameData to Json object
0 commit comments