EasyManuals Logo

ST STM32L4 5 Series User Manual

ST STM32L4 5 Series
1830 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #361 background imageLoading...
Page #361 background image
DocID024597 Rev 5 361/1830
RM0351 Chrom-Art Accelerator™ controller (DMA2D)
391
The color format are coded as follows:
Alpha value field: transparency
0xFF value corresponds to an opaque pixel and 0x00 to a transparent one.
R field for Red
G field for Green
B field for Blue
L field: luminance
This field is the index to a CLUT to retrieve the three/four RGB/ARGB components.
If the original format was direct color mode (ARGB/RGB), then the extension to 8-bit per
channel is performed by copying the MSBs into the LSBs. This ensures a perfect linearity of
the conversion.
If the original format is indirect color mode (L/AL), a CLUT is required and each pixel format
converter is associated with a 256 entry 32-bit CLUT.
If the original format does not include an alpha channel, the alpha value is automatically set
to 0xFF (opaque).
For the specific alpha mode A4 and A8, no color information is stored nor indexed. The color
to be used for the image generation is fixed and is defined in the DMA2D_FGCOLR for
foreground pixels and in the DMA2D_BGCOLR register for background pixels.
The order of the fields in the system memory is defined in Table 49: Data order in memory.
The 24-bit RGB888 aligned on 32-bit is supported through the ARGB8888 mode.
Once the 32-bit value is generated, the alpha channel can be modified according to the
AM[1:0] field of the DMA2D_FGPFCCR/DMA2D_BGPFCCR registers as shown in
Table 50: Alpha mode configuration.
Table 49. Data order in memory
Color Mode @ + 3@ + 2@ + 1@ + 0
ARGB8888 A
0
[7:0] R
0
[7:0] G
0
[7:0] B
0
[7:0]
RGB888
B
1
[7:0] R
0
[7:0] G
0
[7:0] B
0
[7:0]
G
2
[7:0] B
2
[7:0] R
1
[7:0] G
1
[7:0]
R
3
[7:0] G
3
[7:0] B
3
[7:0] R
2
[7:0]
RGB565 R
1
[4:0]G
1
[5:3] G
1
[2:0]B
1
[4:0] R
0
[4:0]G
0
[5:3] G
0
[2:0]B
0
[4:0]
ARGB1555 A
1
[0]R
1
[4:0]G
1
[4:3] G
1
[2:0]B
1
[4:0] A
0
[0]R
0
[4:0]G
0
[4:3] G
0
[2:0]B
0
[4:0]
ARGB4444 A
1
[3:0]R
1
[3:0] G
1
[3:0]B
1
[3:0] A
0
[3:0]R
0
[3:0] G
0
[3:0]B
0
[3:0]
L8 L
3
[7:0] L
2
[7:0] L
1
[7:0] L
0
[7:0]
AL44 A
3
[3:0]L
3
[3:0] A
2
[3:0]L
2
[3:0] A
1
[3:0]L
1
[3:0] A
0
[3:0]L
0
[3:0]
AL88 A
1
[7:0] L
1
[7:0] A
0
[7:0] L
0
[7:0]
L4 L
7
[3:0]L
6
[3:0] L
5
[3:0]L
4
[3:0] L
3
[3:0]L
2
[3:0] L
1
[3:0]L
0
[3:0]
A8 A
3
[7:0] A
2
[7:0] A
1
[7:0] A
0
[7:0]
A4 A
7
[3:0]A
6
[3:0] A
5
[3:0]A
4
[3:0] A
3
[3:0]A
2
[3:0] A
1
[3:0]A
0
[3:0]

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM32L4 5 Series and is the answer not in the manual?

ST STM32L4 5 Series Specifications

General IconGeneral
BrandST
ModelSTM32L4 5 Series
CategoryMicrocontrollers
LanguageEnglish

Related product manuals