I'm writing a plugin at the moment which receives a stream of JPEG images over the network from another device (a camera as it happens). At the moment I'm using libjpeg in Linux to do the JPEG decoding, which is fine I suppose, but I'd much prefer to use the internal OBS graphics handling routines to do the job.
However I can't see how I can. All the documentation seems to revolve around loading image data from a file into a texture, rather than from a memory buffer into a texture. How can I decompress a JPEG into a texture from memory instead of from a file?
However I can't see how I can. All the documentation seems to revolve around loading image data from a file into a texture, rather than from a memory buffer into a texture. How can I decompress a JPEG into a texture from memory instead of from a file?