How encrize/bytefall works
Bytefall is a C/SDL2 binary-file visualizer and raw-byte audio player. Its main workflow is to load a file from the command line or a drop event, interpret bytes in a selected pixel mode, then render a scrolling waterfall and navigation aids while audio playback and UI controls operate on the same application state. The graph reflects sampled call sites and README capabilities; file-loading internals are unsampled, so their details are omitted.
Main entry points: main.c Event loop · render.c Frame rendering · app.h App state · audio.c Byte audio
Components 14
Application
- Event loop
main.c - App state
app.h - File loading
fileio.c
Input and playback
- Input handling
input.c - Byte audio
audio.c
Byte visualization
- Pixel decoding
viewport.c - Waterfall rendering
viewport.c - Minimap
viewport.c - Scroll and tooltip
viewport.c
Interface rendering
- Frame rendering
render.c - Controls and help
ui.c - Drawing primitives
draw.c
Other components
- User
- SDL2 runtime
Connections 21
- User → Event loop: starts app
README.md - Event loop → SDL2 runtime: polls events
main.c - Event loop → File loading: loads files
main.c - Event loop → Input handling: dispatches input
main.c - Event loop → Frame rendering: renders frames
main.c - Event loop → Byte audio: initializes audio
main.c - Event loop → App state: initializes state
main.c - Input handling → Byte audio: seeks and restarts
input.c - Input handling → App state: updates controls
input.c - Byte audio → App state: reads playback state
audio.c - Byte audio → SDL2 runtime: registers callback
audio.c - Frame rendering → App state: reads app state
render.c - Frame rendering → Waterfall rendering: renders waterfall
render.c - Frame rendering → Minimap: renders minimap
render.c - Frame rendering → Scroll and tooltip: updates navigation
render.c - Frame rendering → Controls and help: draws controls
render.c - Frame rendering → Drawing primitives: draws frame elements
render.c - Waterfall rendering → Pixel decoding: decodes bytes
viewport.c - Minimap → Pixel decoding: decodes bytes
viewport.c - Scroll and tooltip → App state: reads file position
viewport.c - Controls and help → Drawing primitives: draws widgets
ui.c