cancel
Showing results for 
Search instead for 
Did you mean: 

L4 color space clut

Badam.17
Associate II

I only need to display around 8 colors in rgb space and if i use L4 color space i can reduce my framebuffer to the point where i can put the entire framebuffer in internal sram. The only problem is i don't understand how to format the clut in L4.

1 REPLY 1

It's not given explicitly in RM, but I'd be very surprised if L4 wouldn't decode in the same way as L8 except the upper 4 bits being fixed to 0. In other words, the LUT is the same as in L8 mode, except that you need to provide only the first 16 entries.

A bullet-proof way to do this would be to repeat these 16 entries 16 times.

LUT details are given in the DMA2D foreground and background CLUT interface subchapter of the DMA2D chapter in RM.

JW