User:Gzarkadas/Experiments/FilterDefinition2
From Avisynth
Contents |
[edit] A filter definition template (revisited)
[edit] Template code
| 1 line | 2 lines | 3 lines | 4 lines | 5 lines |
| {{{1}}} | {{{1}}} {{{2}}} | {{{1}}} {{{2}}} | {{{1}}} {{{2}}} | {{{1}}} {{{2}}} |
[edit] Usage with multiline definitions (a simple example)
first line
second line
[edit] Usage with multiline definitions (another simple example)
first line[, ... ], [bool audio = true],
second line
[edit] Usage with multiline definitions (a more complex example)
first line
second line
third line
fourth line
[edit] Usage with multiline definitions (AviSource definition)
AviSource(string filename [, ... ], [bool audio = true], [string pixel_type = YV12], [string fourCC])
OpenDMLSource(string filename [, ... ], [bool audio = true], [string pixel_type = YV12], [string fourCC])
AviFileSource(string filename [, ... ], [bool audio = true], [string pixel_type = YV12], [string fourCC])
WavSource(string filename [, ... ])
[edit] Discussion
Apart the "=" character issue (cf. [1]), all other conventions used in Filter and function definitions for arguments can be passed in directly to a template. Thus, to make things simple, the function definition templates have been chosen to be as simple as possible and equal signs to be replaced by "& # 61 ;" (remove spaces inside) HTML character references.

