[squeak-dev] rgb565 bitmap exporter?

Bert Freudenberg bert at freudenbergs.de
Tue Jul 28 12:24:35 UTC 2015


> On 27.07.2015, at 21:06, tim Rowledge <tim at rowledge.org> wrote:
> 
> 
> On 27-07-2015, at 8:10 AM, Bert Freudenberg <bert at freudenbergs.de> wrote:
> 
>> On 27.07.2015, at 04:31, tim Rowledge <tim at rowledge.org> wrote:
>>> 
>>> I don’t suppose anyone has already written (or knows where one is hidden in the image) a bitmap exporter that  can write rgb565 ? Pretty daft for me to faff around doing it if there is already one around. I’ve spotted assorted kinda-sorta related code but not (yet) what I need.
>> 
>> So what *do* you need? Which file format? Why 565? (Windows BMP supports both 555 and 565)
> I need to write rgb565 to /dev/fb1 on my AstroPi :-) How else will astronauts be able to play with Scratch in orbit?

sqUnixX11.c: copyImage16To16() should do it. If you replace the stRNMask/stRShift variables with constants it might even be reasonably efficient. ARM SIMD code would be better, obviously.

Or are you talking about Smalltalk code? A single bitblt copy with a suitable color map should do it.

- Bert -



-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4115 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20150728/46eaf320/smime.bin


More information about the Squeak-dev mailing list