Uglarm

From Avisynth wiki
Revision as of 15:36, 26 May 2020 by Reel.Deal (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Abstract
Author StainlessS
Version v0.00
Download Uglarm_25_26_x86_x64_dll_v0.00_20190917.zip
Category Logo removal
License GPLv2
Discussion Doom9 Forum


Contents

Description

Filter for blurring a logo, using LogoAway style Uglarm Interpolation method. Logo pixels interpolated from all non-clipped pixels surrounding the logo area, nearer pixels have more effect (governed by BlurPower).

Requirements


*** vcredist_x86.exe is required for Uglarm-x86
*** vcredist_x64.exe is required for Uglarm-x64


Syntax and Parameters

Function Uglarm(clip c,                                             [* Avs v2.58 & v2.60 std supports YV12/YUY2/RGB32/RGB24 : Avs+ r2915+ also YV16, YV12, YV24, Y8 *]
        \ int LogoX,int LogoY,Int LogoW,Int LogoH,                  [* ALL coords can be -ve, where RHS/BOT relative, LogoW & LogoH can additionally be 0 where RHS/BOT relative*]
        \ int "ClipX"=0,int "ClipY"=0,Int "ClipW"=0,Int "ClipH"=0,  [* ClipW, and ClipH coords can be zero or -ve, where RHS/BOT relative (but ClipX:ClipY cannot be -ve) *]
        \ float "SAR"=1.0,                                          [* Sample (Pixel) Aspect Ratio. SAR < 1.0:=Pixels are taller than wide, 1.0 < SAR:- pixels are wider than tall, SAR==1.0:=Pixels are square. *]
        \ float "BlurPower"=3.0,                                    [* 0.0 -> 10.0. 0.0=Single color Average of perimeter pixels, 10.0 Perimeter pixels nearest logo pixel greatest effect. Suggest about 3.0 *]
        \ Int "ShowMode"=2                                          [* 0=Overlay Logo Patch(Clipped Logo), 1=Overlay Logo Patch(Clipped) & Border, 2=DeLogo, 3=KeepChroma(Luma only), 4=KeepLuma(ChromaOnly) *]
        \ Bool "Blank"=false                                        [* Where ShowMode==2 and Blank==True then Blank to Black any border area (border is outside of Clip args) *]
        \ )


        LogoX,LogoY,LogoW,LogoH,            Define Logo area. ALL coords can be -ve, where RHS/BOT relative, LogoW & LogoH can additionally be 0 where RHS/BOT relative*]

        ClipX,ClipY,ClipW,ClipH,            All default 0, being full frame (as crop). Inside Clip area is normal unclipped frame,
                                                outside is border/lettrbox area (avoid using border as source pixels for blurring).
                                                ClipW, and ClipH coords can be 0 or -ve, where RHS/BOT relative.

        SAR,                                Default 1.0. Range 0.0 < SAR <= 10.0. Aspect Ratio of pixel(x/y).
                                                Automatically adjusts SAR for chroma of YV16 and YUY2 (otherwise you would get vertical chroma lines for YUY2 and YV16).

        BlurPower,                          Default 3.0. Range 0.0 <= BlurPower <= 10.0. 0.0=Average of all perimeter pixels (all perimeter pixels given equal weight).
                                                The greater BlurPower, the more the NEAREST perimeter pixels affect logo pixels result during logo interpolation.

        ShowMode,                           Default 2. (Normal Delogo)
                                                0 = Show Overlay Patch (Clipped Logo) Area. # For Setting up Filter.
                                                1 = 1=Overlay Logo Patch(Clipped) & Border. #   Ditto.
                                                2 = Normal Delogo.
                                                3 = KeepChroma, Luma   blur only (No effect if not YUV, as for Showmode=2).
                                                4 = LumaChroma, Chroma blur only (No effect if not YUV, as for Showmode=2).

                                                    For ShowMode 0 and 1, we use Layer filter and pre (some version of) Avs+ Avisynth, we need to convert to either YUY2 or RGB32 if not those colorspaces..
                                                        YV12 will be converted to YUY2, and RGB24 to RGB32. Both types are then converted back to original colorspace befre return from filter.
                                                    For Modes 2,3 and 4, Avisynth 2.60 can additionally use YV16, YV12, YV24, Y8.
                                                    Avs+ (after some version) can use all Avs 2.60 standard colorspaces in all ShowModes with exception of YV411 which is not supported ALL ALL.

        Blank,                              Default False. If True, and ShowMode >= 2, then will blank any Clipped border area to black (via Clip args).


Examples

TODO

Changelog

v0.0, 17 Sept 2019. First release.


Archived Downloads

Version Download Mirror
v0.00 Uglarm_25_26_x86_x64_dll_v0.00_20190917.zip Uglarm_25&26_x86_x64_dll_v0.00_20190917.zip


External Links




Back to External Filters


Personal tools