最适合显示的图像格式

发布于 2024-09-12 14:09:50 字数 226 浏览 4 评论 0原文

我正在开发图像处理应用程序。我必须显示图像序列。我想避免 {internal} 格式转换的任何额外开销。

我相信 RGB 应该是最佳的显示格式。但 SDL 接受各种 YUV 格式,并且没有对 RGB 的原生支持。而 Qt 根本不接受 YUV 格式。 X 接受 RGBX 格式{native}。可以以任何所需的格式生成图像以供显示。但应避免用于格式转换的 CPU/GPU 周期。任何关于显示图像序列的正确方式的建议都会很棒。

I am working on an image processing application. I have to display an image sequence. I would like to avoid any extra overhead for {internal} format conversions.

I believe RGB should be the optimal format for display. But SDL accepts various YUV formats and there is no native{to SDL} support for RGB. Whereas Qt does not accept YUV format at all. X accepts RGBX format {native}. Images can be generated in any desired format for display. But CPU/GPU cycles for format conversion should be avoided. Any suggestion on what's the right way of displaying image sequences would be great.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

乱了心跳 2024-09-19 14:09:50

输出格式为ARGB。 SDL 适用于 RGB 表面,因此我不明白您的说法“SDL 没有对 RGB 的原生支持。”。

然而X的原生视频加速接口仅支持YUV输入。如果您使用视频加速接口,则 GPU 上的 YUV->RGB 转换是免费的。这里没有浪费“周期”。

也许您应该更详细地了解您的目的。我们在这里处理的帧速率是多少?

The output format is ARGB. SDL works with RGB surfaces, so I don't understand your claim that "there is no native{to SDL} support for RGB.".

The native video acceleration interface of X only supports YUV input however. The YUV->RGB conversion on the GPU comes for free if you use the video acceleration interface. No "cycles" wasted here.

Perhaps you should go into more detail about your purposes. What is the framerate we are dealing with here?

抠脚大汉 2024-09-19 14:09:50

我认为你应该使用任何未压缩的图像+ QPixmap。

I think you should use any uncompressed image + QPixmap.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文