From: sr55 Date: Sat, 8 Oct 2011 15:13:45 +0000 (+0000) Subject: Interop: Add some models for upcoming x264 preset/tune/profile & audio encoder ffflac. X-Git-Tag: 0.9.6~197 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=81c761e31b95637026d2df9e0823e62dee082557;p=handbrake Interop: Add some models for upcoming x264 preset/tune/profile & audio encoder ffflac. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4271 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- diff --git a/win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeInterop.csproj b/win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeInterop.csproj index e1bb916c5..d877ac1bf 100644 --- a/win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeInterop.csproj +++ b/win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeInterop.csproj @@ -158,6 +158,9 @@ + + + diff --git a/win/CS/HandBrake.Interop/HandBrakeInterop/Model/Encoding/AudioEncoder.cs b/win/CS/HandBrake.Interop/HandBrakeInterop/Model/Encoding/AudioEncoder.cs index feddb1207..b5ab3b4bc 100644 --- a/win/CS/HandBrake.Interop/HandBrakeInterop/Model/Encoding/AudioEncoder.cs +++ b/win/CS/HandBrake.Interop/HandBrakeInterop/Model/Encoding/AudioEncoder.cs @@ -9,41 +9,47 @@ namespace HandBrake.Interop.Model.Encoding { - using System.ComponentModel.DataAnnotations; + using System.ComponentModel.DataAnnotations; - public enum AudioEncoder - { - [Display(Name = "AAC (faac)")] - Faac = 0, + /// + /// The audio encoder. + /// + public enum AudioEncoder + { + [Display(Name = "AAC (faac)")] + Faac = 0, - [Display(Name = "AAC (ffmpeg)")] - ffaac, + [Display(Name = "AAC (ffmpeg)")] + ffaac, - [Display(Name = "MP3 (lame)")] - Lame, + [Display(Name = "MP3 (lame)")] + Lame, - [Display(Name = "AC3 (ffmpeg)")] - Ac3, + [Display(Name = "AC3 (ffmpeg)")] + Ac3, - [Display(Name = "Passthrough")] - Passthrough, + [Display(Name = "Passthrough")] + Passthrough, - [Display(Name = "AC3 Passthru")] - Ac3Passthrough, + [Display(Name = "AC3 Passthru")] + Ac3Passthrough, - [Display(Name = "DTS Passthru")] - DtsPassthrough, + [Display(Name = "DTS Passthru")] + DtsPassthrough, - [Display(Name = "DTS-HD Passthru")] - DtsHDPassthrough, + [Display(Name = "DTS-HD Passthru")] + DtsHDPassthrough, - [Display(Name = "AAC Passthru")] - AacPassthru, + [Display(Name = "AAC Passthru")] + AacPassthru, - [Display(Name = "MP3 Passthru")] - Mp3Passthru, + [Display(Name = "MP3 Passthru")] + Mp3Passthru, - [Display(Name = "Vorbis (vorbis)")] - Vorbis - } + [Display(Name = "Vorbis (vorbis)")] + Vorbis, + + [Display(Name = "Flac (ffmpeg)")] + ffflac + } } diff --git a/win/CS/HandBrake.Interop/HandBrakeInterop/Model/Encoding/x264/x264Preset.cs b/win/CS/HandBrake.Interop/HandBrakeInterop/Model/Encoding/x264/x264Preset.cs new file mode 100644 index 000000000..45fbeb5d5 --- /dev/null +++ b/win/CS/HandBrake.Interop/HandBrakeInterop/Model/Encoding/x264/x264Preset.cs @@ -0,0 +1,49 @@ +// -------------------------------------------------------------------------------------------------------------------- +// +// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License. +// +// +// Defines the x264Preset type. +// +// -------------------------------------------------------------------------------------------------------------------- + +namespace HandBrake.Interop.Model.Encoding.x264 +{ + using System.ComponentModel.DataAnnotations; + + /// + /// The X264 Preset + /// + public enum x264Preset + { + [Display(Name = "Ultrafast")] + Ultrafast = 0, + + [Display(Name = "Super Fast")] + Superfast, + + [Display(Name = "Very Fast")] + VeryFast, + + [Display(Name = "Faster")] + Faster, + + [Display(Name = "Fast")] + Fast, + + [Display(Name = "Medium")] + Medium, + + [Display(Name = "Slow")] + Slow, + + [Display(Name = "Slower")] + Slower, + + [Display(Name = "Very Slow")] + VerySlow, + + [Display(Name = "Placebo")] + Placebo, + } +} diff --git a/win/CS/HandBrake.Interop/HandBrakeInterop/Model/Encoding/x264/x264Profile.cs b/win/CS/HandBrake.Interop/HandBrakeInterop/Model/Encoding/x264/x264Profile.cs new file mode 100644 index 000000000..837fbd28f --- /dev/null +++ b/win/CS/HandBrake.Interop/HandBrakeInterop/Model/Encoding/x264/x264Profile.cs @@ -0,0 +1,37 @@ +// -------------------------------------------------------------------------------------------------------------------- +// +// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License. +// +// +// The X264 Profile +// +// -------------------------------------------------------------------------------------------------------------------- + +namespace HandBrake.Interop.Model.Encoding.x264 +{ + using System.ComponentModel.DataAnnotations; + + /// + /// The X264 Profile + /// + public enum x264Profile + { + [Display(Name = "Baseline")] + Baseline = 0, + + [Display(Name = "Main")] + Main, + + [Display(Name = "High")] + High, + + [Display(Name = "High 10")] + High10, + + [Display(Name = "High 422")] + High422, + + [Display(Name = "High 444")] + High444, + } +} diff --git a/win/CS/HandBrake.Interop/HandBrakeInterop/Model/Encoding/x264/x264Tune.cs b/win/CS/HandBrake.Interop/HandBrakeInterop/Model/Encoding/x264/x264Tune.cs new file mode 100644 index 000000000..c667f699e --- /dev/null +++ b/win/CS/HandBrake.Interop/HandBrakeInterop/Model/Encoding/x264/x264Tune.cs @@ -0,0 +1,43 @@ +// -------------------------------------------------------------------------------------------------------------------- +// +// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License. +// +// +// Defines the x264Tune type. +// +// -------------------------------------------------------------------------------------------------------------------- + +namespace HandBrake.Interop.Model.Encoding.x264 +{ + using System.ComponentModel.DataAnnotations; + + /// + /// The X264 Tune MOdel + /// + public enum x264Tune + { + [Display(Name = "Film")] + Film = 0, + + [Display(Name = "Animation")] + Animation, + + [Display(Name = "Grain")] + grain, + + [Display(Name = "Still Image")] + stillimage, + + [Display(Name = "PSNR")] + psnr, + + [Display(Name = "SSIM")] + ssim, + + [Display(Name = "Fast Decode")] + fastdecode, + + [Display(Name = "Zero Latency")] + zerolatency, + } +}