Module Documentation
FM4, S6E2DH/S6E2DF/S6E2D5/S6E2D3 Series, 32-Bit Microcontroller, Graphic Driver User Manual, Doc. No. 002-04387 Rev. *A
85
MML_GDC_SURF_ATTR_BITPERPIXEL
Size of one pixel in bits. Can be one of 1, 2, 4, 8, 12, 16, 24, 32(initial: 32).
MML_GDC_SURF_ATTR_COLORBITS
Color component size in bits 0xRRGGBBAA or 0xY0U0Y1V0 (initial: 0x08080808).
color_bits = red_bits<<24 + green_bits<<16 + blue_bits<<8 + alpha_bits
//for RGBA format,
MML_GDC_SURF_ATTR_COLORSHIFT
Color component shift (0xRRGGBBAA) or (0xY0U0Y1V0) (initial: 0x18100800).
color_shift = red_shift<<24 + green_shift<<16 + blue_shift<<8 + alpha_shift
//for RGBA format,
MML_GDC_SURF_ATTR_COMPRESSION_FORMAT
Compression format (must be one of MML_GDC_SURF_COMP, initial MML_GDC_SURF_COMP_NON).
MML_GDC_SURF_ATTR_RLAD_MAXCOLORBITS
Maximum for average number of bits per compressed pixel. This value is used for surfaces with compression
format MML_GDC_SURF_COMP_RLAD. The format is analog to MML_GDC_SURF_ATTR_COLORBITS
(0xRRGGBBAA) or (0xY0U0Y1V0). The initial value is 0x08080808. If the surface is used as target buffer (blit)
and the compression format is MML_GDC_SURF_COMP_RLAD, the RLAD_BITPERPIXEL value defines the
maximum write buffer size (see MML_GDC_SURF_ATTR_SIZEINBYTES). The application can use the
MML_GDC_SURF_ATTR_SIZEINBYTES parameter to calculate the required buffer size and can allocate and
assign a VRAM space for this operation.
MML_GDC_SURF_ATTR_SIZEINBYTES
Buffer size in bytes (initial: 0).
Note:
This value must be set for images with compression type MML_GDC_SURF_COMP_RLC and
MML_GDC_SURF_COMP_RLA. The size can be set to zero for all other image types. If size is zero
mmlGdcSmGetAttribute will return the following size depending of the given compression type:
MML_GDC_SURF_COMP_NON: required buffer size (Height
∗
Stride).
MML_GDC_SURF_COMP_RLC: 0 (correct size must be set by application).
MML_GDC_SURF_COMP_RLA: 0 (correct size must be set by application).
MML_GDC_SURF_COMP_RLAD: the maximal required size for the given compression settings.
MML_GDC_SURF_ATTR_CLUTMODE
Color look up table mode (must be one of MML_GDC_SURF_CLM, initial
MML_GDC_SURF_CLM_NEUTRAL).
MML_GDC_SURF_ATTR_CLUTCOUNT
Number of color look up table entries (0..255, initial: 0 = no color look up table).
MML_GDC_SURF_ATTR_CLUTBITPERPIXEL
Size of one entry in bits (1, 2, 4, 8, 16, 24, 32, initial: 0).
MML_GDC_SURF_ATTR_CLUTCOLORBITS
Color component size of one entry in bits (0xRRGGBBAA), initial: 0.
MML_GDC_SURF_ATTR_CLUTCOLORSHIFT
Color component shift of one entry in bits (0xRRGGBBAA), initial: 0.
MML_GDC_SURF_ATTR_CLUTBUFFERADDRESS
Virtual address of CLUT data, initial: 0.
ML_GDC_SURF_ATTR_CLUTBUFFER_PHYS_ADDRESS
Physical address of CLUT data, initial:0.
MML_GDC_SURF_ATTR_SURF_FORMAT
Macro attribute to set and get MML_GDC_SURF_FORMAT
Note:
A mmlGdcSmSetAttribute call with the attribute MML_GDC_SURF_ATTR_SURF_FORMAT will implicitly set
the attributes MML_GDC_SURF_ATTR_BITPERPIXEL, MML_GDC_SURF_ATTR_COLORBITS and