diff options
author | sr55 <[email protected]> | 2011-10-08 15:13:45 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2011-10-08 15:13:45 +0000 |
commit | 81c761e31b95637026d2df9e0823e62dee082557 (patch) | |
tree | c4d1d6b974e0207ebac19176a1a878632f1e92b2 /win/CS | |
parent | 54e0ebd757caf1fb4912a866b5bf61a6a86767e6 (diff) |
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
Diffstat (limited to 'win/CS')
5 files changed, 164 insertions, 26 deletions
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 @@ <Compile Include="Model\Encoding\OutputFormat.cs" />
<Compile Include="Model\Encoding\VideoEncoder.cs" />
<Compile Include="Model\Encoding\VideoEncodeRateType.cs" />
+ <Compile Include="Model\Encoding\x264\x264Preset.cs" />
+ <Compile Include="Model\Encoding\x264\x264Profile.cs" />
+ <Compile Include="Model\Encoding\x264\x264Tune.cs" />
<Compile Include="Model\Limits.cs" />
<Compile Include="Model\Size.cs" />
<Compile Include="Model\SourceSubtitle.cs" />
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,
+ /// <summary>
+ /// The audio encoder.
+ /// </summary>
+ 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 @@ +// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="x264Preset.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// Defines the x264Preset type.
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
+
+namespace HandBrake.Interop.Model.Encoding.x264
+{
+ using System.ComponentModel.DataAnnotations;
+
+ /// <summary>
+ /// The X264 Preset
+ /// </summary>
+ 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 @@ +// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="x264Profile.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// The X264 Profile
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
+
+namespace HandBrake.Interop.Model.Encoding.x264
+{
+ using System.ComponentModel.DataAnnotations;
+
+ /// <summary>
+ /// The X264 Profile
+ /// </summary>
+ 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 @@ +// --------------------------------------------------------------------------------------------------------------------
+// <copyright file="x264Tune.cs" company="HandBrake Project (http://handbrake.fr)">
+// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
+// </copyright>
+// <summary>
+// Defines the x264Tune type.
+// </summary>
+// --------------------------------------------------------------------------------------------------------------------
+
+namespace HandBrake.Interop.Model.Encoding.x264
+{
+ using System.ComponentModel.DataAnnotations;
+
+ /// <summary>
+ /// The X264 Tune MOdel
+ /// </summary>
+ 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,
+ }
+}
|