RLE for greyscale lcd (gives more firmware space!) (#1142)
* use RLE encodes bitmaps on 212x64 pixel radios * fix model image display fix icon display * implement RLE bitmaps in companion for splash image on 212x64 radios reserve 3kB for RLE bitmaps in firmware * fix size check * use defines instead of magic numbers * fix display of splash screens on 212x64 radios * add warning message if compressed image is larger than the reserved space
This commit is contained in:
@@ -36,10 +36,13 @@
|
||||
#define ERSKY9X_SPE "SPE"
|
||||
#define ERSKY9X_OFFSET (7)
|
||||
|
||||
// 3kB - width and height bytes
|
||||
#define RLE_SPLASH_MAX_SIZE (3070)
|
||||
|
||||
class FirmwareInterface
|
||||
{
|
||||
public:
|
||||
FirmwareInterface(const QString & filename);
|
||||
FirmwareInterface(const QString & filename, QDialog* parentDialog = nullptr);
|
||||
inline QString getDate() { return date; }
|
||||
inline QString getTime() { return time; }
|
||||
int getSize() { return flashSize; }
|
||||
@@ -59,6 +62,7 @@ class FirmwareInterface
|
||||
bool isValid();
|
||||
|
||||
private:
|
||||
QDialog* parentDialog;
|
||||
QByteArray flash;
|
||||
uint flashSize;
|
||||
QString seekString(const QString & string);
|
||||
|
||||
Reference in New Issue
Block a user