Module Documentation
FM4, S6E2DH/S6E2DF/S6E2D5/S6E2D3 Series, 32-Bit Microcontroller, Graphic Driver User Manual, Doc. No. 002-04387 Rev. *A
82
enum MML_GDC_SURF_CLF {
MML_GDC_SURF_CLF_R8G8B8,
MML_GDC_SURF_CLF_B8G8R8,
MML_GDC_SURF_CLF_R5G5B5,
MML_GDC_SURF_CLF_A1R5G5B5,
MML_GDC_SURF_CLF_A4R4G4B4
}
enum MML_GDC_SURF_CLM {
MML_GDC_SURF_CLM_NEUTRAL = 0x0,
MML_GDC_SURF_CLM_INDEX_RGB,
MML_GDC_SURF_CLM_INDEX_RGBA
}
enum MML_GDC_SURF_ATTR {
MML_GDC_SURF_ATTR_BASE_ADDRESS = 0x0,
MML_GDC_SURF_ATTR_PHYS_ADDRESS,
MML_GDC_SURF_ATTR_BASE_ADDRESS2,
MML_GDC_SURF_ATTR_PHYS_ADDRESS2,
MML_GDC_SURF_ATTR_WIDTH,
MML_GDC_SURF_ATTR_HEIGHT,
MML_GDC_SURF_ATTR_STRIDE,
MML_GDC_SURF_ATTR_BITPERPIXEL,
MML_GDC_SURF_ATTR_COLORBITS,
MML_GDC_SURF_ATTR_COLORSHIFT,
MML_GDC_SURF_ATTR_COMPRESSION_FORMAT,
MML_GDC_SURF_ATTR_RLAD_MAXCOLORBITS,
MML_GDC_SURF_ATTR_SIZEINBYTES,
MML_GDC_SURF_ATTR_CLUTMODE,
MML_GDC_SURF_ATTR_CLUTCOUNT,
MML_GDC_SURF_ATTR_CLUTBITPERPIXEL,
MML_GDC_SURF_ATTR_CLUTCOLORBITS,
MML_GDC_SURF_ATTR_CLUTCOLORSHIFT,
MML_GDC_SURF_ATTR_CLUTBUFFERADDRESS,
MML_GDC_SURF_ATTR_CLUTBUFFER_PHYS_ADDRESS,
MML_GDC_SURF_ATTR_SURF_FORMAT,
MML_GDC_SURF_ATTR_USERDEFINED
}
Functions
MM_ERROR mmlGdcSmResetSurfaceObject(MML_GDC_SURFACE surf)
MM_ERROR mmlGdcSmAssignBuffer(MML_GDC_SURFACE surf, MM_U32 uWidth, MM_U32 uHeight,
MML_GDC_SURF_FORMAT eFormat, void
∗
pBufferAddress, MM_U32 uRleWords)
MM_ERROR mmlGdcSmAssignClut(MML_GDC_SURFACE surf, MML_GDC_SURF_CLM eMode, MM_U32
uCount, MML_GDC_SURF_CLF eFormat, void
∗
pBufferAddress)
MM_ERROR mmlGdcSmSetAttribute(const MML_GDC_SURFACE surf, MML_GDC_SURF_ATTR eName,
MM_U32 uValue)
MM_ERROR mmlGdcSmGetAttribute(const MML_GDC_SURFACE surf, MML_GDC_SURF_ATTR eName,
MM_U32
∗
puValue)