C# Класс Business.AviSynthScriptBuilder

Facilitates the creation of AviSynth scripts.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AddPluginPath ( ) : void

Adds a line containing the plugin path. Must be called before loading any other plugin.

AppendLine ( ) : void

Appends a line break to the script.

AppendLine ( IFormatProvider culture, string value ) : void

Appends a line to the script following specified format. Line break is automatically added.

AppendLine ( string value ) : void

Appends a line to the script following specified format. Line break is automatically added.

AviSynthScriptBuilder ( ) : System
AviSynthScriptBuilder ( string script ) : System
Cleanup ( ) : void

Moves all LoadPlugin and Import commands to the beginning to make the script more readable.

GetAsciiPath ( string path ) : string
LoadPluginAvsi ( string fileName ) : void
LoadPluginDll ( string fileName ) : void

If script ends with DitherPost(), replace it with Dither_out() when rawOutput is true. If rawOutput is false, it does the reverse.

OpenAvi ( string fileName, bool audio ) : void
OpenDirect ( string fileName, string cacheFile, bool audio, int threads ) : void
RemoveMT ( ) : void

Removes MultiThreading commands from script.

Replace ( string oldValue, string newValue ) : void

Replaces all instances of oldValue with newValue.

WriteToFile ( string fileName ) : void

Приватные методы

Метод Описание
GetShortPath ( string path ) : string
GetShortPathName ( [ path, [ shortPath, int shortPathLength ) : int
IsASCII ( string value ) : bool

Описание методов

AddPluginPath() публичный Метод

Adds a line containing the plugin path. Must be called before loading any other plugin.
public AddPluginPath ( ) : void
Результат void

AppendLine() публичный Метод

Appends a line break to the script.
public AppendLine ( ) : void
Результат void

AppendLine() публичный Метод

Appends a line to the script following specified format. Line break is automatically added.
public AppendLine ( IFormatProvider culture, string value ) : void
culture IFormatProvider The culture to use while formatting.
value string The value or format to append.
Результат void

AppendLine() публичный Метод

Appends a line to the script following specified format. Line break is automatically added.
public AppendLine ( string value ) : void
value string The value or format to append.
Результат void

AviSynthScriptBuilder() публичный Метод

public AviSynthScriptBuilder ( ) : System
Результат System

AviSynthScriptBuilder() публичный Метод

public AviSynthScriptBuilder ( string script ) : System
script string
Результат System

Cleanup() публичный Метод

Moves all LoadPlugin and Import commands to the beginning to make the script more readable.
public Cleanup ( ) : void
Результат void

GetAsciiPath() публичный Метод

public GetAsciiPath ( string path ) : string
path string
Результат string

LoadPluginAvsi() публичный Метод

public LoadPluginAvsi ( string fileName ) : void
fileName string
Результат void

LoadPluginDll() публичный Метод

If script ends with DitherPost(), replace it with Dither_out() when rawOutput is true. If rawOutput is false, it does the reverse.
public LoadPluginDll ( string fileName ) : void
fileName string
Результат void

OpenAvi() публичный Метод

public OpenAvi ( string fileName, bool audio ) : void
fileName string
audio bool
Результат void

OpenDirect() публичный Метод

public OpenDirect ( string fileName, string cacheFile, bool audio, int threads ) : void
fileName string
cacheFile string
audio bool
threads int
Результат void

RemoveMT() публичный Метод

Removes MultiThreading commands from script.
public RemoveMT ( ) : void
Результат void

Replace() публичный Метод

Replaces all instances of oldValue with newValue.
public Replace ( string oldValue, string newValue ) : void
oldValue string The string to be replaced.
newValue string The string to replace with.
Результат void

WriteToFile() публичный Метод

public WriteToFile ( string fileName ) : void
fileName string
Результат void