StainlessS
11th May 2017, 12:58
Plugin MaskCrop, dll + script,
On Wiki
External Filters:- http://avisynth.nl/index.php/External_filters
Avisynth+ :- http://avisynth.nl/index.php/AviSynth%2B
Does anybody use this plugin ?
it seems to have at least a couple of issues, and no thread on D9.
Seems to be of Japanese origin, and had an update about Feb 2017, no attribution to original author, nor the person that did update.
EDIT: Was first put up on Wiki 0n 1st Oct 2013 (for avs64+), and wiki last updated 30 April 2017 (avs/avs64+).
EDIT: The readme, minus the GPL stuff
MaskCrop -- an accelerator works with a mask for Avisynth2.6x/Avisynth+.
2017/02/20 ver 0.1.1
New: Addtion a new input clip "maskc" to specify a mask clip directly.
New: Addtion a parameter "border" to avoid border affects on a mask.
fix: Default masks expression was modified to "mt_makediff(last,last.loop(2,0,0), U=3,V=3).mt_lut("x 123 < 255 x 133 > 255 0 ? ?",
\ U=3,V=3).Removegrain(1)"
fix: Default filter expression was modified to "dfttest(sigma=16,tbsize=1,sbsize=16,sosize=12)"
64bit available.
2016/09/02 ver 0.1
What is this?
A script and a plugin to speed up filtering with a mask.
How to use ?
loadplugin("maskcrop.dll")
Import("maskcrop.avsi")
maskcrop("mt_motion().mt_inpand().mt_expand()","deblock().dfttest()",8,8,false)
or
loadplugin("maskcrop.dll")
Import("maskcrop.avsi")
mask=mt_motion()
maskcrop(maskc=mask,8,8,false)
Syntax
maskcrop(clip clip ,clip "maskc", string "masks", string "filter", int "xMul", int "yMul",@bool "chroma", bool "border")
MaskCropT(clip clip, int "mul", bool "chroma")
MaskCropL(clip clip, int "mul", bool "chroma")
MaskCropB(clip clip, int "mul", bool "chroma")
MaskCropR(clip clip, int "mul", bool "chroma")
Parameters
maskc (clip default:none)
A mask clip
masks (string default:"mt_makediff(last,last.loop(2,0,0), U=3,V=3).mt_lut("x 123 < 255 x 133 > 255 0 ? ?",
\ U=3,V=3).Removegrain(1)")
An expression of a mask what you want to apply.
filter (string default:"dfttest(sigma=16,tbsize=1,sbsize=16,sosize=12)")
An expression of filters what you want to apply.
xMul, yMul, mul (int default: xMul=4, yMul=2)
These parameters adjust width of and height of cropped frames to multiple of xMul and multiple of yMul, respectively.
Default values satisfy yv12 plane. But some filters require larger values.
chroma (bool default: true)
This parameter switches to detect an edge of a mask with chroma, not only luma.
border (bool default: true)
crop(4,4,-4,-4) to avoid border affects on a mask.
MaskCrop() is a script to increase efficiency of filtering with a mask.
This script includes four non-clip functions that returns a coordinate value of a square including a mask.
These four functions i.e. MaskCropT(), MaskCropL(), MaskCropB() and MaskCropR() that return top, left, bottom and right coordinate values of
square, respectively.
Then these values are used to crop not only mask clip, but also the clip to filter.
This cropping provides a possibility to accelerate filtering.
If the sum of costs of MaskCrop, cropping a mask clip, cropping a processing clip and overlay was less than the sum of differences of
filtering and mt_merge()
between full frame and cropped frame, MaskCrop could accelerate filtering.
EDIT: No D9 search hits, except this post.
EDIT: Plugin requires Msvcr120D.dll, ie DEBUG runtime version for VS 2013, unless you have Visual Studio 2013 installed
with debug version runtime, then it will not work. (64 bit version same problem)
On Wiki
External Filters:- http://avisynth.nl/index.php/External_filters
Avisynth+ :- http://avisynth.nl/index.php/AviSynth%2B
Does anybody use this plugin ?
it seems to have at least a couple of issues, and no thread on D9.
Seems to be of Japanese origin, and had an update about Feb 2017, no attribution to original author, nor the person that did update.
EDIT: Was first put up on Wiki 0n 1st Oct 2013 (for avs64+), and wiki last updated 30 April 2017 (avs/avs64+).
EDIT: The readme, minus the GPL stuff
MaskCrop -- an accelerator works with a mask for Avisynth2.6x/Avisynth+.
2017/02/20 ver 0.1.1
New: Addtion a new input clip "maskc" to specify a mask clip directly.
New: Addtion a parameter "border" to avoid border affects on a mask.
fix: Default masks expression was modified to "mt_makediff(last,last.loop(2,0,0), U=3,V=3).mt_lut("x 123 < 255 x 133 > 255 0 ? ?",
\ U=3,V=3).Removegrain(1)"
fix: Default filter expression was modified to "dfttest(sigma=16,tbsize=1,sbsize=16,sosize=12)"
64bit available.
2016/09/02 ver 0.1
What is this?
A script and a plugin to speed up filtering with a mask.
How to use ?
loadplugin("maskcrop.dll")
Import("maskcrop.avsi")
maskcrop("mt_motion().mt_inpand().mt_expand()","deblock().dfttest()",8,8,false)
or
loadplugin("maskcrop.dll")
Import("maskcrop.avsi")
mask=mt_motion()
maskcrop(maskc=mask,8,8,false)
Syntax
maskcrop(clip clip ,clip "maskc", string "masks", string "filter", int "xMul", int "yMul",@bool "chroma", bool "border")
MaskCropT(clip clip, int "mul", bool "chroma")
MaskCropL(clip clip, int "mul", bool "chroma")
MaskCropB(clip clip, int "mul", bool "chroma")
MaskCropR(clip clip, int "mul", bool "chroma")
Parameters
maskc (clip default:none)
A mask clip
masks (string default:"mt_makediff(last,last.loop(2,0,0), U=3,V=3).mt_lut("x 123 < 255 x 133 > 255 0 ? ?",
\ U=3,V=3).Removegrain(1)")
An expression of a mask what you want to apply.
filter (string default:"dfttest(sigma=16,tbsize=1,sbsize=16,sosize=12)")
An expression of filters what you want to apply.
xMul, yMul, mul (int default: xMul=4, yMul=2)
These parameters adjust width of and height of cropped frames to multiple of xMul and multiple of yMul, respectively.
Default values satisfy yv12 plane. But some filters require larger values.
chroma (bool default: true)
This parameter switches to detect an edge of a mask with chroma, not only luma.
border (bool default: true)
crop(4,4,-4,-4) to avoid border affects on a mask.
MaskCrop() is a script to increase efficiency of filtering with a mask.
This script includes four non-clip functions that returns a coordinate value of a square including a mask.
These four functions i.e. MaskCropT(), MaskCropL(), MaskCropB() and MaskCropR() that return top, left, bottom and right coordinate values of
square, respectively.
Then these values are used to crop not only mask clip, but also the clip to filter.
This cropping provides a possibility to accelerate filtering.
If the sum of costs of MaskCrop, cropping a mask clip, cropping a processing clip and overlay was less than the sum of differences of
filtering and mt_merge()
between full frame and cropped frame, MaskCrop could accelerate filtering.
EDIT: No D9 search hits, except this post.
EDIT: Plugin requires Msvcr120D.dll, ie DEBUG runtime version for VS 2013, unless you have Visual Studio 2013 installed
with debug version runtime, then it will not work. (64 bit version same problem)