Sem descrição

rexim 254d50d45d Typo há 2 anos atrás
demos 8d03b05dd7 Add wav files demo há 2 anos atrás
.gitignore 935ba8066b Commit forgotten screenshots há 2 anos atrás
LICENSE 96e8c3056d Ready. Set. Go! há 2 anos atrás
README.md 254d50d45d Typo há 2 anos atrás
binviz.c 96e8c3056d Ready. Set. Go! há 2 anos atrás
img2raw.c 96e8c3056d Ready. Set. Go! há 2 anos atrás
nob.c 96e8c3056d Ready. Set. Go! há 2 anos atrás
nob.h 96e8c3056d Ready. Set. Go! há 2 anos atrás
stb_image.h 96e8c3056d Ready. Set. Go! há 2 anos atrás
stb_image_write.h 96e8c3056d Ready. Set. Go! há 2 anos atrás

README.md

Binary Visualization

Binary Visualization based on Christopher Domas talk: https://www.youtube.com/watch?v=4bM3Gut1hIk

Main Idea

  • Scan the pairs of bytes of a file with a sliding window. (AA BB CC DD ... -> (AA, BB) (BB, CC) (CC, DD) ...);
  • Interpret the pairs of bytes as coordinates on a 256x256 2D plain;
  • Place a dot for each pair on the plain;
  • The more frequent the dot, the brighter it is;
  • Different patterns emerge depending on the type of the data of the file.

Demo

x86_64 ELF executables

xkbprint xournal x-terminal-emulator

RGBA32 Raw Images

forsen1 jebaited kkoooooona

Ogg Files with Chiptune

1.ogg 2.ogg 3.ogg

Wav Files with Chiptune

1.wav 2.wav 3.wav

Quick Start

$ cc -o nob nob.c
$ ./nob binviz ./nob.c
$ feh ./nob.c.binviz.png