FillBorders
From Avisynth wiki
(Difference between revisions)
m (→Requirements) |
m (→Changelog) |
||
Line 58: | Line 58: | ||
- Author: Asd<br> | - Author: Asd<br> | ||
<br> | <br> | ||
− | + | ||
== External Links == | == External Links == | ||
*[https://github.com/Asd-g/AviSynth-FillBorders GitHub] - Source code repository | *[https://github.com/Asd-g/AviSynth-FillBorders GitHub] - Source code repository |
Revision as of 16:22, 23 May 2020
Abstract | |
---|---|
Author | dubhater / asd-g |
Version | v1.0.0 |
Download | AviSynth-FillBorders-v1.0.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 3 border filling modes.
Requirements
- [x86]: AviSynth+ or AviSynth 2.6
- [x64]: AviSynth+
- Supported color formats: Y8, YV12, YV16, YV24
- AviSynth+: all planar YUV/RGB (with or without alpha) color formats are supported, 8-16bits
- *** 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")
- FillMargins (clip, int "left", int "top", int "right", int "bottom", int "mode")
- clip =
- Input clip. It must have constant format and dimensions and it must be 8..16 bit.
- 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
- 0 : 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 : Fills the borders using the outermost line or column (aka "repeat").
- 2 : Fills the borders by mirroring.
- int mode = 0
- 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.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 ←