Grid

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with " {{FilterCat4|External_filters|Plugins|<!-- category -->TODO|<!-- category -->TODO}} {{Filter3 |1=<!-- author -->[http://www.avisynth.nl/users/vcmohan/ V.C.Mohan] |2=<!-- ver...")
 
(Add archived downloads and mention manyPlus plugin)
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
+
{{FilterCat4|External_filters|Plugins|Other_filters|Debugging/Diagnostic_filters}}
{{FilterCat4|External_filters|Plugins|<!-- category -->TODO|<!-- category -->TODO}}
+
 
+
 
{{Filter3
 
{{Filter3
|1=<!-- author -->[http://www.avisynth.nl/users/vcmohan/ V.C.Mohan]
+
|1={{Author/vcmohan}}
|2=<!-- version -->1.0.0.0.0
+
|2=25 June 2020
|3=<!-- download 2.5.8 version URL -->2.5.8 version[http://www.avisynth.nl/users/vcmohan/Grid/Grid.zip Grid] 2.6.0 alpha5 version URL -->[http://www.avisynth.nl/users/vcmohan/Grid/Grid_2_6.zip Grid]
+
|3=AviSynth 2.6 [x86]: [http://www.avisynth.nl/users/vcmohan/Grid/Grid_2_6.zip Grid_2_6.zip]
|4=<!-- category -->External filters
+
|4=External filters
|5=<!-- license -->[http://www.gnu.org/licenses/gpl-2.0.txt GPLv2]
+
|5=[https://www.gnu.org/licenses/gpl-2.0.txt GPLv2]
|6=<!-- discussion URL -->[http://forum.doom9.org/showthread.php?p=617127#post617127 Announced Grid plugin]}}
+
|6=[https://forum.doom9.org/showthread.php?p=617127#post617127 Doom9 Forum]}}
  
<br>
 
 
== Description ==
 
== Description ==
 
<!-- a one-sentence description -->
 
<!-- a one-sentence description -->
As certain filters require specification of window or points on a frame with x and y coordinates, this plugin overlays a grid on image to enable correct values to be specified and a full description is at  [http://www.avisynth.nl/users/vcmohan/Grid/Grid.html click me].
+
Grid lines are drawn as dotted lines, while those specified as bold are drawn as dashed lines and very bold ones are drawn as full lines. [http://www.avisynth.nl/users/vcmohan/Grid/Grid.html Full Description]
 +
 
 +
<span style="color:red">'''NOTE:''' For AviSynth+ see [[manyPlus]] for an updated version of Grid.</span>
 
<br>
 
<br>
 
<br>
 
<br>
 
== Requirements ==
 
== Requirements ==
* <!-- Avisynth version -->AviSynth 2.5.8 or [http://sourceforge.net/projects/avisynth2/files/AviSynth_Alpha_Releases/ 2.6.0 Alpha 5 or greater]
+
* [x86] [https://sourceforge.net/projects/avisynth2/ AviSynth 2.6]
* <!-- source video: progressive
+
* Supported color formats: [[RGB24]], [[RGB32]], [[YUY2]], [[Y8]], [[YV12]], [[YV16]], [[YV24]]
* <!-- color formats -->Supported color formats: [[RGB32]], [[RGB24]],[[YUY2]], [[YV12]], <span style="color:red">*</span>[[YV16]], <span style="color:red">*</span>[[YV24]], <span style="color:red">*</span>[[YV411]], <span style="color:red">*</span>[[Y8]]
+
: <span style="color:red">*</span> Not available in AviSynth 2.5.8.
+
* <!-- CPU/GPU -->
+
* <!-- binaries -->
+
* <!-- dependent plugins -->
+
 
<br>
 
<br>
"c[sf]i[ef]i[lineint]i[bold]i[vbold]i[color]i[bcolor]i[vbcolor]i[grid]b[axis]b"
+
 
 
== [[Script variables|Syntax and Parameters]] ==
 
== [[Script variables|Syntax and Parameters]] ==
:{{Template:FuncDef|<!-- function name -->Grid(''clip'', ''<!-- par 1 type -->int'' "<!-- par 1 name -->sf", ''<!-- par 2 type -->int'' "<!-- par 2 name -->ef", ''<!-- par 3 type -->int'' "<!-- par 3 name -->lineint ",''<!-- par 4 type -->int'' <!-- par 4 name -->bold",''<!-- par 5 type -->int'' <!-- par 5 name -->vbold",''<!-- par 6 type -->int'' <!-- par 6 name -->color",''<!-- par 7 type -->int'' <!-- par 7 name -->bcolor",''<!-- par 8 type -->int'' <!-- par 8 name -->vbcolor",''<!-- par 9 type -->bool'' <!-- par 9 name -->grid",''<!-- par 10 type -->bool'' <!-- par 10 name -->axis")}}
+
:{{Template:FuncDef| Grid (clip, int "sf", int "ef", int "lineint", int "bold", int "vbold", int "color", int "bcolor", int "vbcolor", bool "grid", bool "axis")}}
 
<br>
 
<br>
 
::{{Par2| |clip| }}
 
::{{Par2| |clip| }}
:::Input clip.     
+
::: Input clip
 
<br>
 
<br>
::{{Par2|<!-- par 1 type -->int|<!-- par 1 name -->sf|<!-- par 1 default value -->0}}
+
::{{Par2|sf|int|0}}
:::<!-- par 1 description -->starting frame number on which grid is to be displayed .
+
::: Grid display to start from frame number
 
<br>
 
<br>
::{{Par2|<!-- par 2 type -->int|<!-- par 2 name -->ef|<!-- par 2 default value -->last frame of clip}}
+
::{{Par2|ef|int|last frame of clip}}
:::<!-- par 2 description -->ending frame number on which grid is to be displayed
+
::: Grid display to end on frame number
 
<br>
 
<br>
::{{Par2|<!-- par 3 type -->int|<!-- par 3 name -->lineint|<!-- par 3 default value -->10}}
+
::{{Par2|lineint|int|10}}
:::<!-- par 3 description -->grid line interval in pixels. 4 to 1/4th of frame smaller dimension .
+
::: Grid line (dotted) interval in pixels
 
<br>
 
<br>
::{{Par2|<!-- par 4 type -->int|<!-- par 4 name -->bold|<!-- par 4 default value -->5}}
+
::{{Par2|bold|int|5}}
:::<!-- par 4 description -->every bold numbered grid line to appear bold . .
+
 
<br>
 
<br>
::{{Par2|<!-- par 5 type -->int|<!-- par 5 name -->vbold|<!-- par 5 default value -->2}}
+
::{{Par2|vbold|int|2}}
:::<!-- par 5 description -->every vbold numbered bold line to appear very bold .
+
 
<br>
 
<br>
::{{Par2|<!-- par 6 type -->int|<!-- par 6 name -->color|<!-- par 6 default value -->0}}
+
::{{Par2|color|int|0}}
:::<!-- par 6 description -->grid line color in RRGGBB format .
+
::: Color of grid line
 
<br>
 
<br>
::{{Par2|<!-- par 7 type -->int|<!-- par 7 name -->bcolor|<!-- par 7 default value -->color}}
+
::{{Par2|bcolor|int|color}}
:::<!-- par 7 description -->every bold grid line to appear in this color RRGGBB format .
+
::: Color of bold line
 
<br>
 
<br>
::{{Par2|<!-- par 8 type -->int|<!-- par 8 name -->vbold|<!-- par 8 default value -->color}}
+
::{{Par2|vbcolor|int|color}}
:::<!-- par 8 description -->every vbold line to appear with this color, RRGGBB format .
+
::: Color of very bold line
 
<br>
 
<br>
::{{Par2|<!-- par 9 type -->bool|<!-- par 9 name -->grid|<!-- par 9 default value -->true}}
+
::{{Par2|grid|bool|true}}
:::<!-- par 9 description -->are grid lines to be displayed? both grid and axis should not be false .
+
::: Whether grid lines to be displayed
 
<br>
 
<br>
::{{Par2|<!-- par 10 type -->int|<!-- par 10 name -->axis|<!-- par 10 default value -->false}}
+
::{{Par2|axis|bool|false}}
:::<!-- par 10 description -->Whether axis rulers to be displayed? Both axis and grid should not be false .
+
::: Whether axis lines to be displayed
 +
 
 
<br>
 
<br>
 +
== Examples ==
  
 +
<!-- example code block: 1st char in each line = space -->
  
 
+
Grid(last,24,200,25,4,5,$ff0000,$7f0000,$5f0000,true,false)
 +
:For grid lines and very bold lines only (vbold=1 ensures it)
 +
Grid(last,24,200,10,10,1)
 +
Grid(last,24,200,color=255)
 +
:Fbold lines will not be displayed as large value ensures out of frame
 +
Grid(last,24,200,vbold=7000)
 +
Grid(last,24,200,grid=false,axis=true)
  
 
<br>
 
<br>
 +
== Archived Downloads ==
 +
{| class="wikitable" border="1"; width="600px"
 +
|-
 +
!!width="100px"| Version
 +
!!width="150px"| Download
 +
!!width="150px"| Mirror
 +
|-
 +
!25 June 2020
 +
|AviSynth 2.6 [x86]: [http://www.avisynth.nl/users/vcmohan/Grid/Grid_2_6.zip Grid_2_6.zip]
 +
|
 +
|-
 +
!21 Mar 2017
 +
|AviSynth+ [x86]: [http://www.avisynth.nl/users/vcmohan/Grid/Grid32.7z Grid32.7z]<br>AviSynth+ [x64]: [http://www.avisynth.nl/users/vcmohan/Grid/Grid64.7z Grid64.7z]
 +
|[https://web.archive.org/web/20170701061501if_/http://www.avisynth.nl/users/vcmohan/Grid/Grid32.7z Grid32.7z]<br>[https://web.archive.org/web/20170624075319if_/http://www.avisynth.nl/users/vcmohan/Grid/Grid64.7z Grid64.7z]
 +
|}
 +
'''NOTE:''' For AviSynth+ see [[manyPlus]] for an updated version of Grid.
 
<br>
 
<br>
 
== Examples ==
 
<!-- example code block: 1st char in each line = space -->
 
## This is some example code to blur  an image.
 
imagereader("C:\..........jpg", end = 10)
 
converttoyv16()
 
# Grid rulers display
 
Grid( color = $ff, bcolor = $ff00, vbcolor = $ff0000, lineint = 10)
 
# Axis lines in color
 
Grid(grid = false, axis = true, color=$ff)
 
# grid lines in black
 
Grid()
 
 
<br>
 
<br>
 
-----------------------------------------------
 
-----------------------------------------------
'''Back to [[External_filters|External Filters]] &larr;'''
+
'''Back to [[External_filters#Debugging.2FDiagnostic_Filters|External Filters]] &larr;'''

Latest revision as of 08:22, 15 November 2020

Abstract
Author V. C. Mohan
Version 25 June 2020
Download AviSynth 2.6 [x86]: Grid_2_6.zip
Category External filters
License GPLv2
Discussion Doom9 Forum

Contents

[edit] Description

Grid lines are drawn as dotted lines, while those specified as bold are drawn as dashed lines and very bold ones are drawn as full lines. Full Description

NOTE: For AviSynth+ see manyPlus for an updated version of Grid.

[edit] Requirements


[edit] Syntax and Parameters

Grid (clip, int "sf", int "ef", int "lineint", int "bold", int "vbold", int "color", int "bcolor", int "vbcolor", bool "grid", bool "axis")


clip   =
Input clip


int  sf = 0
Grid display to start from frame number


int  ef = last frame of clip
Grid display to end on frame number


int  lineint = 10
Grid line (dotted) interval in pixels


int  bold = 5


int  vbold = 2


int  color = 0
Color of grid line


int  bcolor = color
Color of bold line


int  vbcolor = color
Color of very bold line


bool  grid = true
Whether grid lines to be displayed


bool  axis = false
Whether axis lines to be displayed


[edit] Examples

Grid(last,24,200,25,4,5,$ff0000,$7f0000,$5f0000,true,false)
For grid lines and very bold lines only (vbold=1 ensures it)
Grid(last,24,200,10,10,1)
Grid(last,24,200,color=255)
Fbold lines will not be displayed as large value ensures out of frame
Grid(last,24,200,vbold=7000)
Grid(last,24,200,grid=false,axis=true)


[edit] Archived Downloads

Version Download Mirror
25 June 2020 AviSynth 2.6 [x86]: Grid_2_6.zip
21 Mar 2017 AviSynth+ [x86]: Grid32.7z
AviSynth+ [x64]: Grid64.7z
Grid32.7z
Grid64.7z

NOTE: For AviSynth+ see manyPlus for an updated version of Grid.


Back to External Filters

Personal tools