硬件JPEG解压缩/Win32

发布于 2024-10-13 23:13:07 字数 138 浏览 4 评论 0 原文

我知道大多数图形硬件都使用MPEG硬件解压缩。我想使用硬件来解压缩 JPEG 图像。有谁知道有关使用此功能的书籍或任何信息的链接,或者可以告诉我有关它的任何信息吗?

另外,如果我可以获得每帧的硬件解压缩,我愿意将图像转换为“视频”。这会更可行吗?

I know that most graphics hardware uses MPEG hardware decompression. I would like to use the hardware to decompress JPEG images. Does anyone know of a book or link to any information about using this functionality, or can tell me anything about it?

Also, I am willing to convert the images into a "video" if I can obtain hardware decompression of each frame. Would this be more viable?

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

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

发布评论

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

评论(5

瑶笙 2024-10-20 23:13:07

使用专用硬件对 jpeg 进行解压缩是在驱动程序级别可用的内容,因此从普通用户空间中完成此操作并不容易。尝试使用通用硬件辅助处理会更容易(例如CUDA)。

但是,如果您需要的只是一部帧来自 jpeg 的电影,那么您应该检查 ffmpeg,因为它是一个工具它可以对视频做许多事情,包括这个或相反的事情(即将视频的所有帧作为图像)。

例如,要使用 jpeg 文件列表(picture1.jpg、picture2.jpg...)制作电影,

ffmpeg -i picture_%d.jpg result.wmv

大多数视频播放器将在播放期间使用硬件加速(如果可用)

Decompression for jpeg using specialized hardware is stuff that's available at the driver level, so it's not easy to do from normal user space. It would be easier to try using generic hardware assisted processing (e.g. CUDA).

However if your need is just having a movie where frames are coming from jpegs then you should check ffmpeg, because it's a tool that can do many things for videos, including this or the opposite (i.e. getting all frames of a video as images).

For example to make a movie using a list of jpeg files (picture1.jpg, picture2.jpg, ...)

ffmpeg -i picture_%d.jpg result.wmv

Most video players will then use hardware acceleration during playback if that is available

丶视觉 2024-10-20 23:13:07

如果您追求速度和易用性,请考虑使用 jpegturbo。它是一个开发的库,我相信它可以完全替代标准 libjpeg。在 2GHZ Atom 处理器上,10MP 图像的压缩时间从 2 秒下降到约 0.6 秒。

If you are looking for speed and ease, look into using jpegturbo. Its a developed library that I believe is a complete replacement for the standard libjpeg. Compression on 10MP images dropped from 2 seconds to ~.6 seconds on a 2GHZ Atom processor.

时光礼记 2024-10-20 23:13:07

视频解压缩硬件是有特殊用途的。它需要按照特定标准编码的视频流。您通常无法使用 MPEG 解码硬件来解码 JPEG。

另一个软件选项是使用 英特尔集成性能基元。它们经过优化以利用 Intel 处理器上的 SSE 指令。

正如 @6502 所指出的,如果将 JPEG 图像转换为视频格式(例如 gh264),有多种方法可以使用硬件加速播放(例如 DirectShow)。您可以使用大多数视频编辑软件手动执行此转换。

Video decompression hardware is special purpose. It takes a video stream that is encoded to a specific standard. You will generally not be able to decode JPEG using MPEG decoding hardware.

Another software option is to use the Intel Integrated Performance Primitives. These are optimized to take advantage of SSE instructions on Intel processors.

As @6502 notes if you convert your JPEG images to a video format (e.g. h.264) there are many ways to use hardware accelerated playback (e.g. DirectShow under Windows). You can do this conversion manually with most video editing software.

§普罗旺斯的薰衣草 2024-10-20 23:13:07

我不同意“大多数图形硬件都使用MPEG硬件解压缩”,至少在PC或类似的桌面环境中是这样。

大多数压缩、解压缩工作是在主处理器(CPU)中完成的。图形硬件主要完成解压图像的后处理。

我认为 MPEG 解压缩硬件至少在 10 年前就已经灭绝了。

I don't agree to the "most graphics hardware uses MPEG hardware decompression", at least in the PC or similar desktop environment.

Mostly compression, decompression jobs are done in the main processor (CPU). Graphic hardwares mainly do the post processing of decompressed images.

MPEG decompression hardwares are extincted at least 10 years ago, I think.

尾戒 2024-10-20 23:13:07

您可能想看看OpenMAX,尽管我认为它还没有被广泛采用。

You might want to have a look at OpenMAX, although I don't think it's widely adopted yet.

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