<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Marko on Steckschwein</title><link>https://www.steckschwein.de/authors/marko/</link><description>Recent content in Marko on Steckschwein</description><generator>Hugo</generator><language>en</language><lastBuildDate>Wed, 20 Mar 2024 00:00:00 +0000</lastBuildDate><atom:link href="https://www.steckschwein.de/authors/marko/index.xml" rel="self" type="application/rss+xml"/><item><title>V9958 YJK (YUV) mode</title><link>https://www.steckschwein.de/post/2024/03/v9958_yjk_mode/</link><pubDate>Wed, 20 Mar 2024 00:00:00 +0000</pubDate><guid>https://www.steckschwein.de/post/2024/03/v9958_yjk_mode/</guid><description>&lt;p&gt;Some time ago we introduced a tiny tool called &lt;em&gt;ppmview.prg&lt;/em&gt; in our collection of tools and progs for our Steckschwein. The ppmview.prg, as the name already tells, is able to load an image in ppm (&lt;a href="https://en.wikipedia.org/wiki/Netpbm"&gt;Portable BitMap&lt;/a&gt;) format with a maximum size of 256x212px and displays it on the screen.&lt;/p&gt;
&lt;p&gt;The first version of ppmview was released in 2018 and since then we just use the SCREEN 8 (MSX) also known as graphic mode 7 (RGB).&lt;br&gt;
Mode 7 is a bitmap mode where we have 256 colors available and each pixel requires 1 Byte for their color information.
The 1 Byte color information must be stored in VRAM encoded as GRB 3:3:2 (green, red, blue), which means 3 Bit green, 3 Bit red and 2 Bit blue. &lt;br&gt;
On the other side we have the PPM color information - which is 24Bit RGB - so we have to adapt or map the 24Bit to our 8 Bit GRB color value in some way.&lt;br&gt;
It becomes apparent that this comes with a price, namely the loss of color information. Especially the blue part of the pixel is just 2 Bit, hence we have 4 levels of blue per pixel available only.
The following screenshot from our &lt;a href="https://github.com/Steckschwein/steckschwein-emulator/"&gt;Emulator&lt;/a&gt; shows the loss of color information.&lt;/p&gt;</description></item></channel></rss>