Vault 7: Projects

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

GFX_RESOURCE_IMAGE image; Resource is an image.
GFX_RESOURCE_FONT font; Resource is font.
GFX_RESOURCE_BINARY binary; Resource is binary.
GFX_RESOURCE_PALETTE palette; Resource is palette.
Description
Typedef: GFX_RESOURCE_HDR
Defines the common structure used for all the graphics resources.
Remarks
None.
1.6.1.2.19 GFX_RESOURCE_IMAGE Type
Defines the structure used for the image type resource.
File
gfx_types_resource.h
Syntax
typedef struct {
union {
uint32_t extAddress;
uint8_gfx_image_prog * progByteAddress;
uint16_gfx_image_prog * progWordAddress;
const char * constAddress;
char * ramAddress;
__eds__ char * edsAddress;
} location;
uint16_t width;
uint16_t height;
union {
uint32_t compressedSize;
uint32_t reserved;
} parameter1;
union {
uint32_t rawSize;
uint32_t reserved;
} parameter2;
uint8_t colorDepth;
uint8_t type;
uint16_t paletteID;
} GFX_RESOURCE_IMAGE;
Members
Members Description
union {
uint32_t extAddress;
uint8_gfx_image_prog * progByteAddress;
uint16_gfx_image_prog * progWordAddress;
const char * constAddress;
char * ramAddress;
__eds__ char * edsAddress;
} location;
This defines the location of the image resource in memory.
Depending on the type, the address location is interpreted
accordingly.
uint32_t extAddress; An external address.
uint8_gfx_image_prog * progByteAddress; An 8-bit addresses in the program section.
uint16_gfx_image_prog * progWordAddress; A 16-bit addresses in the program section.
const char * constAddress; An addresses in constant space in flash.
char * ramAddress; An addresses in RAM.
1.6 Library Interface MLA - Graphics Library Help Graphics Primitive Layer
153

e-Highlighter

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

Un-highlight all Un-highlight selectionu Highlight selectionh