
0 – no effect: base_clip is returned unchanged.The result is simply the average of base_clip and overlay_clip. use_chroma must be true level and threshold are not used. the same luminance as base_clip but with the colors of overlay_clip. This will generally make the output darker. use_chroma must be true.īase_clip multiplied by overlay_clip. The same as "lighten", but it is performed only when overlay_clip is DARKER than base_clip. use_chroma must be true.Ĭopy overlay_clip over base_clip in areas where overlay_clip is darker by threshold. Performs the same operation as add, but only when overlay_clip is BRIGHTER than base_clip. If both clips are equal and level=128, a flat gray field is returned compare to Subtract.Ĭopy overlay_clip over base_clip in areas where overlay_clip is lighter by threshold. The same as add, but overlay_clip is inverted before adding. No alpha: base = base + (overlay - base) * opacityīase_clip minus overlay_clip.Alpha-aware: base = base + (overlay - base) * opacity * alpha / max_range d.alpha=255 d → only overlay_clip visible.alpha=128 d → base_clip and overlay_clip equally blended.The difference between base_clip and overlay_clip is multiplied with alpha and added to base_clip. Overlay_clip will be copied on top of the original, in proportion to level, and subject to the alpha channel. The merge operation to be performed, which can be one of the following: If RGB32 or other alpha-aware color space, the alpha channel is used as a mask.ĪVS+Non-alpha plane YUV/planar RGB color spaces act as having a fully transparent alpha channel (like the former YUY2 only working mode) The underlying clip, which determines the size and all other video and audio properties of the result.ĪVS+ supports all color spaces, except YV411.

Layer( clip base_clip, clip overlay_clip ) Layer has "placement" parameter for proper mask positioning over chroma. Lighten and darken is a bit different in Overlay. Overlay "blend" is Layer "add", Overlay "add" is different. Overlay accepts mask clip, Layer would use existing A plane. Note that some modes can be similar to Overlay, but the two filters are still different. Now Layer accepts practically all formats (also RGB24/48 since v3.5). Filter "Overlay" was used primarily for YUV. Layer (aka overlay, blend, merge) two clips of possibly different sizes, but with the same color format.įor pixel-wise transparency information, the alpha channel of an RGBA overlay_clip is used as a mask.ĪVS+ Before Avisynth+ 3.4.0 Layer was working only for RGB32 and YUY2.
