Premium Only Content

No Game Engine Game Dev: Word Sleuth 103: Debug QOI decoding, then coding QOI encoding
Streamed on 2024-12-19 (https://www.twitch.tv/thediscouragerofhesitancy)
Game Engines are for sissies!
Yesterday we got a good start on QOI decoding. There were some issues so that's where we started today. With a bit of debugging we learned that most of our issues were copy/paste errors in the BMP output code we stole from somewhere else in a different context. It wasn't too long before we could read a QOI file and output a BMP that was correct.
The next step was to reverse the process: read in a PNG and output a QOI. The QOI documentation is pretty straightforward so it wasn't too difficult to get that working as well. One of the nice things about the QOI implementation is that the encoder doesn't have to support every operation to get started. I implemented a few of the simple ones first (RGB, RGBA, Index and Run) before turning attention to Diff and Luma. The only tricky part is to test the distances with wrapping, but even without the wrapping detection the encoder gets the image almost as compressed as the example files.
Lastly I plumbed the new QOI encoder into out PNG embedding asset pipeline. With only a few minutes of work there it was compressing all of our art assets to 14% of their original size.
Due to our four days of effort on sound and image compression, the size of our executable shrunk to 24% of the size it was at the start of this week. Not too shabby, if I do say so myself.
-
LIVE
MYLUNCHBREAK CHANNEL PAGE
2 hours agoHistory’s Most SHOCKING Claims?
432 watching -
LIVE
Caleb Hammer
2 hours agoThe First LGBT Divorce On Financial Audit
112 watching -
LIVE
Badlands Media
1 hour agoBadlands Daily: September 3, 2025 (#2)
3,318 watching -
LIVE
Jim Jordan
1 hour agoEurope’s Threat to American Speech and Innovation
489 watching -
LIVE
The State of Freedom
5 hours agoFLF: #16 Delivering the Truth Comes at a Cost w/ Joe Hoft
16 watching -
31:01
Rethinking the Dollar
1 hour agoWe're In A NEW Monetary Reality! Xi & Putin Knows How This ENDS | Morning Check-In: Let's Talk...
5.97K -
LIVE
House Committee on Energy and Commerce
2 hours agoExamining Opportunities to Advance American Health Care through the Use of AI Technologies
19 watching -
1:04:12
Crypto Power Hour
3 hours ago $0.19 earnedSmart Contracts & Fintech 101
4.94K5 -
45:55
Randi Hipper
1 hour agoBITCOIN HOLDS CRITICAL LEVEL! NEXT MOVE DETERMINES EVERYTHING
5.38K -
3:10:58
The Pete Santilli Show
12 hours agoMORNING STREAM Wednesday September 3, 2025 ▐ THE PETE SANTILLI SHOW & SANTILLI REPORT 9/2
9.7K1