Fandom

Magic Lantern Firmware Wiki

2.0.4 5D2 VRAM overlay

328pages on
this wiki
Add New Page
Talk0 Share

Top: [2.0.4 AJ]

The dispcheck() routine in DryOs incorporates the YUV -> RGB transformation used to convert LCD palette entries into the colour palette stored in the header of the TEST.BMP.

TEST YUVhttp://softpixel.com/~cwright/programming/colorspace/yuv/

/**********************************
* R = Y + 1.403V'                 * Canon uses 1.402 due to rounding error
* G = Y - 0.344U' - 0.714V'       *
* B = Y + 1.770U'                 * Canon uses 1.772 due to rounding error
**********************************/

. The YUV of the 5D2 palette colours looks a little like this:

Y U     - Each box has the Y (Luma), U , V, and T (Transparency)    
V T

TEST YUV

.

When you convert it to RGB ... using the above formula, you get:

TEST RGB


And ... a quick first attempt at convert VRAM directly into Overlay (16 bits -> 8 bits)


Kid and Mum

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Also on Fandom

Random Wiki