How kevmo314/codec-from-scratch works
Key Components to Include:
Input Processing Layer
• Raw RGB24 video input stream
• Stdin input mechanism
Encoding Pipeline
a. RGB24 to YUV420P Conversion
b. Run-Length Encoding (RLE)
c. DEFLATE Compression
Output Layer
• Compressed video output
• Performance metrics output
Component Representation
• Use rectangles for processing stages
• Use parallelograms for input/output data
• Data size reduction percentages at each stage
Specific Elements
[Raw Video Input (RGB24)] → [RGB24 to YUV420P Converter]
• ↓
• [RLE Compression]
• ↓
• [DEFLATE Compression]
• ↓
• [Compressed Output]
Additional Details
• Compression ratio annotations at each stage
• Memory footprint indicators
• Stdin/stdout flow
Technical Specifications
• Go runtime environment
• Single-threaded processing flow
• Buffer sizes and data formats
Performance Metrics
• YUV420P: 50% of original
• RLE: 25.17% of original
• DEFLATE: 10.11% of original
Key Considerations:
• Data transformation pipeline
• Compression achievements
• Sequential nature of the processing
• Data formats (RGB24, YUV420P)
• Compression algorithms (RLE, DEFLATE)
• Size reduction indicators
• I/O mechanisms
Remember to include a note about potential extensibility points where modern video codec features could be added, as mentioned in the README.