Deblock QED

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
(Links)
Line 13: Line 13:
 
{{Template:FuncDef|DeBlock_QED(clip clp, int ''quant1'', int ''quant2'', int ''aOff1'', int ''bOff1'', int ''aOff2'', int ''bOff2'', int ''uv'')}}
 
{{Template:FuncDef|DeBlock_QED(clip clp, int ''quant1'', int ''quant2'', int ''aOff1'', int ''bOff1'', int ''aOff2'', int ''bOff2'', int ''uv'')}}
  
== Abstract ==
+
== Introduction ==
 
+
:Designed to provide 8x8 deblocking sensitive to the amount of blocking in the source, compared to other deblockers which apply a uniform deblocking across every frame.
Designed to provide 8x8 deblocking sensitive to the amount of blocking in the source, compared to other deblockers which apply a uniform deblocking across every frame.
+
<br>
 
+
=== Required Filters ===
=== Requires Filters ===
+
::*[[DeBlock]]
*[[DeBlock]]
+
::*[[MaskTools2]] 2.0a48+
*[[MaskTools2]] 2.0a48+
+
::*[[DCTFilter]]
*[[DCTFilter]]
+
<br>
 
+
== Parameters ==
== Description ==
+
:{{Par|quant1|int|24}}
 
+
::Strength of block edge deblocking.
{{Par|quant1|int|24}}
+
Strength of block edge deblocking.
+
 
+
{{Par|quant2|int|26}}
+
Strength of block internal deblocking.
+
 
+
{{Par|aOff1|int|1}}
+
{{Par|bOff1|int|2}}
+
{{Par|aOff2|int|1}}
+
{{Par|bOff2|int|2}}
+
Modifies block detection and removal strength, for quant1 and quant2 respectively. See [[DeBlock]] for more information.
+
 
+
{{Par|uv|int|3}}
+
Deblock chroma:
+
* 2 : Copy chroma from source.
+
* 3 : Process chroma.
+
* 1/-1 : Process chroma with normal/strong Deblock().
+
  
 +
:{{Par|quant2|int|26}}
 +
::Strength of block internal deblocking.
 +
<br>
 +
:{{Par|aOff1|int|1}}
 +
::Halfway "sensitivity" and halfway a strength modifier for borders.
 +
:{{Par|aOff2|int|1}}
 +
::Halfway "sensitivity" and halfway a strength modifier for block interiors.
 +
:{{Par|bOff1|int|2}}
 +
::"Sensitivity to detect blocking" for borders.
 +
:{{Par|bOff2|int|2}}
 +
::"Sensitivity to detect blocking" for block interiors.
 +
:*aOff and bOff controls block detection and removal strength, for quant1 and quant2 respectively. See [[DeBlock]] for more information.
 +
<br>
 +
:{{Par|uv|int|3}}
 +
::Deblock chroma:
 +
:::* 2 : Copy chroma from source.
 +
:::* 3 : Process chroma.
 +
:::* 1/-1 : Process chroma with normal/strong Deblock().
 +
<br>
 
== Examples ==
 
== Examples ==
 
 
  [[AviSource]]("Blah.avi")
 
  [[AviSource]]("Blah.avi")
 
  Deblock_QED(25, uv=false)
 
  Deblock_QED(25, uv=false)
 
+
<br>
 
== Changelog ==
 
== Changelog ==
Changes 2008-08-18: (Didée)
+
  Changes 2008-08-18: (Didée)
  - Replaced the ugly stackXXX cascade with mt_LutSpa() (requires MaskTools v2.0a35)
+
      - Replaced the ugly stackXXX cascade with mt_LutSpa() (requires MaskTools v2.0a35)
  - Changed Quant and Offset defaults to 24,28,2,4,4,8
+
      - Changed Quant and Offset defaults to 24,28,2,4,4,8
Changes 2010-05-25: (Bi11)
+
  Changes 2010-05-25: (Bi11)
  - Explicitly specified parameters of mt_LutSpa()
+
      - Explicitly specified parameters of mt_LutSpa()
  (required due to position of new 'biased' parameter, starting from MaskTools 2.0a43)
+
      (required due to position of new 'biased' parameter, starting from MaskTools 2.0a43)
  - Non mod 16 input is now padded with borders internally
+
      - Non mod 16 input is now padded with borders internally
Changes 2010-08-18: (Bi11)
+
  Changes 2010-08-18: (Bi11)
  - Replaced AddBorders with PointResize
+
      - Replaced AddBorders with PointResize
  - Changed Quant and Offset defaults to 18,19,3,4,1,1 to reduce blurring
+
      - Changed Quant and Offset defaults to 18,19,3,4,1,1 to reduce blurring
Changes 2010-10-16: (Bi11)
+
  Changes 2010-10-16: (Bi11)
  - Replaced 'relative' with the new 'mode' parameter in mt_LutSpa(), starting from MaskTools 2.0a45
+
      - Replaced 'relative' with the new 'mode' parameter in mt_LutSpa(), starting from MaskTools 2.0a45
  - Changed Quant and Offset defaults to 24,26,1,1,2,2 to increase effectiveness, but still within sensible limits.
