Module Documentation
FM4, S6E2DH/S6E2DF/S6E2D5/S6E2D3 Series, 32-Bit Microcontroller, Graphic Driver User Manual, Doc. No. 002-04387 Rev. *A
115
enum MML_GDC_PE_GEO_MATRIX_FORMAT {
MML_GDC_PE_GEO_MATRIX_FORMAT_3X2,
MML_GDC_PE_GEO_MATRIX_FORMAT_3X3
}
enum MML_GDC_PE_CLUT_FORMAT {
MML_GDC_PE_CLUT_FORMAT_33 = 33,
MML_GDC_PE_CLUT_FORMAT_256 = 256
}
enum MML_GDC_PE_FILTER_CHANNEL {
MML_GDC_PE_FILTER_CHANNEL_R = (1U<<3),
MML_GDC_PE_FILTER_CHANNEL_G = (1U<<2),
MML_GDC_PE_FILTER_CHANNEL_B = (1U<<1),
MML_GDC_PE_FILTER_CHANNEL_A = 1U,
MML_GDC_PE_FILTER_CHANNEL_RGB = (MML_GDC_PE_FILTER_CHANNEL_R |
MML_GDC_PE_FILTER_CHANNEL_G | MML_GDC_PE_FILTER_CHANNEL_B),
MML_GDC_PE_FILTER_CHANNEL_RGBA= (MML_GDC_PE_FILTER_CHANNEL_R |
MML_GDC_PE_FILTER_CHANNEL_G | MML_GDC_PE_FILTER_CHANNEL_B |
MML_GDC_PE_FILTER_CHANNEL_A)
}
enum MML_GDC_PE_FILTER_COLOR_FORMAT {
MML_GDC_PE_FILTER_COLOR_FORMAT_R8G8B8,
MML_GDC_PE_FILTER_COLOR_FORMAT_R5G6B5A8,
MML_GDC_PE_FILTER_COLOR_FORMAT_R8G8B8A8,
MML_GDC_PE_FILTER_COLOR_FORMAT_R10G10B10A8
}
Functions
MML_GDC_PE_API MM_ERROR mmlGdcPeResetContext (MML_GDC_PE_CONTEXT pectx)
MML_GDC_PE_API MM_ERROR mmlGdcPeBindSurface (MML_GDC_PE_CONTEXT pectx, MM_U32 target,
MML_GDC_SURFACE surface)
MML_GDC_PE_API MM_ERROR mmlGdcPeAttribute (MML_GDC_PE_CONTEXT pectx,
MML_GDC_PE_CTX_ATTR pname, MM_U32 param)
MML_GDC_PE_API MM_ERROR mmlGdcPeColor (MML_GDC_PE_CONTEXT pectx, MM_U08 red, MM_U08
green, MM_U08 blue, MM_U08 alpha)
MML_GDC_PE_API MM_ERROR mmlGdcPeSurfAttribute (MML_GDC_PE_CONTEXT pectx, MM_U32 target,
MML_GDC_PE_SURF_ATTR pname, MM_U32 param)
MML_GDC_PE_API MM_ERROR mmlGdcPeSurfColor (MML_GDC_PE_CONTEXT pectx, MM_U32 target,
MM_U08 red, MM_U08 green, MM_U08 blue, MM_U08 alpha)
MML_GDC_PE_API MM_ERROR mmlGdcPeBlendFunc (MML_GDC_PE_CONTEXT pectx,
MML_GDC_PE_BF func_red_src, MML_GDC_PE_BF func_red_dst, MML_GDC_PE_BF func_green_src,
MML_GDC_PE_BF func_green_dst, MML_GDC_PE_BF func_blue_src, MML_GDC_PE_BF func_blue_dst,
MML_GDC_PE_BF func_alpha_src, MML_GDC_PE_BF func_alpha_dst)
MML_GDC_PE_API MM_ERROR mmlGdcPeBlendMode (MML_GDC_PE_CONTEXT pectx,
MML_GDC_PE_BM mode_red, MML_GDC_PE_BM mode_green, MML_GDC_PE_BM mode_blue,
MML_GDC_PE_BM mode_alpha)
MML_GDC_PE_API MM_ERROR mmlGdcPeRopOperation (MML_GDC_PE_CONTEXT pectx, MM_U08
op_red, MM_U08 op_green, MM_U08 op_blue, MM_U08 op_alpha)
MML_GDC_PE_API MM_ERROR mmlGdcPeSetMatrix (MML_GDC_PE_CONTEXT pectx, MM_U32 target,
MML_GDC_PE_GEO_MATRIX_FORMAT format, const MM_FLOAT *fMatrix)
MML_GDC_PE_API MM_ERROR mmlGdcPeCLUTData (MML_GDC_PE_CONTEXT pectx,
MML_GDC_PE_CLUT_FORMAT format, const MM_S16 *pRed, const MM_S16
∗
pGreen, const MM_S16
∗
pBlue)