Skip to content

dubhater/vapoursynth-fillborders

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

This is a simple filter that fills the borders of a clip, without changing the clip's dimensions.

Usage

fb.FillBorders(clip clip[, int left=0, int right=0, int top=0, int bottom=0, string mode="repeat", int interlaced=0])
left, right, top, bottom
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.
mode
"repeat"
Fills the borders using the outermost line or column.
"mirror"
Fills the borders by mirroring.
"fillmargins"
Fills the borders exactly like the Avisynth filter FillMargins, version 1.0.2.0. This mode is similar to "repeat", except that each pixel at the top and bottom borders is filled with a weighted average of its three neighbours from the previous line.
"fixborders"
A direction "aware" modification of FillMargins. It also works on all four sides.
"interlaced"
Fills the top and bottom borders only with pixels taken from the same field. Possible values are 1 (always on), 0 (always off), and -1 (uses the _FieldBased frame property to decide if interlaced processing should be used or not).

Compilation

./autogen.sh
./configure
make

or

meson build
ninja -C build

License

The license is WTFPL.