@@ -87,7 +87,7 @@ std::pair<QImage, MSE>
8787calculateDifferencePredefinedPixelFormat (const InputFrameParameters &frame1,
8888 const InputFrameParameters &frame2,
8989 const PredefinedPixelFormat predefinedPixelFormat,
90- const Endianness endianess ,
90+ const Endianness endianness ,
9191 const int amplificationFactor,
9292 const bool markDifference)
9393{
@@ -108,8 +108,8 @@ calculateDifferencePredefinedPixelFormat(const InputFrameParameters &frame1,
108108
109109 for (unsigned i = 0 ; i < frameSize.width * frameSize.height ; ++i)
110110 {
111- const auto rgb1 = extractRGB565Value (rawData1, endianess );
112- const auto rgb2 = extractRGB565Value (rawData2, endianess );
111+ const auto rgb1 = extractRGB565Value (rawData1, endianness );
112+ const auto rgb2 = extractRGB565Value (rawData2, endianness );
113113
114114 const auto delta = rgb1 - rgb2;
115115
@@ -128,7 +128,7 @@ calculateDifferencePredefinedPixelFormat(const InputFrameParameters &frame1,
128128}
129129
130130template <typename T>
131- rgba_t getRGBAndConvertEndianess (const DataPointers<T> dataPointers, const Endianness endianess )
131+ rgba_t getRGBAndConvertEndianness (const DataPointers<T> dataPointers, const Endianness endianness )
132132{
133133 constexpr auto bitDepth =
134134 (std::is_same_v<T, uint8_t > ? 8 : (std::is_same_v<T, uint16_t > ? 16 : 32 ));
@@ -137,11 +137,11 @@ rgba_t getRGBAndConvertEndianess(const DataPointers<T> dataPointers, const Endia
137137 auto g = *dataPointers.g ;
138138 auto b = *dataPointers.b ;
139139
140- if (endianess == Endianness::Big)
140+ if (endianness == Endianness::Big)
141141 {
142- r = swapBytesEndianess <bitDepth>(r);
143- g = swapBytesEndianess <bitDepth>(g);
144- b = swapBytesEndianess <bitDepth>(b);
142+ r = swapBytesEndianness <bitDepth>(r);
143+ g = swapBytesEndianness <bitDepth>(g);
144+ b = swapBytesEndianness <bitDepth>(b);
145145 }
146146
147147 return rgba_t ({.r = static_cast <int >(r), .g = static_cast <int >(g), .b = static_cast <int >(b)});
@@ -174,8 +174,8 @@ std::pair<QImage, MSE> calculateDifferenceAndMSE(const InputFrameParameters &fra
174174
175175 for (unsigned i = 0 ; i < frameSize.width * frameSize.height ; ++i)
176176 {
177- const auto rgb1 = getRGBAndConvertEndianess (dataPointers1, pixelFormat.getEndianess ());
178- const auto rgb2 = getRGBAndConvertEndianess (dataPointers2, pixelFormat.getEndianess ());
177+ const auto rgb1 = getRGBAndConvertEndianness (dataPointers1, pixelFormat.getEndianness ());
178+ const auto rgb2 = getRGBAndConvertEndianness (dataPointers2, pixelFormat.getEndianness ());
179179
180180 const auto delta = rgb1 - rgb2;
181181
@@ -205,7 +205,7 @@ std::pair<QImage, MSE> calculateDifferenceAndMSE(const InputFrameParameters &fra
205205 return calculateDifferencePredefinedPixelFormat (frame1,
206206 frame2,
207207 *pixelFormat.getPredefinedPixelFormat (),
208- pixelFormat.getEndianess (),
208+ pixelFormat.getEndianness (),
209209 amplificationFactor,
210210 markDifference);
211211
0 commit comments