to program_I Just Want To

to program_I Just Want To在http://forum.doom9.org/showthread.php?t=109747上看到的一篇文章,讲得不错,翻译一下,以作备忘。原文是:InX264therearetwodeblockingparameters,calledDeblockingstrengthandDeblockingthreshold.Thestrengthp

大家好,又见面了,我是你们的朋友全栈君。如果您正在找激活码,请点击查看最新教程,关注关注公众号 “全栈程序员社区” 获取激活教程,可能之前旧版本教程已经失效.最新Idea2022.1教程亲测有效,一键激活。

Jetbrains全系列IDE使用 1年只要46元 售后保障 童叟无欺

 在http://forum.doom9.org/showthread.php?t=109747 上看到的一篇文章,讲得不错,翻译一下,以作备忘。
    原文是:
    In X264 there are two deblocking parameters, called Deblocking strength and Deblocking threshold. The strength parameter refers to Alpha Deblocking, while the Threshold Parameter refers to Beta Deblocking (Alpha and Beta Deblocking are the official names). When a deblock setting is written as X:X (for instance 0:0 or 2:-2) the first number is alpha deblocking, while the second is beta deblocking. 
    Alpha deblocking effects the overal amount of deblocking to be applied to the picture, higher values deblock more effectively, but also destroy more detail and cause the entire image to be softened. The default value of 0 is almost always sufficient to get rid of most blocking (especialy when using a cqm), but leaves the picture noticibly blurier. In general use this value should be no lower then -3 and no higher then 3. When using a cqm the authors recomended settings should be used as the default value, and shouldn't be altered by more then +/-2. Alpha Deblocking is the most important parameter in determining the overal sharpness of your encode.
    Beta Deblocking is a bit more tricky to use, Beta Deblocking determines whether something in a block is a detail or not when deblocking is aplied to it. Lower values of Beta Deblocking apply less deblocking to more flat blocks with details present (but more deblocking to blocks without details), while Higher values cause more deblocking to be applied to less flat blocks with details present. Generally Beta Deblocking shouldn't be altered unless you are haveing problems with the default setting. Raising Beta deblocking is a good way to help get rid of ringing artifacts by aplying more aggressive filtering to blocks that aren't very flat. Lowering beta Deblocking is a good way to reduce the amount of DCT blocks without bluring the entire picture. A high value of beta deblocking will cause nonflat blocks to be deblocked more aggressively, while a low value will cause the opposite.
    If you wan't to give your encodes a more detailed look and don't mind the occasional block try a setting of -2:-1. If you like a clean picture and don't mind a little bluriness try 1:2. A nice trick for anime is to use lower beta deblocking setting because it won't blur out lines as much that way.
以下是我的翻译,英语水平低,翻译不对的地方请大家指出:
    在x264中有2个deblocking参数,叫Deblocking strength 和 Deblocking threshold。strength参数也就是Alpha Deblocking,Threshold参数也就是Beta Deblocking(Alpha 和 Beta Deblocking 是官方名称)。当deblock设置写成X:X(例:0:0 或 2:-2)形式时,第一个数字为Alpha deblocking,第二个数字为beta deblocking。
    Alpha deblocking 影响全局大量应用于图像的deblocking ,值越大影响越大,但是也会销毁更多的细节并且引起全部图片模糊化。默认值为0基本上足够摆脱大部分的blocking(特别是当用cqm的时候),但是会使图片变得更模糊。一般情况下使用这个值的时候不要低于-3或者高于3。当用cqm时,作者的建议设置是使用默认值,并且偏移不要超过+/-2。Alpha Deblocking 是一个在编码的时决定全局锐利的最重要的值。
    Beta Deblocking 要小心使用,Beta Deblocking 决定了一个东东在一个block中是否是细节当deblocking参考它时。Beta Deblocking 值越低 应用少一点的deblocking在 更多的简单的blocks细节呈现(但是更多的deblocking没有细节),另一方面,高一点的Beta值引起更多的deblocking应用于更少的简单blocks细节呈现。                                                         通常Beta值不要去改变除非你在用默认设置值的时候出现问题。提高Beta值是一个解决 对于不是很简单的blocks使用更aggressively的filter产生的边缘震荡效应 的好办法。低一点的Beta值是一个降低 大量的DCT blocks 并不会使整个图片模糊 的好办法。高一点的Beta值将引起复杂blocks解块更aggressively(这个词不知道该理解为 更快? 效果更好?),另一方面低一点的值会引起相反的结果。
    如果你不想使编码更注意细节化并且不介意occasional block,就使用-2:-1。如果你喜欢 干净的图片 并且不介意 一点点模糊 那就试试1:2。一个对于动漫的不错的技巧是使用低一点的beta值设定 因为这样不会使我们的lines模糊太多。


