Click here to Skip to main content
15,889,867 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
Hi to all,

I need (important) to modify each picture of an motion jpeg file.
For other image preocessing I use OpenGL.

Can anybody show me a SIMPLE code example how to
a) load an MJPEG file in C++
b) get an image (CImage, byte array, ...)?

If it is neccessary to include anything, please tell me also :)

Help would be great!

Thank you a lot! :)
Posted

Opengl is not for image processing. What are you trying to achieve ?

BTW , regarding mpeg reading, you could use ffdshow[^], or directshow libraries.
 
Share this answer
 
Try looking at some of the samples in this google search.
There were only about 3,910,000 results, so go forth and search out your answer. When you get to the point of a more specific coding question, please feel free to ask and we'll be more than happy to provide more detailed responses.
Cheers.
 
Share this answer
 
Comments
Delta-XC-52 16-Feb-11 6:48am    
a) if i would not have spend at least two hole days for searching, this question would not exist!
b) i need to extract this image in c++ environment, there is no sense if some great freeware are able to do this
c) i need the correct code in c++ for:
-- P S E U D O --
fun loadMJPEG(String filename)
{
VIDEO myInput = open(filename);
BITMAP keyBitmap = myInput.getSinglePicture(hour.min.sec.frame);
return keyBitmap;
}
fjdiewornncalwe 16-Feb-11 8:21am    
a) If you would have told us that instead of assuming that we would assume that, then my answer for google search wouldn't have existed. Voting an answer 1 because YOU didn't provide all the information is pretty silly.
b) So what have you tried? We're not going to do your work for you, we're here to help you with coding issues you encounter along the way.
c) That's nice, but since you're not, I have no wish to help you now.
Maybe you didn't notice, but I was the only one who even made any attempt to help you on this. Talk about biting the hand that feeds you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900