mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-04 22:57:50 +03:00
style: fix clang-format issues
This commit is contained in:
parent
ff28388b04
commit
a2d32640f2
@ -49,9 +49,7 @@ ImageToFramebufferDecoder* ImageDecoderFactory::getDecoder(const std::string& im
|
|||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ImageDecoderFactory::isFormatSupported(const std::string& imagePath) {
|
bool ImageDecoderFactory::isFormatSupported(const std::string& imagePath) { return getDecoder(imagePath) != nullptr; }
|
||||||
return getDecoder(imagePath) != nullptr;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::vector<std::string> ImageDecoderFactory::getSupportedFormats() {
|
std::vector<std::string> ImageDecoderFactory::getSupportedFormats() {
|
||||||
std::vector<std::string> formats;
|
std::vector<std::string> formats;
|
||||||
|
|||||||
@ -80,8 +80,8 @@ static int32_t pngSeekWithHandle(PNGFILE* pFile, int32_t pos) {
|
|||||||
static PNG png;
|
static PNG png;
|
||||||
|
|
||||||
bool PngToFramebufferConverter::getDimensionsStatic(const std::string& imagePath, ImageDimensions& out) {
|
bool PngToFramebufferConverter::getDimensionsStatic(const std::string& imagePath, ImageDimensions& out) {
|
||||||
int rc = png.open(imagePath.c_str(), pngOpenWithHandle, pngCloseWithHandle, pngReadWithHandle, pngSeekWithHandle,
|
int rc =
|
||||||
nullptr);
|
png.open(imagePath.c_str(), pngOpenWithHandle, pngCloseWithHandle, pngReadWithHandle, pngSeekWithHandle, nullptr);
|
||||||
|
|
||||||
if (rc != 0) {
|
if (rc != 0) {
|
||||||
Serial.printf("[%lu] [PNG] Failed to open PNG for dimensions: %d\n", millis(), rc);
|
Serial.printf("[%lu] [PNG] Failed to open PNG for dimensions: %d\n", millis(), rc);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user