mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
added logging for files that were lacking it. (#66)
This commit is contained in:
parent
fda861a1c1
commit
1faead11c5
3
libsrc/utils/ImageResampler.cpp
Normal file → Executable file
3
libsrc/utils/ImageResampler.cpp
Normal file → Executable 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
3
libsrc/utils/RgbToRgbw.cpp
Normal file → Executable 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());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user