News for hackers. Stuff that matters.
Re:Visualizing and Understanding JPEG Format by userbinator on Friday July 10, 2020 @09:53AM (#23791466)
If you're looking for a fun project that can be completed in a weekend or less, one of the things I recommend is to write a (baseline) JPEG decoder. The official spec (linked from the article near the top) is quite readable as far as standards go, and even contains helpful flowcharts for basically the whole process. When I did it, it took less than 1kLoC of C, including some minor optimisations like array-based Huffman decoding (although the version in the spec is quite compact, it is slower --- but still not as slow as the "theoretical" bit-by-bit tree-traversal that a lot of other tutorials on Huffman show.)

H.261 (a video format) is roughly of the same if not slightly less complexity, and also makes a good weekend project.

Re:Visualizing and Understanding JPEG Format by taeric on Friday July 10, 2020 @11:42AM (#23792676)
Where do you get the spec for video? That really something that can be done in a weekend?
Re:Visualizing and Understanding JPEG Format by basementcat on Friday July 10, 2020 @01:08PM (#23793704)
Re:Visualizing and Understanding JPEG Format by userbinator on Friday July 10, 2020 @03:37PM (#23795463)
If you can write a JPEG decoder in a weekend, H.261 should be doable. It's much simpler in many ways --- hardcoded Huffman tables and dimensions. The spec is much shorter too.