]> granicus.if.org Git - handbrake/commitdiff
Interop: Add some models for upcoming x264 preset/tune/profile & audio encoder ffflac.
authorsr55 <sr55.hb@outlook.com>
Sat, 8 Oct 2011 15:13:45 +0000 (15:13 +0000)
committersr55 <sr55.hb@outlook.com>
Sat, 8 Oct 2011 15:13:45 +0000 (15:13 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4271 b64f7644-9d1e-0410-96f1-a4d463321fa5

win/CS/HandBrake.Interop/HandBrakeInterop/HandBrakeInterop.csproj
win/CS/HandBrake.Interop/HandBrakeInterop/Model/Encoding/AudioEncoder.cs
win/CS/HandBrake.Interop/HandBrakeInterop/Model/Encoding/x264/x264Preset.cs [new file with mode: 0644]
win/CS/HandBrake.Interop/HandBrakeInterop/Model/Encoding/x264/x264Profile.cs [new file with mode: 0644]
win/CS/HandBrake.Interop/HandBrakeInterop/Model/Encoding/x264/x264Tune.cs [new file with mode: 0644]

index e1bb916c512eeffe24f400dbd9055206910fa7b2..d877ac1bf696b50be005fec77ee71af616ec34aa 100644 (file)
     <Compile Include="Model\Encoding\OutputFormat.cs" />\r
     <Compile Include="Model\Encoding\VideoEncoder.cs" />\r
     <Compile Include="Model\Encoding\VideoEncodeRateType.cs" />\r
+    <Compile Include="Model\Encoding\x264\x264Preset.cs" />\r
+    <Compile Include="Model\Encoding\x264\x264Profile.cs" />\r
+    <Compile Include="Model\Encoding\x264\x264Tune.cs" />\r
     <Compile Include="Model\Limits.cs" />\r
     <Compile Include="Model\Size.cs" />\r
     <Compile Include="Model\SourceSubtitle.cs" />\r
index feddb12070fff3768f9be5f637a6b8f69f661d61..b5ab3b4bc5965f033a4373cf9b20f598bdffff46 100644 (file)
@@ -9,41 +9,47 @@
 \r
 namespace HandBrake.Interop.Model.Encoding\r
 {\r
-       using System.ComponentModel.DataAnnotations;\r
+    using System.ComponentModel.DataAnnotations;\r
 \r
-       public enum AudioEncoder\r
-       {\r
-               [Display(Name = "AAC (faac)")]\r
-               Faac = 0,\r
+    /// <summary>\r
+    /// The audio encoder.\r
+    /// </summary>\r
+    public enum AudioEncoder\r
+    {\r
+        [Display(Name = "AAC (faac)")]\r
+        Faac = 0,\r
 \r
-               [Display(Name = "AAC (ffmpeg)")]\r
-               ffaac,\r
+        [Display(Name = "AAC (ffmpeg)")]\r
+        ffaac,\r
 \r
-               [Display(Name = "MP3 (lame)")]\r
-               Lame,\r
+        [Display(Name = "MP3 (lame)")]\r
+        Lame,\r
 \r
-               [Display(Name = "AC3 (ffmpeg)")]\r
-               Ac3,\r
+        [Display(Name = "AC3 (ffmpeg)")]\r
+        Ac3,\r
 \r
-               [Display(Name = "Passthrough")]\r
-               Passthrough,\r
+        [Display(Name = "Passthrough")]\r
+        Passthrough,\r
 \r
-               [Display(Name = "AC3 Passthru")]\r
-               Ac3Passthrough,\r
+        [Display(Name = "AC3 Passthru")]\r
+        Ac3Passthrough,\r
 \r
-               [Display(Name = "DTS Passthru")]\r
-               DtsPassthrough,\r
+        [Display(Name = "DTS Passthru")]\r
+        DtsPassthrough,\r
 \r
-               [Display(Name = "DTS-HD Passthru")]\r
-               DtsHDPassthrough,\r
+        [Display(Name = "DTS-HD Passthru")]\r
+        DtsHDPassthrough,\r
 \r
-               [Display(Name = "AAC Passthru")]\r
-               AacPassthru,\r
+        [Display(Name = "AAC Passthru")]\r
+        AacPassthru,\r
 \r
-               [Display(Name = "MP3 Passthru")]\r
-               Mp3Passthru,\r
+        [Display(Name = "MP3 Passthru")]\r
+        Mp3Passthru,\r
 \r
-               [Display(Name = "Vorbis (vorbis)")]\r
-               Vorbis\r
-       }\r
+        [Display(Name = "Vorbis (vorbis)")]\r
+        Vorbis,\r
+\r
+        [Display(Name = "Flac (ffmpeg)")]\r
+        ffflac\r
+    }\r
 }\r
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 (file)
index 0000000..45fbeb5
--- /dev/null
@@ -0,0 +1,49 @@
+// --------------------------------------------------------------------------------------------------------------------\r
+// <copyright file="x264Preset.cs" company="HandBrake Project (http://handbrake.fr)">\r
+//   This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.\r
+// </copyright>\r
+// <summary>\r
+//   Defines the x264Preset type.\r
+// </summary>\r
+// --------------------------------------------------------------------------------------------------------------------\r
+\r
+namespace HandBrake.Interop.Model.Encoding.x264\r
+{\r
+    using System.ComponentModel.DataAnnotations;\r
+\r
+    /// <summary>\r
+    /// The X264 Preset\r
+    /// </summary>\r
+    public enum x264Preset\r
+    {\r
+        [Display(Name = "Ultrafast")]\r
+        Ultrafast = 0,\r
+\r
+        [Display(Name = "Super Fast")]\r
+        Superfast,\r
+\r
+        [Display(Name = "Very Fast")]\r
+        VeryFast,\r
+\r
+        [Display(Name = "Faster")]\r
+        Faster,\r
+\r
+        [Display(Name = "Fast")]\r
+        Fast,\r
+\r
+        [Display(Name = "Medium")]\r
+        Medium,\r
+\r
+        [Display(Name = "Slow")]\r
+        Slow,\r
+\r
+        [Display(Name = "Slower")]\r
+        Slower,\r
+\r
+        [Display(Name = "Very Slow")]\r
+        VerySlow,\r
+\r
+        [Display(Name = "Placebo")]\r
+        Placebo,\r
+    }\r
+}\r
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 (file)
index 0000000..837fbd2
--- /dev/null
@@ -0,0 +1,37 @@
+// --------------------------------------------------------------------------------------------------------------------\r
+// <copyright file="x264Profile.cs" company="HandBrake Project (http://handbrake.fr)">\r
+//   This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.\r
+// </copyright>\r
+// <summary>\r
+//   The X264 Profile\r
+// </summary>\r
+// --------------------------------------------------------------------------------------------------------------------\r
+\r
+namespace HandBrake.Interop.Model.Encoding.x264\r
+{\r
+    using System.ComponentModel.DataAnnotations;\r
+\r
+    /// <summary>\r
+    /// The X264 Profile\r
+    /// </summary>\r
+    public enum x264Profile\r
+    {\r
+        [Display(Name = "Baseline")]\r
+        Baseline = 0,\r
+\r
+        [Display(Name = "Main")]\r
+        Main,\r
+\r
+        [Display(Name = "High")]\r
+        High,\r
+\r
+        [Display(Name = "High 10")]\r
+        High10,\r
+\r
+        [Display(Name = "High 422")]\r
+        High422,\r
+\r
+        [Display(Name = "High 444")]\r
+        High444,\r
+    }\r
+}\r
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 (file)
index 0000000..c667f69
--- /dev/null
@@ -0,0 +1,43 @@
+// --------------------------------------------------------------------------------------------------------------------\r
+// <copyright file="x264Tune.cs" company="HandBrake Project (http://handbrake.fr)">\r
+//   This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.\r
+// </copyright>\r
+// <summary>\r
+//   Defines the x264Tune type.\r
+// </summary>\r
+// --------------------------------------------------------------------------------------------------------------------\r
+\r
+namespace HandBrake.Interop.Model.Encoding.x264\r
+{\r
+    using System.ComponentModel.DataAnnotations;\r
+\r
+    /// <summary>\r
+    /// The X264 Tune MOdel\r
+    /// </summary>\r
+    public enum x264Tune\r
+    {\r
+        [Display(Name = "Film")]\r
+        Film = 0,\r
+\r
+        [Display(Name = "Animation")]\r
+        Animation,\r
+\r
+        [Display(Name = "Grain")]\r
+        grain,\r
+\r
+        [Display(Name = "Still Image")]\r
+        stillimage,\r
+\r
+        [Display(Name = "PSNR")]\r
+        psnr,\r
+\r
+        [Display(Name = "SSIM")]\r
+        ssim,\r
+\r
+        [Display(Name = "Fast Decode")]\r
+        fastdecode,\r
+\r
+        [Display(Name = "Zero Latency")]\r
+        zerolatency,\r
+    }\r
+}\r