added logging for files that were lacking it. (#66)

This commit is contained in:
XfableX 2016-06-29 05:53:34 +10:00 committed by brindosch
parent fda861a1c1
commit 1faead11c5
2 changed files with 4 additions and 2 deletions

3
libsrc/utils/ImageResampler.cpp Normal file → Executable file
View File

@ -1,4 +1,5 @@
#include "utils/ImageResampler.h"
#include <utils/Logger.h>
ImageResampler::ImageResampler() :
_horizontalDecimation(1),
@ -124,7 +125,7 @@ void ImageResampler::processImage(const uint8_t * data, int width, int height, i
}
break;
case PIXELFORMAT_NO_CHANGE:
std::cerr << "Invalid pixel format given" << std::endl;
Error(Logger::getInstance("ImageResampler"), "Invalid pixel format given");
break;
}
}

3
libsrc/utils/RgbToRgbw.cpp Normal file → Executable file
View File

@ -1,5 +1,6 @@
#include <utils/ColorRgb.h>
#include <utils/ColorRgbw.h>
#include <utils/Logger.h>
void Rgb_to_Rgbw(ColorRgb input, ColorRgbw * output, std::string _whiteAlgorithm) {
if (_whiteAlgorithm == "subtract_minimum") {
@ -18,7 +19,7 @@ void Rgb_to_Rgbw(ColorRgb input, ColorRgbw * output, std::string _whiteAlgorithm
output->white = 0;
}
else {
std::cout << "ERROR: unknown whiteAlgorithm " << _whiteAlgorithm << std::endl;
Error(Logger::getInstance("RGBtoRGBW"), "unknown whiteAlgorithm %s", _whiteAlgorithm.c_str());
}
}