如何加载MJPEG并获取每个静止图像

如何加载MJPEG并获取每个静止图像

问题描述:

大家好,

我需要(重要)修改运动jpeg文件的每张图片.
对于其他图像处理,我使用OpenGL.

谁能给我看一个简单的代码示例,
a)在C ++中加载MJPEG文件
b)获取图像(CImage,字节数组等)?

如果需要包含任何内容,请也告诉我:)

帮助会很棒!

万分感谢! :)

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! :)

Opengl不适用于图像处理.您要达到什么目的?

顺便说一句,关于mpeg阅读,您可以使用ffdshow [
Opengl is not for image processing. What are you trying to achieve ?

BTW , regarding mpeg reading, you could use ffdshow[^], or directshow libraries.


尝试查看
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.