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.
-
3:10:46
Ellie_roe
5 hours agoEllie and Errys Halloween Spooktacular || Random Horror Games
16.2K -
50:27
Sarah Westall
7 hours agoBig Banks Caught Rigging Market, IMF tells World to “Buckle Up” w/ Andy Schectman
32.2K10 -
13:54
Degenerate Jay
14 hours ago $1.15 earned5 Best Superhero Movies To Watch On Halloween
15.6K4 -
59:03
NAG Podcast
7 hours agoSarah Fields: BOLDTALK W/Angela Belcamino
25.5K7 -
1:21:41
Glenn Greenwald
9 hours agoGlenn Takes Your Questions: On the Argentina Bailout, Money in Politics, and More; Plus: Journalist Jasper Nathaniel on Brutality and Settler Attacks in the West Bank | SYSTEM UPDATE #541
82.8K41 -
3:10:08
Barry Cunningham
7 hours agoPRESIDENT TRUMP TO USE NUCLEAR OPTION? FOOD STAMPS END! | SHUTDOWN DAY 31
49.4K34 -
1:06:56
BonginoReport
14 hours agoThe Battle Between Good & Evil w/ Demonologist Rick Hansen - Hayley Caronia (Ep.168)
100K38 -
1:12:57
Kim Iversen
9 hours agoBill Gates Suddenly Says “Don’t Worry About Climate Change”?
90.5K62 -
1:05:12
Michael Franzese
9 hours agoI Waited 50 Years to Tell You What Happened on Halloween 1975
45.4K17 -
1:07:15
Candace Show Podcast
9 hours agoINFILTRATION: Charlie Kirk Was Being Tracked For Years. | Candace Ep 256
93.6K373