I have some device specific driver in C code which gives a bmp image (640x480) as an output. However I am having a serious trouble with extracting the RGB values from a bmp image (32bpp i guess). I have only a basic understanding of bmp formats and need to retreive the pixel RGB values to save it into a ppm format for further manipulation. There is a structure RGBQUAD inside the code too. I tried to download some libraries but was very unlucky either to read bmp or convert to ppm. Please can anyone direct me to some useful information and example code to accomplish this task.
Thank you very much in advance for your time.