在部分C ++中加载图像 [英] Loading images in parts C++

查看:90
本文介绍了在部分C ++中加载图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!

我正在开发一款可以处理大型图片的应用。问题是, - 我不能只在一个线程中加载整个部分,因为它会持续很长时间。



所以基本上我想知道,如果任何人都面临同样的问题因此有经验,可能会提供一些关于这个主题的指导。



在我的项目中,我使用C ++和DirectX。

感谢您的时间和精力!

最好的问候!



我尝试过的事情:



我有一个关于将源文件流分成几部分并将它们加载到几个线程中的想法。

Hi all!
I'm developing an app, that will potentially work with large images. And the problem is, - i can't just load the entire piece in one thread, cause it will last for ages.

So basically i'm wondering, if anyone had faced the same problem hence has the experience and could possibly provide some guidance on this topic.

In my project i work with C++ and DirectX.
Thank you for your time and effort!
Best Regards!

What I have tried:

I had an idea about breaking source file streams into parts and loading them in a few threads.

推荐答案

看看这个:VipsWiki [ ^ ]

根据作者的说法它将使用多个CPU自动加载,处理和写入图像核心 - 所以它希望能帮到你。 ( Libvips - VipsWiki [ ^ ])

我还没试过我自己,但它可能值得一看。
Have a look at this: VipsWiki[^]
According to the author "It will automatically load, process and write an image in sections using many CPU cores" - so it hopefully should help you. (Libvips - VipsWiki[^])
I haven't tried it myself, but it's probably well worth a look.


这篇关于在部分C ++中加载图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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