C++ Equivalent JPEG Functions?
I was wondering if there were jpeg functions in C++ that are equivalent to the following PHP jpeg functions:
imagesx (width)
imagesy (height)
imagecreatefromjpeg (load the jpeg basically)
imagejpeg (save the jpeg basically)
imagedestroy (destroy the image handle)
If there isnt equivalent functions, how would I check to see if a file is a VALID jpeg file (not just with a .jpg extension), retrieve the width and height, and "change" the quality of the image. In PHP, I use imagejpeg(image); to decrease the filesize of the image, but it doesnt necessarily "change" the quality.
Thanks in advanced for any help!!! It would be GREATLY appreciated!!!