28 #ifndef SYSTEM_CORE_INC_GUI_OC_COLORMAP_H_ 29 #define SYSTEM_CORE_INC_GUI_OC_COLORMAP_H_ 35 #include <oc_stdlib.h> 43 #define _________________________________________DEFINITIONS_SECTION________________________________________________________________________ 45 #define oC_ColorMap_MagicNumber 0xFEADBABA 47 #undef _________________________________________DEFINITIONS_SECTION________________________________________________________________________ 55 #define _________________________________________TYPES_SECTION______________________________________________________________________________ 62 const uint8_t * ReadMap;
64 void * GenericWriteMap;
66 oC_Pixel_ResolutionUInt_t Width;
67 oC_Pixel_ResolutionUInt_t Height;
68 oC_ColorFormat_t ColorFormat;
73 #undef _________________________________________TYPES_SECTION______________________________________________________________________________ 80 #define _________________________________________MACROS_SECTION_____________________________________________________________________________ 82 #define oC_ColorMap_Define( ColorMapName , COLORS_ARRAY , WIDTH , HEIGHT , COLOR_FORMAT ) \ 83 oC_COMPILE_ASSERT( sizeof(COLORS_ARRAY) >= (WIDTH * HEIGHT * oC_Color_FormatSize(COLOR_FORMAT)) , #ColorMapName " array size is too small! (Required " #WIDTH "*" #HEIGHT ")");\ 84 oC_ColorMap_t ColorMapName = { \ 85 .Map = COLORS_ARRAY , \ 88 .ColorFormat = COLOR_FORMAT , \ 89 .MagicNumber = oC_ColorMap_MagicNumber , \ 93 #undef _________________________________________MACROS_SECTION_____________________________________________________________________________ 100 #define _________________________________________INTERFACE_PROTOTYPES_SECTION_______________________________________________________________ 102 extern oC_ColorMap_t * oC_ColorMap_New (
Allocator_t Allocator , AllocationFlags_t AllocationFlags , oC_Pixel_ResolutionUInt_t Width , oC_Pixel_ResolutionUInt_t Height , oC_ColorFormat_t ColorFormat );
103 extern bool oC_ColorMap_Delete (
oC_ColorMap_t * ColorMap , AllocationFlags_t AllocationFlags );
107 extern bool oC_ColorMap_IsCorrect (
const oC_ColorMap_t * ColorMap );
110 #undef _________________________________________INTERFACE_PROTOTYPES_SECTION_______________________________________________________________ identifier for allocations
The file with interface for the color library.
The file with interface for the GPIO driver.
The file with interface for the GPIO driver.
static const oC_Allocator_t Allocator