2

i am writing a c/c++ program and i need to take images from a buffer in the memory and transform in RGB, that is 3 components of the image. I was looking at the libjpeg library, but i didn't find any tutorial or example. thanks

user2501133
  • 43
  • 2
  • 5
  • This might help http://stackoverflow.com/questions/639511/where-can-i-find-a-good-tutorial-for-ijg-libjpeg – Charlie Burns Oct 31 '13 at 17:35
  • 1
    You probably didn't search well enough, because a thirty second googling session pointed me to this: http://libjpeg.cvs.sourceforge.net/viewvc/libjpeg/libjpeg/example.c?view=markup – SirDarius Oct 31 '13 at 17:35
  • The first thing you should ask is: How are your images stored in the memory? If they are in bitmap format, you can write relative straight-ahead code to do that.... – fvdalcin Oct 31 '13 at 17:43
  • Can you clearly tell what your objective is? you want to transform a jpeg image to rgb image or something else? – Ram Oct 31 '13 at 18:14
  • thanks. Yes, i have a jpeg image (640x480, size about 40000 Bytes) in a buffer and i want to convert it into RGB format. – user2501133 Nov 02 '13 at 11:37

0 Answers0