gpt4 book ai didi

ffmpeg - 使用 sws_scale 使用哪个标志可以获得更好的质量?

转载 作者:行者123 更新时间:2023-12-01 05:05:03 25 4
gpt4 key购买 nike

/* values for the flags, the stuff on the command line is different */
#define SWS_FAST_BILINEAR 1
#define SWS_BILINEAR 2
#define SWS_BICUBIC 4
#define SWS_X 8
#define SWS_POINT 0x10
#define SWS_AREA 0x20
#define SWS_BICUBLIN 0x40
#define SWS_GAUSS 0x80
#define SWS_SINC 0x100
#define SWS_LANCZOS 0x200
#define SWS_SPLINE 0x400

哪一个更适合图像质量?有什么区别?他们都是有损的吗?
我正在尝试将 RGB24 转换为 YUV420P。

最佳答案

RGB24 到 YUV420 的对话本身是有损的。缩放算法可能用于缩小颜色信息。我会说质量是:
点 << 双线性 < 双三次 < lanczos/sinc/spline
我真的不知道其他人。
在极少数情况下,sinc 是理想的缩放器且无损,但通常不满足这些条件。
你也在缩放视频吗?否则我会选择双三次。

关于ffmpeg - 使用 sws_scale 使用哪个标志可以获得更好的质量?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29743648/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com