Click or drag to resize

ButterflowWrapper Class

A butterflow wrapper. Provides interaction with the butterflow executable.
Inheritance Hierarchy

Namespace:  butterflow_ui
Assembly:  butterflow-ui (in butterflow-ui.exe) Version: 1.1.1.5749 (1.0.0.0)
Syntax
C#
public class ButterflowWrapper : PropertyChangedAlerter

The ButterflowWrapper type exposes the following members.

Constructors
  NameDescription
Public methodButterflowWrapper
Initializes a new instance of the ButterflowWrapper class
Top
Properties
  NameDescription
Public propertyConsoleOutput
Gets the console output from butterflow.
Public propertyDevices
Gets or sets the list of devices available for butterflow processing.
Public propertyIsRunning
Gets a value indicating whether butterflow is currently running.
Public propertyProgressPercentage
Gets the progress percentage as reported by butterflow.
Top
Methods
  NameDescription
Public methodAddConstantCallProperty
Adds a property that will always be called when any property is updated..
(Inherited from PropertyChangedAlerter.)
Public methodCancel
Kills the running instance of butterflow, cancelling its current operation.
Public methodGetDevices
Gets the devices available for butterflow processing.
Protected methodOnAllPropertiesChanged
Executes when all properties are changed and should be updated.
(Inherited from PropertyChangedAlerter.)
Private methodOnButterflowExited
Executes the butterflow exited action.
Private methodOnParsedConsoleOutputRecieved
Executes the parsed console output recieved action.
Protected methodCode exampleOnPropertyChanged
Executes the property changed action. This alerts subscribers to its change in value.
(Inherited from PropertyChangedAlerter.)
Private methodParseConsoleOutput
Parses console output and attempts to find known values. If a known value is found, the event is triggered.
Public methodProbe
Probes a video file.
Private methodProcess_Exited
Event handler. Called by Process for exited events.
Private methodProcess_OutputDataReceived
Event handler. Called by Process for output data received events.
Public methodProcessQueue
Process the queue of butterflow arguments.
Public methodRun(OptionsConfiguration)
Runs butterflow with the given optionsConfiguration by adding it to the queue.
Private methodRun(String)
Runs butterflow with the given arguments by adding it to the queue.
Top
Events
  NameDescription
Public eventButterflowExited
Event queue for all listeners interested in ButterflowExited events.
Public eventParsedConsoleOutputRecieved
Event queue for all listeners interested in ParsedConsoleOutputRecieved events.
Public eventPropertyChanged
Occurs when a property value changes.
(Inherited from PropertyChangedAlerter.)
Top
Fields
  NameDescription
Private fieldconsoleOutput
The console output from butterflow.
Private fieldexecutablePath
Full pathname of the butterflow executable file.
Private fieldinterpreter
An input interpreter used for converting string values to numeric values.
Private fieldisRunning
True if butterflow is running, false if not.
Private fieldprogressPercentage
The progress percentage as reported by butterflow.
Private fieldStatic memberREGEX_DEVICE
The RegEx string for determining available processing devices in butterflow..
Private fieldStatic memberREGEX_PROGRESS
The RegEx string for detecting progress made when rendering a video.
Private fieldStatic memberREGEX_PROGRESS_ALT
An alternative RegEx string for detecting progress made when rendering a video.
Private fieldStatic memberREGEX_RATE
The RegEx string for matching the probed playback rate.
Private fieldStatic memberREGEX_RESOLUTION
The RegEx string for matching probed resolution.
Private fieldrunningProcess
The running butterflow process.
Private fieldrunQueue
Queue of butterflow commands to run.
Top
See Also