# Vault 7: Projects

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

### Protego

# MLA -- Graphics Resource Converter

1 January, 2014

- 1
- 2
…
- 53
- 54
- 55
- 56
- 57
…
- 67
- 68

7.5.2.1 Reference Output
The follow structures are used by the GRC for images and fonts stored externally.
External Header Structure (Non-Compressed Resources)
Name Bits Description
Resource Description 16 See Resource Description Table ( see page 57)
ID 16 User defined ID
Address 32 The address in the external memory where the resource is located
const IMAGE_EXTERNAL DateAndTime_4bpp_72x72 =
{
(EXTERNAL | IMAGE_MBITMAP | COMP_NONE),
0x0000,
0x00000000
};
External Header Structure (Non-Compressed or Compressed Resources)
Name Bits Description
Resource
Description
16 See Resource Description Table
ID 16 User defined ID
Address 32 The address in the external memory where the resource is located
Width 16 The width of the image
Height 16 The height of the image
Parameter1 32 Parameter used for the resource. For example, a compressed image will have the compressed
size, in bytes.
Parameter2 32 Parameter used for the resource. For example, a compressed image will have the uncompressed
size, in bytes.
Color Depth 16 The color depth of an image
const GFX_IMAGE_HEADER DrawingScreen_4bpp_72x72 =
{
(EXTERNAL | IMAGE_MBITMAP | COMP_IPU),
0,
{ .extAddress = (DWORD) 0x00000A50 },
72,
72,
931,
2632,
4
};
7.5.3 Binary
This output format allows creating binary files for resources in the conversion list. The output will be a binary file containing
all the resource information, source reference and header file. The source reference file can be used to access resources
(See Binary Reference Output section ( see page 54)).
7.5 Converting Resources Graphics Resource Converter Binary
52
7

- 1
- 2
…
- 53
- 54
- 55
- 56
- 57
…
- 67
- 68