使用GDI Plus流式传输图像 [英] Streaming images using GDI Plus

查看:120
本文介绍了使用GDI Plus流式传输图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我叫Hari,我是VC ++的新用户.我目前正在尝试开发一个应用程序,该应用程序将流化相机中的图像.我正在尝试使用GDI加库来执行此操作.我有一个示例代码,可显示文件中的图像.我很难用相机做同样的事情.任何帮助或示例项目非常感谢.我一直在努力尝试做到这一点.看起来GDI就是这样.

谢谢
Hariharan

Hi,

My name is Hari and i am fairly a new user to VC++. I am currently trying to develop an application that will stream images from a camera. I am trying to use the GDI plus library to do it. I have a sample code that displays image from a file. I am having difficulty doing the same from a camera. Any help or sample projects is much appreciated. I have been breaking my head trying to do this. Looks like GDI is the way about it.

THanks
Hariharan

推荐答案

我会说流式传输",但实际上,使用GDI渲染视频太慢了,无法达到视频所需的速度.您可以尝试,但我几乎可以肯定,由于速度原因,您将失败.据我了解,您需要逐帧执行此操作,而不是使用视频压缩(但可能需要在帧级别使用图像压缩;这不是所有类型的视频压缩都可以执行);这可能是因为您的摄像头接口是非标准的或属于工业标准而非消费者标准之一.

因此,如果确实有必要在该级别上这样做,我建议您改用DirectX.

—SA
I would say, "streaming", but in fact rendering of the video using GDI is way too slow to achieve speed required by video. You can try but I''m almost sure you will fail due to the speed. As I understand, you need to do this frame by frame, not using video compression (but possibly using image compression at the level of the frame; which is not what all kinds of video compression do); and this can be because your camera interface is non-standard or belongs to one of industrial, not consumer standards.

So, if really there is a reason to do it on that level, I would recommend using DirectX instead.

—SA


"SAKryukov",您是否有任何示例应用程序可以解释如何使用DirectX从相机流式传输图像?因为我是初学者,所以对我真的很有帮助.
谢谢
"SAKryukov" do you have any sample applications that would explain using directX for streaming images from camera? it would really really help me since i am in the beginner level.
Thanks


这篇关于使用GDI Plus流式传输图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