How anaconda2401/ahlc works
AHLC is a multimedia lossless-compression engine with a Flask dashboard. Its user workflow is to submit media, identify its format, process it through image, audio, or video compression, produce a custom container or export, and verify reconstruction. The graph preserves the documented PNG and video-export branches as well as shared entropy coding. Relationship evidence comes from the README and the sampled C++ excerpts; the Flask runner and application internals were not sampled, so their detailed wiring is not asserted.
Main entry points: eabps.cpp Image EABPS · audio_eabps.cpp Audio EABPS · video_teabps.cpp Video TEABPS · format_detector.cpp Format Detection
Components 20
Dashboard
- Dashboard UI
flask_app/static/js/dashboard.js - Flask Application
flask_app/app.py - Compression Runner
flask_app/ahmc_runner.py
Media Ingest
- Engine CLI
src/main.cpp - Format Detection
src/media/format_detector.cpp - File Analysis
src/analyzer/analyzer.cpp
Image Processing
- Image EABPS
src/image/eabps.cpp - Image I/O
src/image/image.cpp - Image Prediction
src/image/image_predictor.cpp - PNG Processing
src/image
Audio Processing
- Audio EABPS
src/audio/audio_eabps.cpp - Audio I/O
src/audio/audio.cpp - Audio Prediction
src/audio/audio_predictor.cpp
Video Processing
- Video TEABPS
src/video/video_teabps.cpp
Coding and Verification
- RLE Coding
src/rle/rle_encoder.cpp - Huffman Coding
src/entropy/huffman.cpp - Bit I/O
src/bitio/bit_writer.cpp - Round-Trip Verification
src/main.cpp
Other components
- Media User
- FFmpeg
Connections 25
- Media User → Dashboard UI: submits media
- Dashboard UI → Flask Application: uses dashboard
- Flask Application → Compression Runner: invokes runner
- Compression Runner → Engine CLI: runs engine
- Engine CLI → Format Detection: detects format
- Engine CLI → File Analysis: analyzes file
src/main.cpp - Format Detection → Image EABPS: routes images
- Format Detection → Audio EABPS: routes audio
- Format Detection → Video TEABPS: routes video
- Image EABPS → Image Prediction: evaluates predictors
src/image/eabps.cpp - Image EABPS → RLE Coding: tests RLE
src/image/eabps.cpp - Image EABPS → Huffman Coding: tests Huffman
src/image/eabps.cpp - Image EABPS → Image I/O: encodes image
- Image I/O → PNG Processing: supports PNG path
- Audio EABPS → Audio Prediction: evaluates predictors
src/audio/audio_eabps.cpp - Audio EABPS → RLE Coding: tests RLE
src/audio/audio_eabps.cpp - Audio EABPS → Huffman Coding: tests Huffman
src/audio/audio_eabps.cpp - Audio EABPS → Audio I/O: encodes audio
- Video TEABPS → RLE Coding: tests RLE
src/video/video_teabps.cpp - Video TEABPS → Huffman Coding: tests Huffman
src/video/video_teabps.cpp - Video TEABPS → FFmpeg: decodes and exports
- Video TEABPS → Round-Trip Verification: supports round trips
- Image EABPS → Round-Trip Verification: supports round trips
- Audio EABPS → Round-Trip Verification: supports round trips
- Huffman Coding → Bit I/O: packs coded bits