Module Documentation
FM4, S6E2DH/S6E2DF/S6E2D5/S6E2D3 Series, 32-Bit Microcontroller, Graphic Driver User Manual, Doc. No. 002-04387 Rev. *A
81
11.4 Surface API
The Surface API provides all functions to manage memory blocks with image content, called image buffer. (See also
Surface Overview)
Data Structures
struct MML_GDC_SURFACE_CONTAINER
Macros
#define MML_GDC_SURFACE_MAX_WIDTH 4096
#define MML_GDC_SURFACE_MAX_HEIGHT 4096
#define MML_GDC_SURFACE_CONTROL_WIDTH 2048
#define MML_GDC_SURFACE_CONTROL_HEIGHT 2048
Typedefs
typedef MML_GDC_SURFACE_CONTAINER
∗
MML_GDC_SURFACE
Enumerations
enum MML_GDC_SURF_FORMAT {
MML_GDC_SURF_FORMAT_R8G8B8A8 = 0x00,
MML_GDC_SURF_FORMAT_A8B8G8R8,
MML_GDC_SURF_FORMAT_A8R8G8B8,
MML_GDC_SURF_FORMAT_B8G8R8A8,
MML_GDC_SURF_FORMAT_R8G8B8X8,
MML_GDC_SURF_FORMAT_X8B8G8R8,
MML_GDC_SURF_FORMAT_X8R8G8B8,
MML_GDC_SURF_FORMAT_R8G8B8,
MML_GDC_SURF_FORMAT_B8G8R8,
MML_GDC_SURF_FORMAT_R6G6B6,
MML_GDC_SURF_FORMAT_R4G4B4A4,
MML_GDC_SURF_FORMAT_A4R4G4B4,
MML_GDC_SURF_FORMAT_R5G5B5A1,
MML_GDC_SURF_FORMAT_A1R5G5B5,
MML_GDC_SURF_FORMAT_A1B5G5R5,
MML_GDC_SURF_FORMAT_B5G5R5A1,
MML_GDC_SURF_FORMAT_R5G6B5,
MML_GDC_SURF_FORMAT_A8RGB8,
MML_GDC_SURF_FORMAT_RGB8,
MML_GDC_SURF_FORMAT_A8,
MML_GDC_SURF_FORMAT_A4RGB4,
MML_GDC_SURF_FORMAT_A4,
MML_GDC_SURF_FORMAT_A2,
MML_GDC_SURF_FORMAT_A1,
MML_GDC_SURF_FORMAT_RGB1
}
enum MML_GDC_SURF_COMP {
MML_GDC_SURF_COMP_NON = 0x4,
MML_GDC_SURF_COMP_RLC = 0x3,
MML_GDC_SURF_COMP_RLA = 0x2,
MML_GDC_SURF_COMP_RLAD = 0x0
}