+
      - Changed Quant and Offset defaults to 24,26,1,1,2,2 to increase effectiveness, but still within sensible limits.
    (see for details: http://forum.doom9.org/showthread.php?p=810932#post810932)
+
      (see for details: http://forum.doom9.org/showthread.php?p=810932#post810932)
Changes 2011-11-29: (06_taro)
+
  Changes 2011-11-29: (06_taro)
  - Replaced (chroma=uv>2?"process":"ignore") by (chroma=uv>2?"process":"copy") to avoid garbage clip when uv=2.
+
      - Replaced (chroma=uv>2?"process":"ignore") by (chroma=uv>2?"process":"copy") to avoid garbage clip when uv=2.
    The formal parameter is not used by MaskTools2 any more, if ever used.
+
        The formal parameter is not used by MaskTools2 any more, if ever used.
    Foxyshadis once mentioned chroma="ignore" but I had never found a document containing it.
+
        Foxyshadis once mentioned chroma="ignore" but I had never found a document containing it.
 
+
<br>
 
== Links ==
 
== Links ==
-
+
:* [http://forum.doom9.org/showthread.php?t=154777 Doom9 Forum] - Discussion about the updated_Deblock_QED_MT2.
 
+
- [http://forum.doom9.org/showthread.php?t=154777 Doom9 Forum] - Discussion about the updated_Deblock_QED_MT2.
+
  
- [http://forum.doom9.org/showthread.php?p=913365 Doom9 Forum] - Didée's gives a short [http://forum.doom9.org/showpost.php?p=913365&postcount=4 description] of Deblock_QED and some [http://forum.doom9.org/showpost.php?p=913394&postcount=6 insight] on how Deblock_QED works. Also a good thread for other deblocking scripts and plugins.
+
:* [http://forum.doom9.org/showthread.php?p=913365 Doom9 Forum] - Didée's gives a short [http://forum.doom9.org/showpost.php?p=913365&postcount=4 description] of Deblock_QED and some [http://forum.doom9.org/showpost.php?p=913394&postcount=6 insight] on how Deblock_QED works. Also a good thread for other deblocking scripts and plugins.
  
- [http://videoprocessing.fr.yuku.com/topic/12/MDeblock-03-released VideoProcessing Forum] - Didée's [http://videoprocessing.fr.yuku.com/sreply/413/MDeblock-03-released original] Deblock_QED post. It's a very informational thread.
+
:* [http://videoprocessing.fr.yuku.com/topic/12/MDeblock-03-released VideoProcessing Forum] - Didée's [http://videoprocessing.fr.yuku.com/sreply/413/MDeblock-03-released original] Deblock_QED post. It's a very informational thread.

Revision as of 15:20, 16 October 2013

Abstract
Author Didée
Version 1.0
Download Deblock_QED_MT2Mod.avsi
Category Deblockers
Requirements
  • YV12
  • Width Mod 8
  • Height Mod 8
License
Discussion

DeBlock_QED(clip clp, int quant1, int quant2, int aOff1, int bOff1, int aOff2, int bOff2, int uv)

Contents

 [hide

Introduction

Designed to provide 8x8 deblocking sensitive to the amount of blocking in the source, compared to other deblockers which apply a uniform deblocking across every frame.


Required Filters


Parameters

quant1 int = 24
Strength of block edge deblocking.
quant2 int = 26
Strength of block internal deblocking.


aOff1 int = 1
Halfway "sensitivity" and halfway a strength modifier for borders.
aOff2 int = 1
Halfway "sensitivity" and halfway a strength modifier for block interiors.
bOff1 int = 2
"Sensitivity to detect blocking" for borders.
bOff2 int = 2
"Sensitivity to detect blocking" for block interiors.
  • aOff and bOff controls block detection and removal strength, for quant1 and quant2 respectively. See DeBlock for more information.


uv int = 3
Deblock chroma:
  • 2 : Copy chroma from source.
  • 3 : Process chroma.
  • 1/-1 : Process chroma with normal/strong Deblock().


Examples

AviSource("Blah.avi")
Deblock_QED(25, uv=false)


Changelog

 Changes 2008-08-18: (Didée)
     - Replaced the ugly stackXXX cascade with mt_LutSpa() (requires MaskTools v2.0a35)
     - Changed Quant and Offset defaults to 24,28,2,4,4,8
 Changes 2010-05-25: (Bi11)
     - Explicitly specified parameters of mt_LutSpa()
      (required due to position of new 'biased' parameter, starting from MaskTools 2.0a43)
     - Non mod 16 input is now padded with borders internally
 Changes 2010-08-18: (Bi11)
     - Replaced AddBorders with PointResize
     - Changed Quant and Offset defaults to 18,19,3,4,1,1 to reduce blurring
 Changes 2010-10-16: (Bi11)
     - Replaced 'relative' with the new 'mode' parameter in mt_LutSpa(), starting from MaskTools 2.0a45
     - Changed Quant and Offset defaults to 24,26,1,1,2,2 to increase effectiveness, but still within sensible limits.
      (see for details: http://forum.doom9.org/showthread.php?p=810932#post810932)
 Changes 2011-11-29: (06_taro)
     - Replaced (chroma=uv>2?"process":"ignore") by (chroma=uv>2?"process":"copy") to avoid garbage clip when uv=2.
       The formal parameter is not used by MaskTools2 any more, if ever used.
       Foxyshadis once mentioned chroma="ignore" but I had never found a document containing it.


Links

  • Doom9 Forum - Discussion about the updated_Deblock_QED_MT2.
  • Doom9 Forum - Didée's gives a short description of Deblock_QED and some insight on how Deblock_QED works. Also a good thread for other deblocking scripts and plugins.
Personal tools