FillBorders

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
m (add Deep_color_tools category)
(6 intermediate revisions by one user not shown)
Line 1: Line 1:
{{FilterCat4|External_filters|Plugins|Adjustment_filters|Borders and Cropping}}
+
{{FilterCat6|External_filters|Plugins|Plugins_x64|Adjustment_filters|Borders and Cropping|Deep_color_tools}}
 
{{Filter3
 
{{Filter3
|[http://github.com/dubhater dubhater] / Asd
+
|[http://github.com/dubhater dubhater] / [https://github.com/Asd-g asd-g]
|r1
+
|v1.0.0
|3=[http://s000.tinyupload.com/index.php?file_id=95893792311172045215 FillBorders]
+
|3=[https://github.com/Asd-g/AviSynth-FillBorders/releases AviSynth-FillBorders-v1.0.0.7z]
 
|4=Borders and Cropping
 
|4=Borders and Cropping
 
|5=[http://www.wtfpl.net/ WTFPL]
 
|5=[http://www.wtfpl.net/ WTFPL]
Line 10: Line 10:
  
 
== Description ==
 
== Description ==
This is a simple filter that fills the borders of a clip, without changing the clip's dimensions.
+
This is a simple filter that fills the borders of a clip, without changing the clip's dimensions. It has 3 border filling modes.
 
<br>
 
<br>
 
<br>
 
<br>
 
== Requirements ==
 
== Requirements ==
* [[AviSynth+]] (x86 / x64)
+
* [x86]: [[AviSynth+]] or [https://sourceforge.net/projects/avisynth2/ AviSynth 2.6]
* Supported color formats: 8...16-bit, [[Y8]], [[YV12]], [[YV16]], [[YV24]]
+
* [x64]: [[AviSynth+]]
 
+
* Supported color formats: [[Y8]], [[YV12]], [[YV16]], [[YV24]]
 +
**AviSynth+: all [[planar]] YUV/RGB (with or without alpha) color formats are supported, 8-16bits
 
<br>
 
<br>
 +
* [https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads Microsoft Visual C++ 2019 Redistributable Package (x86 / x64)]
 +
:<span style="color:red">***</span> <tt>vcredist_x86.exe</tt> required for <tt>FillBorders-x86</tt>
 +
:<span style="color:red">***</span> <tt>vcredist_x64.exe</tt> required for <tt>FillBorders-x64</tt>
 +
<br>
 +
 
== [[Script variables|Syntax and Parameters]] ==
 
== [[Script variables|Syntax and Parameters]] ==
 
:{{Template:FuncDef|FillBorders (clip, int "left", int "top", int "right", int "bottom", int "mode")}}
 
:{{Template:FuncDef|FillBorders (clip, int "left", int "top", int "right", int "bottom", int "mode")}}
 +
:{{Template:FuncDef|FillMargins (clip, int "left", int "top", int "right", int "bottom", int "mode")}}
 
<br>
 
<br>
 
::{{Par2| |clip| }}
 
::{{Par2| |clip| }}
:::Input clip.
+
:::Input clip.  It must have constant format and dimensions and it must be 8..16 bit.
  
 
::{{Par2|left|int|0}}
 
::{{Par2|left|int|0}}
Line 34: Line 41:
 
:::*1 : Fills the borders using the outermost line or column (aka "repeat").
 
:::*1 : Fills the borders using the outermost line or column (aka "repeat").
 
:::*2 : Fills the borders by mirroring.
 
:::*2 : Fills the borders by mirroring.
 
+
<br>
 +
:'''Note:''' <code>FillMargins()</code> is an alias for <code>FillBorders(mode=0)</code>
 
<br>
 
<br>
  
 
== Examples ==
 
== Examples ==
 
  [[AviSource]]("Blah.avi")
 
  [[AviSource]]("Blah.avi")
  FillBorders(left=5,top=7, right=2, bottom=0)
+
  FillBorders(left=5,top=7, right=2, bottom=0, mode=0)<br>
 +
#identical to: FillMargins(left=5,top=7, right=2, bottom=0)
 
<br>
 
<br>
 
== Changelog ==
 
== Changelog ==
 
  Version      Date            Changes<br>
 
  Version      Date            Changes<br>
  r1            2019/04/10      - first release
+
  v1.0.0        2020/05/17      - Move project to GitHub
<br>
+
                              - Add FillMargins function
== Archived Downloads ==
+
20190410      2019/04/10      - First release
{| class="wikitable" border="1"; width="600px"
+
                              - Port from VapourSynth plugin by Dubhater
|-
+
                              - Author: Asd<br>
!!width="100px"| Version
+
!!width="150px"| Download
+
!!width="150px"| Mirror
+
|-
+
!r1
+
|
+
|
+
|}
+
 
<br>
 
<br>
 +
 
== External Links ==
 
== External Links ==
*[https://github.com/dubhater/vapoursynth-fillborders GitHub] - VapourSynth version
+
*[https://github.com/Asd-g/AviSynth-FillBorders GitHub] - Source code repository
 +
*[https://github.com/dubhater/vapoursynth-fillborders GitHub] - Source code repository (VapourSynth version)
 
<br>
 
<br>
 
<br>
 
<br>
 
-----------------------------------------------
 
-----------------------------------------------
 
'''Back to [[External_filters#Borders_and_Cropping| External Filters]] &larr;'''
 
'''Back to [[External_filters#Borders_and_Cropping| External Filters]] &larr;'''

Revision as of 20:00, 25 June 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


*** 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.
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  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.


Note: FillMargins() is an alias for FillBorders(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

  • GitHub - Source code repository
  • GitHub - Source code repository (VapourSynth version)




Back to External Filters

Personal tools