C# Класс HandBrake.ApplicationServices.Services.Encode

Class which handles the CLI
Наследование: HandBrake.ApplicationServices.Services.Base.EncodeBase, IEncode
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Encode ( ) : System

Initializes a new instance of the Encode class.

SafelyStop ( ) : void

Attempt to Safely kill a DirectRun() CLI NOTE: This will not work with a MinGW CLI Note: http://www.cygwin.com/ml/cygwin/2006-03/msg00330.html

Start ( HandBrake.ApplicationServices.Model.QueueTask encodeQueueTask, bool enableLogging ) : void

Execute a HandBrakeCLI process.

Stop ( ) : void

Stop the Encode

Stop ( Exception exc ) : void

Kill the CLI process

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

Метод Описание
EncodeEncodeStarted ( object sender, EventArgs e ) : void

Encode Started

EncodeMonitor ( ) : void

Monitor the QueueTask

EncodeOnEncodeProgress ( object sender, int currentTask, int taskCount, float percentComplete, float currentFps, float avg, string timeRemaining ) : void

Displays the Encode status in the GUI

HbProcErrorDataReceived ( object sender, DataReceivedEventArgs e ) : void

Recieve the Standard Error information and process it

HbProcessExited ( object sender, EventArgs e ) : void

The HandBrakeCLI process has exited.

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

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

Initializes a new instance of the Encode class.
public Encode ( ) : System
Результат System

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

Attempt to Safely kill a DirectRun() CLI NOTE: This will not work with a MinGW CLI Note: http://www.cygwin.com/ml/cygwin/2006-03/msg00330.html
public SafelyStop ( ) : void
Результат void

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

Execute a HandBrakeCLI process.
public Start ( HandBrake.ApplicationServices.Model.QueueTask encodeQueueTask, bool enableLogging ) : void
encodeQueueTask HandBrake.ApplicationServices.Model.QueueTask /// The encodeQueueTask. ///
enableLogging bool /// Enable Logging. When Disabled we onlt parse Standard Ouput for progress info. Standard Error log data is ignored. ///
Результат void

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

Stop the Encode
public Stop ( ) : void
Результат void

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

Kill the CLI process
public Stop ( Exception exc ) : void
exc System.Exception /// The Exception that has occured. /// This will get bubbled up through the EncodeCompletedEventArgs ///
Результат void