Graphics pixel format
Theo Markettos (89) 919 posts |
Having an idle poke through the kernel code just now, I thought of something. Let’s assume RISC OS is to be ported to some new hardware. RO has a peculiar ordering of graphics pixels – it’s BGR not RGB. On Iyonix this is fixed in hardware by swapping the R and B analogue lines on the graphics card. But assuming we’re going to be using some device where we can’t do the hardware hack, how should this be fixed? How do other systems (Viewfinder, A9) approach this problem? |
John-Mark Bell (94) 36 posts |
There are a number of options, depending on what the hardware supports. Here’s a non-exhaustive list of ideas:
Note that (5) will break any application that blits pixels directly to the screen, which is probably most non-trivial ones. |