how to convert 16-bit RGB Frame Buffer to a viewable format?
问题 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?