FillBorders
From Avisynth wiki
Abstract | |
---|---|
Author | dubhater / Asd-g |
Version | v1.3.0 |
Download | FillBorders-1.3.0.7z |
Category | Borders and Cropping |
License | WTFPL |
Discussion |
Contents |
Description
This is a simple filter that fills the borders of a clip, without changing the clip's dimensions. It has 6 border filling modes.
Requirements
- [x86]: AviSynth+ or AviSynth 2.6
- [x64]: AviSynth+
- Supported color formats: Y8, YV12, YV16, YV24
- AviSynth+: all planar formats (8/10/12/14/16/32-bit, Y, YUV(A), and RGB(A) with or without alpha) are supported.
- *** vcredist_x86.exe required for FillBorders-x86
- *** vcredist_x64.exe required for FillBorders-x64
Syntax and Parameters
- FillBorders (clip, int "left", int "top", int "right", int "bottom", int "mode", int "y", int "u", int "v")
- FillMargins (clip, int "left", int "top", int "right", int "bottom", int "y", int "u", int "v")
- clip =
- A clip to process. All planar formats are supported.
- clip =
- int left = 0
- int top = 0
- int right = 0
- int bottom = 0
- Number of pixels to fill on each side. These can be any non-negative numbers, within reason. If they are all 0, the input clip is simply passed through.
- int left = 0
- int mode = 0
- Mode (FillBorders only):
- 0 : "fillmargins"
Fills the borders exactly like the AviSynth filter FillMargins, version 1.0.2.0. This mode is similar to mode 1, except that each pixel at the top and bottom borders is filled with a weighted average of its three neighbours from the previous line. - 1 : "repeat"
Fills the borders using the outermost line or column (aka "repeat"). - 2 : "mirror"
Fills the borders by mirroring. - 3 : "reflect"
Fills the borders by reflecting (whole sample symmetric). - 4 : "wrap"
Fills the borders by wrapping. - 5 : "fade"
Fill the borders to constant value. - 6 : "fixborders"
A direction "aware" modification of FillMargins. It also works on all four sides.
- 0 : "fillmargins"
- Mode (FillBorders only):
- int mode = 0
- int y = 3
- int u = 3
- int v = 3
- Planes to process.
- 1 : Return garbage.
- 2 : Copy plane.
- 3 : Process plane. Always process planes when the clip is RGB.
- Planes to process.
- int y = 3
- Note:
FillMargins()
is an alias forFillBorders(mode=0)
Examples
AviSource("Blah.avi") FillBorders(left=5, top=7, right=2, bottom=0, mode=0)
#identical to: FillMargins(left=5, top=7, right=2, bottom=0)
Changelog
Version Date Changes
v1.3.0 2021/06/25 - Added mode 6 (fixborders) (from vs FillBorders). v1.2.1 2021/02/18 - Not allowed clips with _FieldBased > 0. v1.2.0 2021/02/17 - Added additional modes (from ffmpeg): 3 (reflect); 4 (wrap); 5 (fade). v1.1.0 2020/08/11 - Added support for float. - Added y, u, v, parameters. - AviSynth+: self-registers as MT_NICE_FILTER. - Removed parameter mode from FillMargins.
v1.0.0 2020/05/17 - Move project to GitHub - Add FillMargins function
20190410 2019/04/10 - First release - Port from VapourSynth plugin by Dubhater - Author: Asd
External Links
Back to External Filters ←