UU mt blend
From Avisynth wiki
(Difference between revisions)
Raffriff42 (Talk | contribs) m (tweak formatting) |
Raffriff42 (Talk | contribs) m (tweak formatting) |
||
Line 41: | Line 41: | ||
::{{Par2|mode|string|"blend"}} | ::{{Par2|mode|string|"blend"}} | ||
:::{| class="wikitable" style="max-width:48em!important" | :::{| class="wikitable" style="max-width:48em!important" | ||
− | ! Mode | + | ! style="width:10em" | Mode |
! Description | ! Description | ||
|- | |- | ||
− | | colspan="2" style="text-align:left;"| ''Normal Blending Modes'' | + | | colspan="2" style="text-align:left;" | '''''Normal Blending Modes''''' |
|- | |- | ||
| blend | | blend | ||
Line 50: | Line 50: | ||
|- | |- | ||
− | | colspan="2" style="text-align:left;"| ''Darkening Modes'' | + | | colspan="2" style="text-align:left;"| '''''Darkening Modes''''' |
|- | |- | ||
| darken | | darken | ||
Line 68: | Line 68: | ||
|- | |- | ||
− | | colspan="2" style="text-align:left;"| ''Lightening Modes'' | + | | colspan="2" style="text-align:left;"| '''''Lightening Modes''''' |
|- | |- | ||
| lighten | | lighten | ||
Line 86: | Line 86: | ||
|- | |- | ||
− | | colspan="2" style="text-align:left;"| ''Contrast Modes'' | + | | colspan="2" style="text-align:left;"| '''''Contrast Modes''''' |
|- | |- | ||
| overlay | | overlay | ||
Line 113: | Line 113: | ||
|- | |- | ||
− | | colspan="2" style="text-align:left;"| ''Inversion Modes'' | + | | colspan="2" style="text-align:left;"| '''''Inversion Modes''''' |
|- | |- | ||
| exclude | | exclude | ||
Line 119: | Line 119: | ||
|- | |- | ||
− | | colspan="2" style="text-align:left';"| ''Cancellation Modes'' | + | | colspan="2" style="text-align:left';"| '''''Cancellation Modes''''' |
|- | |- | ||
| absdiff | | absdiff |
Revision as of 02:50, 24 December 2015
Abstract | |
---|---|
Author | raffriff42 |
Version | 1.1 |
Download | UU_mt_blend.avs |
Category | Layering |
Requirements | *YV12, RGB24, RGB32 |
License | |
Discussion | Doom9 |
Blend (Overlay, Layer) two clips using MaskTools. Wide selection of blend modes. YV12 sources are supported, but the result may be unexpected. Use RGB sources for correct blending. Unlike Overlay and Layer, there is no support for Masking.
Contents |
Requirements
- AviSynth 2.6 or later
- Supported color formats: YV12, RGB24, RGB32
- Color format of the two clips must match.
Required Plugins
Syntax and Parameters
- uu_mt_blend(clip C, clip D, float "opacity", string "mode", int "cmode", bool "showargs")
- clip C =
- Base clip.
- clip C =
- clip D =
- Overlay clip.
- clip D =
- float opacity = 1.0
- identical to the Overlay opacity parameter:
- 0.0 = no effect; the base clip appears normally.
- 1.0 = maximum effect.
- float opacity = 1.0
- string mode = "blend"
- string mode = "blend"
Mode Description Normal Blending Modes blend This is the default mode – ordinary transparent blending. Darkening Modes darken Use overlay only if the overlay is darker than the base image. multiply Darkens the image in proportion to Overlay lightness. cburn aka color burn. Darker than Multiply. lburn aka linear burn (darken) subtract aka Overlay mode="subtract" Lightening Modes lighten Use overlay only if the overlay is lighter than the base image. screen Lightens more strongly. cdodge aka color dodge. Brighter than the Screen blend mode. ldodge aka linear dodge or add (lighten) divide Lightens the image in inverse proportion to Overlay lightness. Contrast Modes overlay Uses a combination of the Screen blend mode on the lighter pixels, and the Multiply blend mode on the darker pixels. softlight Uses a combination of the Screen blend mode on the lighter pixels, and the Multiply blend mode on the darker pixels. hardlight Uses a combination of the Linear Dodge blend mode on the lighter pixels, and the Linear Burn blend mode on the darker pixels. pinlight Uses a combination of the Lighten blend mode on the lighter pixels, and the Darken blend mode on the darker pixels. vivid aka vivid light linear aka linear light. Uses a combination of the Linear Dodge blend mode on the lighter pixels, and the Linear Burn blend mode on the darker pixels. gextract aka Gimp GrainExtract, Subtract (darken) gmerge aka Gimp Grain Merge. Inversion Modes exclude Blending with white inverts the base color values; blending with black produces no change. Cancellation Modes absdiff Absolute difference: identical pixels are black, non-identical pixels are brighter in proportion to the difference. absdiff4 Absolute difference, exaggerated 400% to view small differences clearly. absdiff16 Absolute difference, exaggerated 1600% to view small differences clearly.
- int cmode = 2
- identical to the MaskTools U and V parameters:
- -255..0 : all the pixels of the plane will be set to -x (-128 = gray)
- 1 : the plane will not be processed. Content will be invalid.
- 2 : the plane of the first input clip will be copied (the default)
- 3 : the plane will be processed with the processing the filter is designed to do.
- 4 : the plane of the second input clip will be copied.
- (does not apply if sources are RGB)
- identical to the MaskTools U and V parameters:
- int cmode = 2
- bool showargs = false
- If true, shows the MaskTools expression being used. For Masktools geeks.
- bool showargs = false
External Links
- Photoshop Blend Modes Explained by Robert Thomas
- GIMP Concepts: Layer Modes
- Doom9 thread with some examples.