LEDMatrixStudio icon indicating copy to clipboard operation
LEDMatrixStudio copied to clipboard

16Bits Number Grouping

Open Domsed opened this issue 2 years ago • 3 comments

Please, can you add 16Bits Number grouping option to Export function? The ESP32-HUB75-MatrixPanel-DMA library support only 16bits and i cant get right code for it :( . Thanks D.S

Screenshot_5

Domsed avatar Feb 21 '23 11:02 Domsed

I can add that.

RGB colours are 24 bits, so how would a 16 bit output work?

Two groups of 16 bits per colour (based on the colour format selection), eg: 0R GB Where 0 is a zero byte.

MaximumOctopus avatar Mar 22 '23 15:03 MaximumOctopus

I can add that.

RGB colours are 24 bits, so how would a 16 bit output work?

Two groups of 16 bits per colour (based on the colour format selection), eg: 0R GB Where 0 is a zero byte.

I think it's called RGB565 which is 16Bit RGB, ImageConverter565 by Henning Karlsen doing that. I think it's good to have RGB565 since it save a lot of programming space. Not sure how to encode it but I do this to decode into RGB888.

unsigned char redA = ((((ColorIn>> 11) & 0x1F) * 527) + 23) >> 6; unsigned char greenA = ((((ColorIn>> 5) & 0x3F) * 259) + 33) >> 6; unsigned char blueA = (((ColorIn& 0x1F) * 527) + 23) >> 6;

MangMuang avatar Aug 07 '23 02:08 MangMuang

Yeah I can add that, good idea! I'll get to work on it this week.

MaximumOctopus avatar Aug 07 '23 09:08 MaximumOctopus