From Avisynth wiki
Revision as of 23:14, 2 June 2020 by Reel.Deal (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Author DrPhill, StainlessS
Version v2.10
Download WaterMark2_dll_v2.10_x86_x64_20180218.zip
Category Layering
License GPLv2
Discussion Doom9 Forum


[edit] Description

Creates a transparent deformation in the video akin to a watermark. The watermark is defined by a black and white image which may be a dynamic image. The intensity of the effect is controlled by several parameters

[edit] Requirements

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

[edit] Syntax and Parameters

Watermark2 (clip clip, clip "watermark", int "displace", int "light", int "depth", bool "softEdge", string "lightFrom")

clip   =
Input clip, colorspace must be RGB32

clip  watermark =
Watermark clip; colorspace must be planar YUV and must have the same dimensions as the input clip. Mask is taken from the luma channel (Y).

int  displace = 10
Maximum displacement of the image (range 0 -> 100).

int  light = 200
Maximum lightening/darkening of the image (range 0 -> 1000).

int  depth = 5
Amount of sloping border (range 0 -> 100).

bool  softEdge = true
Default true, 'round' the sloping border (false -> 'straight' or 'hard' border).

string  lightFrom = NE
Default "NE", illumination direction N/S & E/W in logical combinations.
Default or error = "NE", Strings case insensitive.

[edit] Examples


[edit] Changelog

 Version      Date            Changes

 v2.10        2018/02/18      - Mod by StainlessS
                              - Considerably faster where single frame watermark.
                              - I took the opportunity to mod the WATER_SWITCH from 32 to 128,
                                Watermark Luma Black is Y less than 128, white as greater or equal to 128. 

              2017/12/05      - Mod by StainlessS
                              - Change name to Watermark2
                              - Fixed a couple of bugs and convert to CPP plugin.
              2012/01/29      - Code tidying; changes:
                                * Used malloc/free instead of new/delete.
                                * Used size_t where it seemed appropriate.
                                * Set the values in params for each frame get.
                                * malloced memory for the duration of frame get (is this a good or bad idea?).
                                * Used some #defines to clarify code.
                                * Reorganised the main algorithm to make it clearer (an a little slower, probably).

              2012/01/26      - Implement dynamic watermarking. 

              2012/01/26      - New features:
                                * Specify light direction
                                * Specify light amount
                                * soft or hard edges
                                * depth
                                * image displacement

              2012/01/25      - Initial release by DrPhill

[edit] Archived Downloads

Version Download Mirror
v2.10 WaterMark2_dll_v2.10_x86_x64_20180218.zip WaterMark2_dll_v2.10_x86_x64_20180218.zip

[edit] External Links

Back to External Filters

Personal tools