This commit is contained in:
ecpvint
2024-08-15 18:40:30 +08:00
commit 4485f045ca
552 changed files with 147047 additions and 0 deletions

View File

@ -0,0 +1,24 @@
#ifndef SAMPLEUTILS_H
#define SAMPLEUTILS_H
class SampleUtils{
private:
SampleUtils();
public:
static unsigned char convert1BitTo8Bit(unsigned char color);
static unsigned char convert2BitTo8Bit(unsigned char color);
static unsigned char convert4BitTo8Bit(unsigned char color);
static unsigned char convert16BitTo8Bit(unsigned short color);
static unsigned int convertRGBtoBrightness(unsigned int color);
};
#endif // SAMPLEUTILS_H