硬件JPEG解压缩/Win32
我知道大多数图形硬件都使用MPEG硬件解压缩。我想使用硬件来解压缩 JPEG 图像。有谁知道有关使用此功能的书籍或任何信息的链接,或者可以告诉我有关它的任何信息吗?
另外,如果我可以获得每帧的硬件解压缩,我愿意将图像转换为“视频”。这会更可行吗?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
使用专用硬件对 jpeg 进行解压缩是在驱动程序级别可用的内容,因此从普通用户空间中完成此操作并不容易。尝试使用通用硬件辅助处理会更容易(例如CUDA)。
但是,如果您需要的只是一部帧来自 jpeg 的电影,那么您应该检查 ffmpeg,因为它是一个工具它可以对视频做许多事情,包括这个或相反的事情(即将视频的所有帧作为图像)。
例如,要使用 jpeg 文件列表(picture1.jpg、picture2.jpg...)制作电影,
大多数视频播放器将在播放期间使用硬件加速(如果可用)
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, ...)
Most video players will then use hardware acceleration during playback if that is available
如果您追求速度和易用性,请考虑使用 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.
视频解压缩硬件是有特殊用途的。它需要按照特定标准编码的视频流。您通常无法使用 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.
我不同意“大多数图形硬件都使用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.
您可能想看看OpenMAX,尽管我认为它还没有被广泛采用。
You might want to have a look at OpenMAX, although I don't think it's widely adopted yet.