Module Documentation
FM4, S6E2DH/S6E2DF/S6E2D5/S6E2D3 Series, 32-Bit Microcontroller, Graphic Driver User Manual, Doc. No. 002-04387 Rev. *A
84
11.4.2 Macro Definition Documentation
11.4.2.1 #define MML_GDC_SURFACE_CONTROL_HEIGHT 2048
Maximum supported height for surfaces .
11.4.2.2 #define MML_GDC_SURFACE_CONTROL_WIDTH 2048
Maximum supported width for surfaces.
11.4.2.3 #define MML_GDC_SURFACE_MAX_HEIGHT 4096
Absolute maximum height for surfaces.
11.4.2.4 #define MML_GDC_SURFACE_MAX_WIDTH 4096
Absolute maximum width for surfaces.
11.4.3 Typedef Documentation
11.4.3.1 typedef MML_GDC_SURFACE_CONTAINER
∗
MML_GDC_SURFACE
The surface object definition
11.4.4 Enumeration Type Documentation
11.4.4.1 enum MML_GDC_SURF_ATTR
Surface attribute.
Enumerator
MML_GDC_SURF_ATTR_BASE_ADDRESS
Virtual base address (initial: 0).
Note:
The base address should be used to address images inside the VRAM. While setting a virtual address the
physical address will be overwritten.
MML_GDC_SURF_ATTR_PHYS_ADDRESS
Physical base address (initial: 0).
Note:
Can be used to read image buffers direct from NOR flash. While setting a physical address the virtual address
will be overwritten.
MML_GDC_SURF_ATTR_BASE_ADDRESS2
Not used for S6E2D! Virtual base address of the UV buffer (initial: 0).
MML_GDC_SURF_ATTR_PHYS_ADDRESS2
Not used for S6E2D! Physical base address of the UV buffer (initial: 0).
MML_GDC_SURF_ATTR_WIDTH
Width in pixels (initial: 0). MML_GDC_SURF_ATTR_HEIGHT Height in pixels (initial: 0).
MML_GDC_SURF_ATTR_STRIDE Size of a line in bytes (initial: 0).
Note:
If stride is 0, the default stride for the image buffer is assumed represented by the following formula:
stride = ((Width * BitPe 7) >> 3)
The GetAttribute call will return the previously set "custom" stride value or the default stride calculated with the
formula above. The stride value is not important for compressed images. If the surface describes a compressed
image the returned value will be 0.