# Vault 7: Projects

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

### Protego

# MLA -- Graphics Library

- 1
- 2
…
- 72
- 73
- 74
- 75
- 76
…
- 373
- 374

• from external memory
• fonts from RAM is disabled
• images that are RLE encoded is enabled
• images that are DEFLATE (for IPU module) encoded is enabled
• images can be rendered with transparent color feature
• touch screen support is enabled
• keyboard support is enabled
• malloc and free functions are used to manage memory for object layer
// Note: Configuration to disable the features are commented out
// to show the specific macros that disables them.
//#define GFX_CONFIG_NONBLOCKING_DISABLE
//#define GFX_CONFIG_ALPHABLEND_DISABLE
//#define GFX_CONFIG_GRADIENT_DISABLE
//#define GFX_CONFIG_FOCUS_DISABLE
#define GFX_CONFIG_PALETTE_DISABLE
#define GFX_CONFIG_PALETTE_EXTERNAL_DISABLE
#define GFX_CONFIG_DOUBLE_BUFFERING_DISABLE
#define GFX_CONFIG_FONT_CHAR_SIZE 16
#define GFX_CONFIG_COLOR_DEPTH 16
//#define GFX_CONFIG_FONT_FLASH_DISABLE
//#define GFX_CONFIG_FONT_EXTERNAL_DISABLE
#define GFX_CONFIG_FONT_RAM_DISABLE
//#define GFX_CONFIG_FONT_ANTIALIASED_DISABLE
//#define GFX_CONFIG_IMAGE_FLASH_DISABLE
//#define GFX_CONFIG_IMAGE_EXTERNAL_DISABLE
#define GFX_CONFIG_IMAGE_RAM_DISABLE
//#define GFX_CONFIG_RLE_DECODE_DISABLE
//#define GFX_CONFIG_IPU_DECODE_DISABLE
//#define GFX_CONFIG_TRANSPARENT_COLOR_DISABLE
#define GFX_EXTERNAL_FONT_RASTER_BUFFER_SIZE 51
//#define GFX_CONFIG_USE_TOUCHSCREEN_DISABLE
//#define GFX_CONFIG_USE_KEYBOARD_DISABLE
#define GFX_malloc(size) malloc(size)
#define GFX_free(pObj) free(pObj)
1.5.2.2 Example 2
Configuration example 2.
Description
• all primitive functions are blocking
• the following are all disabled
• alpha blending
• gradient fills
• palette
• focus on objects
• double buffering
• anti-aliased fonts
• RLE and DEFLATE encoded images
1.5 Configuring the Library MLA - Graphics Library Help Configuration Examples
74

- 1
- 2
…
- 72
- 73
- 74
- 75
- 76
…
- 373
- 374