Module Documentation
FM4, S6E2DH/S6E2DF/S6E2D5/S6E2D3 Series, 32-Bit Microcontroller, Graphic Driver User Manual, Doc. No. 002-04387 Rev. *A
90
11.4.5.3 MM_ERROR mmlGdcSmGetAttribute(const MML_GDC_SURFACE surf,
MML_GDC_SURF_ATTR eName, MM_U32
∗
puValue)
Get surface attributes.
Parameters
in
surf
The surface.
in
eName
Name of the attribute. See MML_GDC_SURF_ATTR.
out
puValue
Pointer to a variable to receive the parameter value.
Return values
MML_OK
On success.
MML_ERR_GDC_SURF_INVALID_ATTRIBUTE
If illegal value is given for eName.
MML_ERR_GDC_SURF_INVALID_SURFACE
If NULL pointer is given for surf.
11.4.5.4 MM_ERROR mmlGdcSmResetSurfaceObject(MML_GDC_SURFACE surf)
Reset a surface object with default values.
Parameters
in,out
surf
The surface to reset.
Return values
MML_OK
On success, otherwise the related error code.
11.4.5.5 MM_ERROR mmlGdcSmSetAttribute(const MML_GDC_SURFACE surf,
MML_GDC_SURF_ATTR eName, MM_U32 uValue)
Set surface attributes. The application must ensure that the parameters like stride, height, size and format of the
surface are always consistent and match the size of the memory block allocated for the surface.
Parameters
in
surf
The surface object.
in
eName
Name of the attribute. See MML_GDC_SURF_ATTR.
in
uValue
The new value.
Return values
MML_OK
On success.
MML_ERR_GDC_SURF_INVALID_ATTRIBUTE
If illegal value is given for eName.
MML_ERR_GDC_SURF_INVALID_SURFACE
If NULL pointer is given for surf.