Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.

Color Table Entry Format (16bpp)
Bits 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Value R R R R R G G G G G G B B B B B
Color Table Entry Format (24bpp)
Bits 31 30 29 28 27 26 25 24
Value 0 0 0 0 0 0 0 0
Bits 23 22 21 20 19 18 17 16
Value R R R R R R R R
Bits 15 14 13 12 11 10 9 8
Value G G G G G G G G
Bits 7 6 5 4 3 2 1 0
Value B B B B B B B B
Raster Data Encoding
Pixels are stored left-to-right, top-to-bottom. Color indices are zero based, meaning a pixel color of 0 represents the first
color table entry, a pixel color of 255 (if there are that many) represents the 256th entry. For images with more than 256
colors there is
NO
color table.
Raster Data Encoding for 1bit/black & white images
Every byte holds 8 pixels, its LSB representing the leftmost pixel. There are 2 color table entries.
Raster Data Encoding for 4bit/16 color images
Every byte holds 2 pixels, the least significant 4 bits represents the leftmost pixel. There are 16 color table entries.
Raster Data Encoding for 8bit/256 color images
Every byte holds 1 pixel. There are 256 color table entries.
Raster Data encoding for hicolor images
Hicolor images will be down sized to 16bpp if the Graphics Module configuration setting is set to 16bpp, else the color data
will be in 24-bit format. For 16bpp data, every 2bytes / 16bit holds 1 pixel, while 24bpp every 4bytes/32bit holds 1 pixel (the
high byte is zero for 32bit alignment purposes). The pixels are not color table pointers, rather the actual color to be used.
There are no color table entries. Color coded in format in the Color Table Entry Format shown above.
Raster Data Padding
For 1bpp and 4bpp images, padding is placed at the end of a horizontal line to ensure byte aligned data. If non-padding is
selected, the horizontal line padding will not be used. For example, if an non-padding image is 1bpp and the width is 14
pixels, the first two bytes of the raster data will have 14 pixel data from the first horizontal line and 2 pixels from the next
horizontal line. Likewise, if the image is padded, two bits, zero, will be placed at the end of the 14 pixels of data to ensure
that the next horizontal line is byte aligned.
6.2 Font Graphics Resource Converter
20
6

e-Highlighter

Click to send permalink to address bar, or right-click to copy permalink.

Un-highlight all Un-highlight selectionu Highlight selectionh