Add dithering algorithms

This commit is contained in:
jpirnay
2026-04-06 13:00:27 +02:00
parent f45b780900
commit eb95cacad4
10 changed files with 335 additions and 59 deletions
+8 -1
View File
@@ -1,5 +1,8 @@
#pragma once
#include <Epub/converters/ImageToFramebufferDecoder.h>
#include <I18nKeys.h>
#include <functional>
#include <string>
@@ -16,8 +19,12 @@ class BmpViewerActivity final : public Activity {
private:
std::string filePath;
uint8_t imageDitherMode;
bool renderCurrentImage(bool showControls = true);
bool renderBmpImage(bool showControls = true);
bool renderDecodedImage(bool showControls = true);
void cycleDitherMode();
StrId getCurrentDitherModeLabel() const;
void renderError(const char* message);
void setAsSleepScreen();
};
};