C# Class Business.AviSynthScriptBuilder

Facilitates the creation of AviSynth scripts.
Afficher le fichier Open project: mysteryx93/NaturalGroundingPlayer Class Usage Examples

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
GetShortPath ( string path ) : string
GetShortPathName ( [ path, [ shortPath, int shortPathLength ) : int
IsASCII ( string value ) : bool

Method Details

AddPluginPath() public méthode

Adds a line containing the plugin path. Must be called before loading any other plugin.
public AddPluginPath ( ) : void
Résultat void

AppendLine() public méthode

Appends a line break to the script.
public AppendLine ( ) : void
Résultat void

AppendLine() public méthode

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.
Résultat void

AppendLine() public méthode

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.
Résultat void

AviSynthScriptBuilder() public méthode

public AviSynthScriptBuilder ( ) : System
Résultat System

AviSynthScriptBuilder() public méthode

public AviSynthScriptBuilder ( string script ) : System
script string
Résultat System

Cleanup() public méthode

Moves all LoadPlugin and Import commands to the beginning to make the script more readable.
public Cleanup ( ) : void
Résultat void

GetAsciiPath() public méthode

public GetAsciiPath ( string path ) : string
path string
Résultat string

LoadPluginAvsi() public méthode

public LoadPluginAvsi ( string fileName ) : void
fileName string
Résultat void

LoadPluginDll() public méthode

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
Résultat void

OpenAvi() public méthode

public OpenAvi ( string fileName, bool audio ) : void
fileName string
audio bool
Résultat void

OpenDirect() public méthode

public OpenDirect ( string fileName, string cacheFile, bool audio, int threads ) : void
fileName string
cacheFile string
audio bool
threads int
Résultat void

RemoveMT() public méthode

Removes MultiThreading commands from script.
public RemoveMT ( ) : void
Résultat void

Replace() public méthode

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.
Résultat void

WriteToFile() public méthode

public WriteToFile ( string fileName ) : void
fileName string
Résultat void