mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-29 17:23:54 +03:00
feat(gx): add static conversion tables to CGxFormat
This commit is contained in:
2 files changed
+27
No files matched your search
@@ -0,0 +1,23 @@
|
|||||||
|
#include "gx/CGxFormat.hpp"
|
||||||
|
|
||||||
|
const char* CGxFormat::formatToBitsString[] = {
|
||||||
|
"16", // Fmt_Rgb565
|
||||||
|
"24", // Fmt_ArgbX888
|
||||||
|
"24", // Fmt_Argb8888
|
||||||
|
"30", // Fmt_Argb2101010
|
||||||
|
"16", // Fmt_Ds160
|
||||||
|
"24", // Fmt_Ds24X
|
||||||
|
"24", // Fmt_Ds248
|
||||||
|
"32", // Fmt_Ds320
|
||||||
|
};
|
||||||
|
|
||||||
|
int32_t CGxFormat::formatToBitsUint[] = {
|
||||||
|
16, // Fmt_Rgb565
|
||||||
|
24, // Fmt_ArgbX888
|
||||||
|
24, // Fmt_Argb8888
|
||||||
|
30, // Fmt_Argb2101010
|
||||||
|
16, // Fmt_Ds160
|
||||||
|
24, // Fmt_Ds24X
|
||||||
|
24, // Fmt_Ds248
|
||||||
|
32, // Fmt_Ds320
|
||||||
|
};
|
||||||
@@ -19,6 +19,10 @@ class CGxFormat {
|
|||||||
Formats_Last = 8
|
Formats_Last = 8
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Static variables
|
||||||
|
static int32_t formatToBitsUint[Formats_Last];
|
||||||
|
static const char* formatToBitsString[Formats_Last];
|
||||||
|
|
||||||
// Member variables
|
// Member variables
|
||||||
bool hwTnL;
|
bool hwTnL;
|
||||||
int8_t window;
|
int8_t window;
|
||||||
|
|||||||
Reference in new issue
Block a user