inLimbo
TUI Music Player that keeps you in Limbo.
 
Loading...
Searching...
No Matches
tiv_lib.cpp File Reference
#include "tiv_lib.h"
#include <array>
#include <bitset>
#include <cmath>
#include <filesystem>
#include <fstream>
#include <functional>
#include <iostream>
#include <map>
#include <string>
#include <vector>

Namespaces

namespace  tiv
 

Functions

unsigned char tiv::get_channel (unsigned long rgb, int index)
 
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.
 
void tiv::printTermColor (std::ostream &os, const int &flags, int r, int g, int b)
 
int tiv::clamp_byte (int value)
 
double tiv::sqr (double n)
 
int tiv::best_index (int value, const int STEPS[], int count)
 
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)
 
std::pair< int, int > tiv::get_windows_size ()
 

Variables

const int tiv::END_MARKER = 0
 
constexpr unsigned int tiv::BITMAPS []