RIOT icon indicating copy to clipboard operation
RIOT copied to clipboard

Add color depth types to disp_dev API

Open Citrullin opened this issue 5 years ago • 7 comments
trafficstars

Contribution description

This PR addresses the issue with colors in the disp_dev API. Mentioned briefly in #13787 It's a proposal how to address it. The idea behind this is simple: The user application shouldn't care too much about the underlying color depth of a display. It should provide the color data in the correct format. The driver should do the rest. This also makes it possible to switch displays with different color depths without changing the color data itself. Also the application code should be the same. The user only has to change the makefile. For example:

  • User applications uses 24bit color data and a 24bit color display. The driver itself doesn't need to change the data that much, since it can display it directly.
  • For another version of the hardware, the user changes the display to a 16bit display. The driver abstracts this, accepts the 24bit color data and transforms it to the needed 16bit color.

This is an down scaling example. The same can be done for up scaling as well. The biggest benefit is backwards compatibility. The user can simply maintain backwards compatibility, without caring too much about the old hardware.

Testing procedure

The tests are not changed yet.

Issues/PRs references

Addresses #13787 . Should be merged after #14051 .

Citrullin avatar May 11 '20 09:05 Citrullin

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you want me to ignore this issue, please mark it with the "State: don't stale" label. Thank you for your contributions.

stale[bot] avatar Jan 06 '21 12:01 stale[bot]

"State: don't stale" Still an open topic

Citrullin avatar Jan 06 '21 17:01 Citrullin

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you want me to ignore this issue, please mark it with the "State: don't stale" label. Thank you for your contributions.

stale[bot] avatar Mar 02 '22 09:03 stale[bot]

Still an issue.

Citrullin avatar Mar 16 '22 18:03 Citrullin

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you want me to ignore this issue, please mark it with the "State: don't stale" label. Thank you for your contributions.

stale[bot] avatar Sep 21 '22 05:09 stale[bot]

Hi! Do you still plan to get this merged? The PR this depends on got closed by stale bot #14051.

Teufelchen1 avatar Mar 18 '24 13:03 Teufelchen1

Hi! Do you still plan to get this merged? The PR this depends on got closed by stale bot #14051.

Not really, sorry. There was so much discussion about this (see https://github.com/RIOT-OS/RIOT/issues/13787 etc.) I guess it needs someone to push it. Get all people together, make a clean PR with all the concerns, get it merged.

Citrullin avatar Apr 13 '24 21:04 Citrullin