下面的一些回复也不错:
    The [qp + 2*min(alpha,beta)] > 15 is simply a conservative approximation, to avoid computing the exact formula as often. 
    The real criterion is: there is a threshold based on [qp + 2*alpha] and another threshold based on [qp + 2*beta]. The texture/gradient/whatever must pass both thresholds before any filtering is applied. The thresholds are 0 when [qp + 2*(alpha or beta)] <= 15. But they are still small for only slightly above 15, so most pixels will fail the threshold then too.
    If a given pixel passes both thresholds, then it is filtered with strength dependent on [qp + 2*alpha].
    Both thresholds and strength also depend on motion vectors and dct residuals. (This is what disqualifies Skip blocks with uniform motion.)
    [qp + 2*min(alpha,beta)] > 15是一个简单的保守近似计算方式,经常用来避免计算精确的公式。
    真实的标准是:一个阀值基于[qp + 2*alpha],另外一个阀值基于[qp + 2*beta]。texture/gradient/whatever必须在任何filting应用之前通过2个阀值。这2个阀值经常是0当[qp + 2*(alpha or beta)] <= 15。但是这2个阀值任然很小当[qp + 2*(alpha or beta)]只比15大一点点时,所以,理所当然大部分像素点会达不到阀值。
    如果一个给定的像素点通过了2个阀值,那么它将 用基于[qp + 2*alpha]的strength来过滤。
    不管是thresholds或者strength 都基于 运动矢量 和 dct residuals。(这也就是 不合格的像素 遗漏 block 统一动作(这句话不知道如何翻译合适))
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/191662.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • 抓包工具Charles基本用法

    抓包工具Charles基本用法我们在进行B/S架构的Web项目开发时,在前端页面与后台交互的调试的时候,通常使用在JSP中加入“debugger;”断点,然后使用浏览器的F12开发者工具来查看可能出错的地方的数据。或者使用HttpWatch来抓包分析。在开发移动端项目没有网页的情况下,就不能通过这种方式抓取数据进行分析了。这时可以使用Charles满足以上要求。Charles是一款Http代理服务器和Http监视器,当移动

    2022年5月1日
    50
  • Pytest(2)使用和调用方法

    Pytest(2)使用和调用方法Pytest执行用例规则Pytest在命令行中支持多种方式来运行和选择测试用例1.对某个目录下所有的用例pytest2.对模块中进行测试pytesttest_mod.py3.对文件夹进行

    2022年7月30日
    8
  • stm32的unique ID全球唯一码[通俗易懂]

    stm32的unique ID全球唯一码[通俗易懂]我经常把STM32的全球唯一码作为网卡的MAC地址,但有一天我发现我发现,我的2个板子的MAC地址一样,造成只能有一个ping通。我查看这2个板子的单片机的UNIQUEID,发现非常接近。uniqueid只有前4个字节不一样,而我用的MAC地址是uniqueid的后6个字节,这就造成生成的MAC地址一模一样,可能是这2个片子是同一批买的,同一批生产的,ID号…

    2025年7月2日
    2
  • 哈佛大学公开课《幸福课》笔记「建议收藏」

    哈佛大学公开课《幸福课》笔记「建议收藏」目录概述第一讲什么是积极心理学第二讲为何研究积极心理学?第三讲幸福是一种随机现象吗?第四讲积极的环境可以改变人第五讲环境的力量第六讲乐观主义第七讲逆境还是机遇第八讲感激第九讲改变第十讲如何去改变第十一讲养成良好的习惯第十二讲写日记第十三讲面对压力第十四讲过犹不及第十五讲完美主义第十六讲享受过程第十七讲运动与冥想第十八讲睡眠、触摸和爱情的重要性第十九讲如何让爱情地…

    2022年7月25日
    18
  • 学习JavaScript这一篇就够了

    学习JavaScript这一篇就够了目录第一章JavaScript简介1.1、JavaScript的起源1.2、JavaScript的组成1.3、JavaScript的特点1.4、JavaScript的使用1.4.1、标签引用1.4.2、文件引用1.5、JavaScript的输出1.5.1、页面输出1.5.2、控制台输出1.5.3、弹出窗口输出1.6、JavaScript的注释1.6.1、单行注释1.6.2、多行注释第二章JavaScript基础语法2.1、标识符2.2、字面量和变量2.2.1、字面量2.2.2、变量2.3、数据类型2.3

    2022年6月16日
    26
  • pycharm 全局搜索快捷键「建议收藏」

    pycharm 全局搜索快捷键「建议收藏」pycharm全局搜索快捷键:ctrl+shift+f如果快捷键被系统占用了,那么在pycharm中是不能使用的,我使用的win10自带的输入,这里是已经存在的快捷键,需要关闭才可以使用

    2022年5月31日
    123

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号