# Vault 7: Projects

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

### Protego

# MLA -- Graphics Library

- 1
- 2
…
- 152
- 153
- 154
- 155
- 156
…
- 373
- 374

__eds__ char * edsAddress; An addresses in EDS.
uint16_t width; The width of the image.
uint16_t height; The height of the image.
union {
uint32_t compressedSize;
uint32_t reserved;
} parameter1;
A generic parameter 1 that changes in usage depending on
the type of the resource.
uint32_t compressedSize; Parameters used for the GFX_RESOURCE. Depending on
the GFX_RESOURCE type definition of param1 can change.
For IPU and RLE compressed images, param1 indicates the
compressed size of the image.
union {
uint32_t rawSize;
uint32_t reserved;
} parameter2;
A generic parameter 2 that changes in usage depending on
the type of the resource.
uint32_t rawSize; Parameters used for the GFX_RESOURCE. Depending on
the GFX_RESOURCE type definition of param2 can change.
For IPU and RLE compressed images, param2 indicates the
uncompressed size of the image.
uint8_t colorDepth; The color depth of the image.
uint8_t type; The type of image, information on how to render the image
0x00 - no compression, palette is present for color depth = 8,
4 and 1 BPP 0x10 - palette is provided as a separate object
(see PALETTE_HEADER) for color depth = 8, 4, and 1 BPP,
ID to the palette is embedded color depth = 8, 4, and 1 BPP,
in the bitmap. 0xYY - reserved
uint16_t paletteID; The palette ID, if type == MCHP_BITMAP_PALETTE_STR
(0x10), this represents the unique ID of the palette being
used
Description
Typedef: GFX_RESOURCE_IMAGE
Defines the structure used for the image type resource.
Remarks
None.
1.6.1.2.20 GFX_RESOURCE_PALETTE Type
Defines the structure used for the palette type resource.
File
gfx_types_resource.h
Syntax
typedef struct {
union {
uint32_t extAddress;
const GFX_PALETTE_ENTRY * constByteAddress;
GFX_PALETTE_ENTRY * ramAddress;
} location;
uint16_t numberOfEntries;
uint16_t paletteID;
} GFX_RESOURCE_PALETTE;
1.6 Library Interface MLA - Graphics Library Help Graphics Primitive Layer
154

- 1
- 2
…
- 152
- 153
- 154
- 155
- 156
…
- 373
- 374