Vault 7: Projects

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

Description
Function to extract the red component of the given color.
Remarks
None.
Preconditions
None.
Example
None.
Parameters
Parameters Description
color the color value that will be used to extract the red component.
Function
GFX_COLOR GFX_ComponentRedGet(
GFX_COLOR color)
1.6.1.1.8.9 GFX_RGBConvert Macro
Function to convert 24 bpp color data to X bpp color data.
File
gfx_types_macros.h
Syntax
#define GFX_RGBConvert(red, green, blue) (GFX_COLOR) (((GFX_COLOR)(red) & 0xE0) |
(((GFX_COLOR)(green) & 0xE0) >> 3) | (((GFX_COLOR)(blue)) >> 6))
Returns
The converted color data. Size is dependent on the COLOR_DEPTH.
Description
RGB Conversion macro. 24 BPP color to x BPP color conversion. Color depths of 1, 2 or 4 are usually for
monochrome/grayscale format. These are not supported in RGB conversion.
COLOR_DEPTH Conversion
8 8-8-8 to 3-3-2 conversion
16 8-8-8 to to 5-6-5 conversion
24 8-8-8 to 8-8-8 conversion or no conversion
Remarks
None.
Preconditions
None.
Example
None.
1.6 Library Interface MLA - Graphics Library Help Graphics Primitive Layer
119

e-Highlighter

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

Un-highlight all Un-highlight selectionu Highlight selectionh