Skip to content

natty-misc/png2br

Repository files navigation

png2br

2-in-1 PNG to ASCII art converter and ASCII video player.

Works on Windows (good luck installing libav) and Linux.

No sound (never got to implement it).

There are some configuration defines in avtest.cpp, feel free to play with the values.

Three thresholding algorithms are implemented:

  • Binary thresholding
  • Ordered dithering
  • Floyd–Steinberg dithering

Requirements

  • A C++20 capable compiler
  • pkg-config
  • libavcodec
  • libavutil
  • libswscale
  • libavformat
  • libpng
  • CMake

Building

mkdir build && cd build
cmake ..
make

Running

There are two projects, png2br and avtest.

png2br

A PNG to Unicode braille dot converter

cd build
./png2br filename

avtest

An ASCII video player

cd build
./avtest filename

About

[~2019] 2-in-1 PNG to ASCII art converter and ASCII video player

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published