Skip to content

Gibsy/bytefall

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BYTEFALL

Bytefall preview Renders any file as pixels and plays it as audio

Build

Windows

Requires MSYS2 + UCRT64.

pacman -S mingw-w64-ucrt-x86_64-SDL2
gcc main.c -o bytefall.exe -I/ucrt64/include/SDL2 -L/ucrt64/lib -lmingw32 -lSDL2main -Wl,-Bstatic -lSDL2 -Wl,-Bdynamic -lm -mwindows -lole32 -loleaut32 -limm32 -lwinmm -lversion -lsetupapi -lcfgmgr32

Linux

Requires SDL2

sudo apt install libsdl2-dev
gcc bytefall.c -o bytefall $(sdl2-config --cflags --libs) -lm

macOS

Requires SDL2 via Homebrew

brew install sdl2
gcc bytefall.c -o bytefall $(sdl2-config --cflags --libs) -lm

Usage

Drag and drop any file onto the window or pass it as an argument: ./bytefall myfile.bin

Pixel modes

Mode Bytes per pixel
8G 1 - grayscale
RGB 3 - color (default)
RGBA 4 - color with alpha
16G 2 - 16-bit grayscale

Controls

Key Action
Space Play / Pause
R Restart
M Mute
/ Speed
? Help
Mouse wheel Scroll

IMG2BIN

You can create images like that using img2bin IMG2BIN

About

Lightweight raw data visualizer - renders any file as pixels and audio. Written in C with SDL2. (Binary waterfall)

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages