Module Documentation
FM4, S6E2DH/S6E2DF/S6E2D5/S6E2D3 Series, 32-Bit Microcontroller, Graphic Driver User Manual, Doc. No. 002-04387 Rev. *A
191
11.28.2.2 MM_ERROR CreateBuffer ( const MM_U32 width, const MM_U32 height, const
MML_GDC_SURF_FORMAT format = MML_GDC_SURF_FORMAT_R8G8B8A8, MM_U32
MaxSize = 0) [virtual]
The CreateBuffer function can be used setup the member surface object(s) with allocated VRAM.
Parameters
in
width
Defines the with of the surface(s).
in
height
Defines the height of the surface(s).
in
format
Defines the color format of the surface(s).
in
MaxSize
Experimental: Defines the maximum size for the buffers. O: No limitation, the required
buffer will be allocated. Size in bytes: the buffer will be created
with ::MML_GDC_SURF_COMP_RLAD_UNIFORM parameter and the allocated buffer size
will be smaller or equal MaxSize.
Return values
MML_OK
on success. Otherwise the related error code.
11.28.2.3 MM_ERROR CreateBuffer ( const MM_U32 width, const MM_U32 height, MM_U32
bit_red, MM_U32 bit_green, MM_U32 bit_blue, MM_U32 bit_alpha ) [virtual]
The CreateBuffer function can be used setup the member surface object(s) with allocated VRAM.
Parameters
in
width
Defines the with of the surface(s).
in
height
Defines the height of the surface(s).
in
bit_red
Defines the bits for the red channel of the surface(s).
in
bit_green
Defines the bits for the green channel of the surface(s).
in
bit_blue
Defines the bits for the blue channel of the surface(s).
in
bit_alpha
Defines the bits for the alpha channel of the surface(s).
Return values
MML_OK
on success. Otherwise the related error code.
11.28.2.4 MM_ERROR CreateGrayBuffer ( const MM_U32 width, const MM_U32 height, MM_U32
bit_color, MM_U32 bit_alpha ) [virtual]
The CreateBuffer function can be used setup the member surface object(s) with allocated VRAM.
Parameters
in
width
Defines the with of the surface(s).
in
height
Defines the height of the surface(s).
in
bit_color
Defines the common bits for the red, green and blue channel of the surface(s).
in
bit_alpha
Defines the bits for the alpha channel of the surface(s).
Return values
MML_OK
on success. Otherwise the related error code.