硬汉嵌入式论坛

 找回密码
 立即注册
查看: 4419|回复: 1
收起左侧

[LibJPEG] 【LibJPEG专题系列十九】FPU可否加快JPEG?DSP芯片又如何?

[复制链接]

740

主题

1326

回帖

3546

积分

管理员

春暖花开

Rank: 9Rank: 9Rank: 9

积分
3546
QQ
发表于 2015-5-14 17:01:55 | 显示全部楼层 |阅读模式
                    Section - [19] Could an FPU speed up JPEG?
                                        How about a DSP chip?

Since JPEG is so compute-intensive, many people suggest that using an FPU chip (a math coprocessor) should
speed it up.  This is not so. Most production-quality JPEG programs use only integer arithmetic and so they are
unaffected by the presence or absence of floating-point hardware.


It is possible to save a few math operations by doing the DCT step in floating point.  On most PC-class machines,
FP operations are enough slower than integer operations that the overall speed is still much worse with FP.
Some high-priced workstations and supercomputers have fast enough FP hardware to make an FP DCT method
be a win.


DSP (digital signal processing) chips are ideally suited for fast repetitive integer arithmetic, so programming a DSP
to do JPEG can yield significant speedups.  DSPs are available as add-ons for some PCs and workstations; if you
have such hardware, look for a JPEG program that can exploit it.
努力打造安富莱高质量微信公众号:点击扫描图片关注
回复

使用道具 举报

740

主题

1326

回帖

3546

积分

管理员

春暖花开

Rank: 9Rank: 9Rank: 9

积分
3546
QQ
 楼主| 发表于 2015-5-14 17:38:01 | 显示全部楼层
                                         Section 19
                    FPU可否加快JPEGDSP芯片又如何?

        由于JPEG是计算密集型的压缩算法,很多人认为使用FPU芯片(算术协处理器)可以加快步伐。
事实却并非如此。大多数注重质量的JPEG程序只使用整型运算,因此,他们不受硬件浮点存在与否的影响。


    通过执行浮点的DCT步骤,有可能节省一些数学运算。在一些PC级的机器中,FP运算比整型运算要慢
得多,以至于FP的整体运行速度很糟糕。一些高价位的工作平台以及超级计算机拥有足够快速的FP硬件
使得FP DCT这一运算方法成为赢家。


        DSP(数字信号处理)芯片非常适合快速重复的整型运算,所以在DSP芯片上实现JPEG解码可以明显
地加快运算速度。DSP芯片可附加在一些PC机和工作平台上;如果你有这样的硬件,你可以找一个能够
利用它的JPEG程序。
努力打造安富莱高质量微信公众号:点击扫描图片关注
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|Archiver|手机版|硬汉嵌入式论坛

GMT+8, 2024-5-11 23:29 , Processed in 0.151251 second(s), 25 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表