util.h - ff2txt - farbfeld image to plain text visualization
(HTM) git clone git://bitreich.org/ff2txt git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/ff2txt
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
---
util.h (290B)
---
1 #define MAX_WIDTH (1 << 12)
2 #define BRAILLE_START 10240
3 #define COLORS 4
4
5 #define LEN(X) (sizeof(X) / sizeof(*X))
6
7 struct col {
8 uint16_t red;
9 uint16_t green;
10 uint16_t blue;
11 uint16_t alpha;
12 };
13
14 void err(char *);
15 void read_header(uint32_t *, uint32_t *);
16 int col_is_bright(struct col);