Skip to content

Commit

Permalink
Update color_convert.h
Browse files Browse the repository at this point in the history
remove unused table
  • Loading branch information
LAutour authored Oct 6, 2022
1 parent 7546eab commit 9e2f477
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions color_convert.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,30 @@

typedef enum
{
COLORx1 = 1, //2 öâåòà ÷åðåç ïàëèòðó (òîëüêî äëÿ ICN2053)
COLORx2 = 2, //4 öâåòà ÷åðåç ïàëèòðó (òîëüêî äëÿ ICN2053)
COLOR111 = 3, //8 öâåòîâ 3x1 áèòïëàíîâ
COLORx3 = 3, //8 öâåòîâ 3x1 áèòïëàíîâ
COLORx4 = 4, //16 öâåòîâ ÷åðåç ïàëèòðó (òîëüêî äëÿ ICN2053)
COLOR222 = 6, //64 öâåòà
COLORx8 = 8, //256 öâåòîâ ÷åðåç ïàëèòðó (òîëüêî äëÿ ICN2053)
COLOR333 = 9, //512 öâåòîâ
COLOR444 = 12, //4096 öâåòîâ
COLOR555 = 15, //32768 öâåòîâ
COLORx16 = 16, //HICOLOR (òîëüêî äëÿ ICN2053)
COLOR565 = 16, //HICOLOR (òîëüêî äëÿ ICN2053)
COLORx1 = 1, //2 цвета через палитру (только для ICN2053)
COLORx2 = 2, //4 цвета через палитру (только для ICN2053)
COLOR111 = 3, //8 цветов 3x1 битпланов
COLORx3 = 3, //8 цветов 3x1 битпланов
COLORx4 = 4, //16 цветов через палитру (только для ICN2053)
COLOR222 = 6, //64 цвета
COLORx8 = 8, //256 цветов через палитру (только для ICN2053)
COLOR333 = 9, //512 цветов
COLOR444 = 12, //4096 цветов
COLOR555 = 15, //32768 цветов
COLORx16 = 16, //HICOLOR (только для ICN2053)
COLOR565 = 16, //HICOLOR (только для ICN2053)
COLOR666 = 18,
COLOR777 = 21,
COLORx24 = 24, //TRUECOLOR 3x8 áèòïëàíîâ
COLOR888 = 24, //TRUECOLOR 3x8 áèòïëàíîâ
//COLORx48 = 48, //DEEPCOLOR (òîëüêî äëÿ ICN2053)
COLORx24 = 24, //TRUECOLOR 3x8 битпланов
COLOR888 = 24, //TRUECOLOR 3x8 битпланов
//COLORx48 = 48, //в теории DEEPCOLOR 3x16 битпланов (только для ICN2053)
}color_depth_t;

#define color888to565(r,g,b) color565(r,g,b)

extern uint16_t Translate8To16Bit[256];
//extern uint16_t Translate8To16Bit[256];
extern const uint8_t lumConvTab[256];
enum{BRIGHT_TABLE_SIZE = sizeof(lumConvTab)};

// Converts RGB111 to RGB565
uint16_t color111to565(uint8_t r, uint8_t g, uint8_t b);
Expand Down

0 comments on commit 9e2f477

Please sign in to comment.