I'm working with someone else's code on a device which can put an image to /dev/fb/0
and show up on video out or send it over the network to a client application.
I don't have access to the old source for the client app, but I know the following about the data:
- 720x480
- 16-bit
- RGB (I'm no sure if it's 5,5,5 or 5,6,5)
- RAW (no headers whatsoever)
cat
-able to/dev/fb/0
- 675kb
How can I give this a header or convert it to JPEG, BMP, or a RAW type that I could then view in a desktop application?
Ultimately, I want it to be jpeg and viewable in a browser, but anything I can see with my eyes will work for now.
Attempts
Shows the image three times widthwise with almost no color, and squashed vertically:
rawtoppm -rgb -interpixel 720 480 fb.raw > fb.ppm
Shows the image, but with streaks and squashed vertically and bad color:
rawtoppm -rgb -interrow 720 480 fb.raw > fb.ppm
Similar to the above
convert -depth 16 -size 720x480 frame_buffer.rgb fb.jpeg