Classes | |
| struct | CharData |
| Struct to represent a character to be drawn. More... | |
| struct | size |
Typedefs | |
| typedef std::function< unsigned long(int, int)> | GetPixelFunction |
Functions | |
| unsigned char | get_channel (unsigned long rgb, int index) |
| CharData | createCharData (GetPixelFunction get_pixel, int x0, int y0, int codepoint, int pattern) |
| CharData | findCharData (GetPixelFunction get_pixel, int x0, int y0, const int &flags) |
| Find the best character and colors for a 4x8 part of the image at the given position. | |
| void | printTermColor (std::ostream &os, const int &flags, int r, int g, int b) |
| int | clamp_byte (int value) |
| double | sqr (double n) |
| int | best_index (int value, const int STEPS[], int count) |
| cimg_library::CImg< unsigned char > | load_rgb_CImg (const char *const &filename) |
| void | printCodepoint (std::ostream &os, int codepoint) |
| void | printImage (const cimg_library::CImg< unsigned char > &image, const int &flags) |
| std::pair< int, int > | get_windows_size () |
Variables | |
| const int | END_MARKER = 0 |
| constexpr unsigned int | BITMAPS [] |
| constexpr int | FLAG_FG = 1 |
| constexpr int | FLAG_BG = 2 |
| constexpr int | FLAG_MODE_256 = 4 |
| constexpr int | FLAG_24BIT = 8 |
| constexpr int | FLAG_NOOPT = 16 |
| constexpr int | FLAG_TELETEXT = 32 |
| constexpr int | COLOR_STEP_COUNT = 6 |
| constexpr int | COLOR_STEPS [COLOR_STEP_COUNT] = {0, 0x5f, 0x87, 0xaf, 0xd7, 0xff} |
| constexpr int | GRAYSCALE_STEP_COUNT = 24 |
| constexpr int | GRAYSCALE_STEPS [GRAYSCALE_STEP_COUNT] |
| typedef std::function<unsigned long(int, int)> tiv::GetPixelFunction |
| int tiv::best_index | ( | int | value, |
| const int | STEPS[], | ||
| int | count ) |
| int tiv::clamp_byte | ( | int | value | ) |
| CharData tiv::createCharData | ( | GetPixelFunction | get_pixel, |
| int | x0, | ||
| int | y0, | ||
| int | codepoint, | ||
| int | pattern ) |
| CharData tiv::findCharData | ( | GetPixelFunction | get_pixel, |
| int | x0, | ||
| int | y0, | ||
| const int & | flags ) |
Find the best character and colors for a 4x8 part of the image at the given position.
| image | |
| x0 | |
| y0 | |
| flags |
| unsigned char tiv::get_channel | ( | unsigned long | rgb, |
| int | index ) |
| std::pair< int, int > tiv::get_windows_size | ( | ) |
| cimg_library::CImg< unsigned char > tiv::load_rgb_CImg | ( | const char *const & | filename | ) |
| void tiv::printCodepoint | ( | std::ostream & | os, |
| int | codepoint ) |
| void tiv::printImage | ( | const cimg_library::CImg< unsigned char > & | image, |
| const int & | flags ) |
| void tiv::printTermColor | ( | std::ostream & | os, |
| const int & | flags, | ||
| int | r, | ||
| int | g, | ||
| int | b ) |
| double tiv::sqr | ( | double | n | ) |
|
constexpr |
|
constexpr |
|
constexpr |
| const int tiv::END_MARKER = 0 |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |