Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 20:01 14 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Colour bit depths - clarification

Author Message
panky

Guru

Joined: 02/10/2012
Location: Australia
Posts: 1116
Posted: 05:15am 08 Sep 2020
Copy link to clipboard 
Print this post

As I understand things -

8 bit mode is RGB332 and is 1 byte per pixel storage, and
16 bit mode is RGB565 and is 2 bytes per pixel storage

12 bit mode is ARGB4444 - is this then 3 bytes per pixel storage?
... almost all of the Maximites, the MicromMites, the MM Extremes, the ArmMites, the PicoMite and loving it!
 
flip
Senior Member

Joined: 18/07/2016
Location: Australia
Posts: 117
Posted: 06:39am 08 Sep 2020
Copy link to clipboard 
Print this post

I suspect it should be ARGB4332. (8 bits for the colours as per 8-bit plus 16 levels of transparency) This might be an issue with the doco

Regards Phil
(EDIT: reported on 5.05.06 beta thread)
Edited 2020-09-08 16:46 by flip
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10582
Posted: 07:02am 08 Sep 2020
Copy link to clipboard 
Print this post

  Quote  12 bit mode is ARGB4444 - is this then 3 bytes per pixel storage?


4+4+4+4 = 16 /2 = 2bytes

  Quote  I suspect it should be ARGB4332. (8 bits for the colours as per 8-bit plus 16 levels of transparency) This might be an issue with the doco


Well then you would be wrong

 if(colours==12){
 pLayerCfg.PixelFormat = LTDC_PIXEL_FORMAT_ARGB4444;
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025