Fandom

Magic Lantern Firmware Wiki

VRAM

328pages on
this wiki
Add New Page
Talk0 Share

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.

Camera-specific VRAM details Edit

See VRAM_ADDR_from_code for a tentative to find VRAM addresses from code analysis.

See DbgMgr#Find_VRAM_addresses to fin them using the DebugManager

See VRAM/Geometry to see how to access pixels and how to transform coordinates between image buffers.

Image VRAM Edit

YUV 422; there are many buffers and many sizes. With built-in LCD, image VRAM size matches bitmap VRAM size.

/*********************************
 * R = Y + 1.403V'               *
 * G = Y - 0.344U' - 0.714V'     *
 * B = Y + 1.770U'               *
*********************************/

Bitmap VRAM Edit

Overlays ontop of YUV image. Some palette entries have alpha component. LSB is across, MSB is down. (0,0) is upper left corner.

This overlay is double-buffered. See VRAM/BMP.

The palette is different in Play mode and normal shooting mode. The colors depend on the chosen skin. The LiveView mode does not seem to change the palette (it seems to use the last one).

The first 5 rows (80 entries) are always the same.

To test these hypotheses, use Debug -> Draw palette (and if you arrive to different conclusions, edit this page).

Transparent entries:

  • 0 - seems fully transparent
  • 3 - semi-transparent
  • 20 - semi-transparent (but more opaque)
  • 1 - almost opaque white (just barely transparent)

This is the palette for Play mode:

Palette

This is the palette for the 550D's white skin (Screen color 1):

Palette-550d

Also on Fandom

Random Wiki