牵着老婆满街逛

严以律己,宽以待人. 三思而后行.
GMail/GTalk: yanglinbo#google.com;
MSN/Email: tx7do#yahoo.com.cn;
QQ: 3 0 3 3 9 6 9 2 0 .

如何选择swscale中的缩放算法

转载自:http://blog.yikuyiku.com/?p=2280

翻译自:http://forum.doom9.org/showthread.php?t=160593

译者按:此文档时间为2008。

个人建议

放大:
重视速度:fast_bilinear, point
重视质量:cubic, spline, lanczos

缩小:
重视速度:fast_bilinear, point
重视质量:gauss, bilinear
重视锐度:cubic, spline, lanczos

注意:使用定bit(而不是定量化器)编码时,稍模糊的输入可能反而比较为锐的输入在缩放后获得较好的结果,尤其在低码率时更是如此。

错误类型

ringing
在锐利的边缘有块状的波或噪点
糟糕的:sinc, lanczos (with high filter length)
可接受:lanczos (with low filter length), cubic, spline
优秀的:area, (fast)blinear, gauss, point

blur
细节丢失
糟糕的:gauss with high variance
可接受:(fast)bilinear, area
优秀的:others

aliasing (only downscale)
梯状的线条
细节丰富的区域看上去很糟
块状区域显示错误
糟糕的:fast bilinear, point, gauss with low variance
可接受:area
优秀的:others

blocky (upscale only)
图像产生了很多块效应
糟糕的:point
优秀的:others

sws 编号 / 名称 / 错误类型

r ringing
b blurry
a aliasing (downscale only)
m mosaic (blocky) (upscale only)

-sws 0 fast bilinear bA
-sws 1 bilinear b
-sws 2 bicubic high sharpness r
low sharpness b
-sws 3 experimental ????
-sws 4 nearest neighbour AM
-sws 5 area ba
-sws 6 luma bicubic / chroma bilinear r
-sws 7 gauss low sharpness B
high sharpness AM
-sws 8 sinc R
-sws 9 lanczos long filter R
short filter b
-sws 10 bicubic spline r


posted on 2013-08-14 22:04 杨粼波 阅读(573) 评论(0)  编辑 收藏 引用


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理