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
Quite Frankly
5 hours ago"Behind Bars w/ Darren Monahan: Guarding Charles Manson" 5/1/25
640 watching -
1:18:03
Kim Iversen
3 hours agoCIA Launches YouTube Video Ads to Recruit Chinese Spies | The Birthrate Crash: Why Women Aren’t Having Kids
43.4K24 -
1:35:12
Redacted News
3 hours agoHUGE! TRUMP FIRES NEO-CON MIKE WALTZ, PUTIN PRAISES TRUMP FOR MINERALS DEAL | Redacted News
85.4K65 -
1:32:39
Dr. Drew
6 hours agoDana Loesch: Insane Texas Law Threatens To JAIL Political Meme Posters & Criminalize Parody (Up To A YEAR In Jail) w/ David Zweig – Ask Dr. Drew
15.9K5 -
53:13
Kimberly Guilfoyle
5 hours agoIt's a Bad Day To Be a Bad Guy, More Wins for Kash's FBI | Ep218
37.4K9 -
1:34:38
vivafrei
8 hours agoCanadian Election HANGOVER! You Got Fooled, Folks! Kamala Continues Cackling! Stephen Miller ROCKS!
85.5K82 -
22:04
James Klüg
4 hours agoJames Klug and Billboard Chris Take On Antifa
29.7K7 -
16:58
T-SPLY
5 hours agoDems’ Bad News: El Salvador Rejects Abrego, Democrats Fume!
20.4K23 -
2:10:52
The Quartering
7 hours agoKarmelo Anthony SPENDING SPREE, Kamala Harris Hammered Drunk, Catturd Blasts Rumble & Superman Woke
158K54 -
LIVE
StoneMountain64
6 hours agoArc Raiders is my most ANTICIPATED game of the year now
141 watching