For those of you who don’t know, displaying camera images on a laptop dashboard works by sending packets over a TCP connection which includes the latest image encoded as a jpeg.
I’m making a custom dashboard program, and I’m going to implement a video feed. I have the networking figured out, but the problem is the jpeg format of the incoming images. The rendering library I’m using for drawing the dashboard can display images based off of a jpeg file, but it would be a horrendous waste of resources to continually save the jpeg data from the packets to a file and read it back in. Alternatively, it can draw images straight from a memory buffer, but the image must be in a standard bitmap format (16-bit A1R5G5B5 or R5G6B5, 24-bit R8G8B8, etc.). I need a C or C++ library of some sort that can convert a jpeg data stored in a memory buffer to a bitmap format (I’d assume R8G8B8 would be the most common).
Does anybody have such a library? I’d really prefer not to create my own jpeg decoder, as I don’t really have the time to dedicate that much time to coding just a single aspect of our robot system.