C# Class HandBrake.ApplicationServices.Utilities.PlistPresetHandler

Plist Preset Converter
Mostrar archivo Open project: golgol7777/HandBrakeWinSource

Public Methods

Method Description
Export ( string path, HandBrake.ApplicationServices.Model.Preset preset ) : void

Export a MacGui style plist preset.

Import ( string filename ) : EncodeTask

Private Methods

Method Description
AddAudioItem ( XmlTextWriter xmlWriter, HandBrake.ApplicationServices.Model.Encoding.AudioTrack audioTrack ) : void

Add an audio track

AddBooleanElement ( XmlTextWriter xmlWriter, string keyName, bool value ) : void

Add a boolean element

AddEncodeElement ( XmlTextWriter xmlWriter, string keyName, string type, string value ) : void

Add an encode setting element

AddEncodeSettings ( XmlTextWriter xmlWriter, EncodeTask parsed, HandBrake.ApplicationServices.Model.Preset preset ) : void

Add the encode settings to the preset

AudioListArrayDict ( XmlTextWriter xmlWriter, EncodeTask parsed ) : void

Add an Audio Track Array Dict

WritePreset ( XmlTextWriter xmlWriter, EncodeTask parsed, HandBrake.ApplicationServices.Model.Preset preset ) : void

Write the Preset to a file

loadFile ( string filename ) : XmlNode

Method Details

Export() public static method

Export a MacGui style plist preset.
public static Export ( string path, HandBrake.ApplicationServices.Model.Preset preset ) : void
path string /// The path. ///
preset HandBrake.ApplicationServices.Model.Preset /// The preset. ///
return void

Import() public static method

public static Import ( string filename ) : EncodeTask
filename string
return HandBrake.ApplicationServices.Model.EncodeTask