2025-12-21 17:15:17 +11:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <FS.h>
|
|
|
|
|
|
|
|
|
|
class ZipFile;
|
|
|
|
|
|
|
|
|
|
class JpegToBmpConverter {
|
|
|
|
|
static void writeBmpHeader(Print& bmpOut, int width, int height);
|
2025-12-28 08:38:14 +09:00
|
|
|
// [COMMENTED OUT] static uint8_t grayscaleTo2Bit(uint8_t grayscale, int x, int y);
|
2025-12-21 17:15:17 +11:00
|
|
|
static unsigned char jpegReadCallback(unsigned char* pBuf, unsigned char buf_size,
|
|
|
|
|
unsigned char* pBytes_actually_read, void* pCallback_data);
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
static bool jpegFileToBmpStream(File& jpegFile, Print& bmpOut);
|
|
|
|
|
};
|