GFX_IMAGE_HEADER Structure

Microchip Graphics Library

Microchip Graphics Library
GFX_IMAGE_HEADER Structure
C
typedef struct {
  GFX_RESOURCE type;
  WORD ID;
  union {
    DWORD extAddress;
    FLASH_BYTE * progByteAddress;
    FLASH_WORD * progWordAddress;
    const char * constAddress;
    char * ramAddress;
    __eds__ char * edsAddress;
  } LOCATION;
  WORD width;
  WORD height;
  DWORD param1;
  DWORD param2;
  WORD colorDepth;
} GFX_IMAGE_HEADER;
Overview

Structure for images stored in various system memory (Flash, External Memory (SPI, Parallel Flash, or memory in EPMP).

Members
Members 
Description 
GFX_RESOURCE type; 
Graphics resource type, determines the type and location of data 
WORD ID; 
memory ID, user defined value to differentiate between graphics resources of the same type When using EDS_EPMP the following ID values are reserved and used by the Microchip display driver 0 - reserved (do not use) 1 - reserved for base address of EPMP CS1 2 - reserved for base address of EPMP CS2 
DWORD extAddress; 
generic address 
FLASH_BYTE * progByteAddress; 
for addresses in program section 
FLASH_WORD * progWordAddress; 
for addresses in program section 
const char * constAddress; 
for addresses in FLASH 
char * ramAddress; 
for addresses in RAM 
__eds__ char * edsAddress; 
for addresses in EDS 
WORD width; 
width of the image 
WORD height; 
height of the image 
DWORD param1; 
Parameters used for the GFX_RESOURCE. Depending on the GFX_RESOURCE type definition of param1 can change. For IPU and RLE compressed images, param1 indicates the compressed size of the image. 
DWORD param2; 
Parameters used for the GFX_RESOURCE. Depending on the GFX_RESOURCE type definition of param2 can change. For IPU and RLE compressed images, param2 indicates the uncompressed size of the image. 
WORD colorDepth; 
color depth of the image 
Microchip Graphics Library Version 3.06.02 - October 15, 2012
Copyright © 2012 Microchip Technology, Inc.  All rights reserved