http://digitalpbk.blogspot.com/2009/01/code-libjpeg-converting-jpeg-to-bmp.html
C Code to convert JPEG to BMP in
LINUX using libjpeg
IntroThe following code converts JPEG file into BMP file. The code requires the libjpeg library. The following code is a good example of how to use the libjpeg library. (it compiles). Code converts colour jpeg to 24bit BITMAP.Code : jpeg2bmp.c#include #include #include #include /* we will be using this uninitialized pointer later to store raw, uncompressd image */unsigned char *raw_image = NULL;/* dimensions of the image we want to write ...
Published 3 years, 4 months ago