diff options
Diffstat (limited to 'win/C#/interop/Model/Encoding')
-rw-r--r-- | win/C#/interop/Model/Encoding/Anamorphic.cs | 19 | ||||
-rw-r--r-- | win/C#/interop/Model/Encoding/AudioEncoder.cs | 25 | ||||
-rw-r--r-- | win/C#/interop/Model/Encoding/AudioEncoding.cs | 17 | ||||
-rw-r--r-- | win/C#/interop/Model/Encoding/Decomb.cs | 14 | ||||
-rw-r--r-- | win/C#/interop/Model/Encoding/Deinterlace.cs | 16 | ||||
-rw-r--r-- | win/C#/interop/Model/Encoding/Denoise.cs | 16 | ||||
-rw-r--r-- | win/C#/interop/Model/Encoding/Detelecine.cs | 14 | ||||
-rw-r--r-- | win/C#/interop/Model/Encoding/EncodingProfile.cs | 111 | ||||
-rw-r--r-- | win/C#/interop/Model/Encoding/Mixdown.cs | 25 | ||||
-rw-r--r-- | win/C#/interop/Model/Encoding/OutputExtension.cs | 13 | ||||
-rw-r--r-- | win/C#/interop/Model/Encoding/OutputFormat.cs | 16 | ||||
-rw-r--r-- | win/C#/interop/Model/Encoding/VideoEncodeRateType.cs | 14 | ||||
-rw-r--r-- | win/C#/interop/Model/Encoding/VideoEncoder.cs | 19 |
13 files changed, 319 insertions, 0 deletions
diff --git a/win/C#/interop/Model/Encoding/Anamorphic.cs b/win/C#/interop/Model/Encoding/Anamorphic.cs new file mode 100644 index 000000000..65a7f2352 --- /dev/null +++ b/win/C#/interop/Model/Encoding/Anamorphic.cs @@ -0,0 +1,19 @@ +using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace HandBrake.Interop
+{
+ public enum Anamorphic
+ {
+ [DisplayString("None")]
+ None = 0,
+ [DisplayString("Strict")]
+ Strict,
+ [DisplayString("Loose")]
+ Loose,
+ [DisplayString("Custom")]
+ Custom
+ }
+}
diff --git a/win/C#/interop/Model/Encoding/AudioEncoder.cs b/win/C#/interop/Model/Encoding/AudioEncoder.cs new file mode 100644 index 000000000..b4eee5249 --- /dev/null +++ b/win/C#/interop/Model/Encoding/AudioEncoder.cs @@ -0,0 +1,25 @@ +using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace HandBrake.Interop
+{
+ public enum AudioEncoder
+ {
+ [DisplayString("AAC (faac)")]
+ Faac = 0,
+
+ [DisplayString("MP3 (lame)")]
+ Lame,
+
+ [DisplayString("AC3 Passthrough")]
+ Ac3Passthrough,
+
+ [DisplayString("DTS Passthrough")]
+ DtsPassthrough,
+
+ [DisplayString("Vorbis (vorbis)")]
+ Vorbis
+ }
+}
diff --git a/win/C#/interop/Model/Encoding/AudioEncoding.cs b/win/C#/interop/Model/Encoding/AudioEncoding.cs new file mode 100644 index 000000000..8ff112c35 --- /dev/null +++ b/win/C#/interop/Model/Encoding/AudioEncoding.cs @@ -0,0 +1,17 @@ +using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace HandBrake.Interop
+{
+ public class AudioEncoding
+ {
+ public int InputNumber { get; set; }
+ public AudioEncoder Encoder { get; set; }
+ public int Bitrate { get; set; }
+ public Mixdown Mixdown { get; set; }
+ public string SampleRate { get; set; }
+ public double Drc { get; set; }
+ }
+}
diff --git a/win/C#/interop/Model/Encoding/Decomb.cs b/win/C#/interop/Model/Encoding/Decomb.cs new file mode 100644 index 000000000..9060b01eb --- /dev/null +++ b/win/C#/interop/Model/Encoding/Decomb.cs @@ -0,0 +1,14 @@ +using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace HandBrake.Interop
+{
+ public enum Decomb
+ {
+ Off = 0,
+ Default,
+ Custom
+ }
+}
diff --git a/win/C#/interop/Model/Encoding/Deinterlace.cs b/win/C#/interop/Model/Encoding/Deinterlace.cs new file mode 100644 index 000000000..365f6003c --- /dev/null +++ b/win/C#/interop/Model/Encoding/Deinterlace.cs @@ -0,0 +1,16 @@ +using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace HandBrake.Interop
+{
+ public enum Deinterlace
+ {
+ Off = 0,
+ Fast,
+ Slow,
+ Slower,
+ Custom
+ }
+}
diff --git a/win/C#/interop/Model/Encoding/Denoise.cs b/win/C#/interop/Model/Encoding/Denoise.cs new file mode 100644 index 000000000..146cbfd6f --- /dev/null +++ b/win/C#/interop/Model/Encoding/Denoise.cs @@ -0,0 +1,16 @@ +using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace HandBrake.Interop
+{
+ public enum Denoise
+ {
+ Off = 0,
+ Weak,
+ Medium,
+ Strong,
+ Custom
+ }
+}
diff --git a/win/C#/interop/Model/Encoding/Detelecine.cs b/win/C#/interop/Model/Encoding/Detelecine.cs new file mode 100644 index 000000000..028abf44b --- /dev/null +++ b/win/C#/interop/Model/Encoding/Detelecine.cs @@ -0,0 +1,14 @@ +using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace HandBrake.Interop
+{
+ public enum Detelecine
+ {
+ Off = 0,
+ Default,
+ Custom
+ }
+}
diff --git a/win/C#/interop/Model/Encoding/EncodingProfile.cs b/win/C#/interop/Model/Encoding/EncodingProfile.cs new file mode 100644 index 000000000..443abf477 --- /dev/null +++ b/win/C#/interop/Model/Encoding/EncodingProfile.cs @@ -0,0 +1,111 @@ +using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace HandBrake.Interop
+{
+ public class EncodingProfile
+ {
+ public EncodingProfile()
+ {
+ this.Cropping = new Cropping();
+ }
+
+ public OutputFormat OutputFormat { get; set; }
+ public OutputExtension PreferredExtension { get; set; }
+ public bool IncludeChapterMarkers { get; set; }
+ public bool LargeFile { get; set; }
+ public bool Optimize { get; set; }
+ public bool IPod5GSupport { get; set; }
+
+ public int Width { get; set; }
+ public int Height { get; set; }
+ public int MaxWidth { get; set; }
+ public int MaxHeight { get; set; }
+ public bool CustomCropping { get; set; }
+ public Cropping Cropping { get; set; }
+ public Anamorphic Anamorphic { get; set; }
+ public bool UseDisplayWidth { get; set; }
+ public int DisplayWidth { get; set; }
+ public bool KeepDisplayAspect { get; set; }
+ public int PixelAspectX { get; set; }
+ public int PixelAspectY { get; set; }
+ public int Modulus { get; set; }
+
+ public Deinterlace Deinterlace { get; set; }
+ public string CustomDeinterlace { get; set; }
+ public Decomb Decomb { get; set; }
+ public string CustomDecomb { get; set; }
+ public Detelecine Detelecine { get; set; }
+ public string CustomDetelecine { get; set; }
+ public Denoise Denoise { get; set; }
+ public string CustomDenoise { get; set; }
+ public int Deblock { get; set; }
+ public bool Grayscale { get; set; }
+
+ public VideoEncoder VideoEncoder { get; set; }
+ public string X264Options { get; set; }
+ public VideoEncodeRateType VideoEncodeRateType { get; set; }
+ public double Quality { get; set; }
+ public int TargetSize { get; set; }
+ public int VideoBitrate { get; set; }
+ public bool TwoPass { get; set; }
+ public bool TurboFirstPass { get; set; }
+ public double Framerate { get; set; }
+
+ public List<AudioEncoding> AudioEncodings { get; set; }
+
+ public EncodingProfile Clone()
+ {
+ EncodingProfile profile = new EncodingProfile
+ {
+ OutputFormat = this.OutputFormat,
+ PreferredExtension = this.PreferredExtension,
+ IncludeChapterMarkers = this.IncludeChapterMarkers,
+ LargeFile = this.LargeFile,
+ Optimize = this.Optimize,
+ IPod5GSupport = this.IPod5GSupport,
+
+ Width = this.Width,
+ Height = this.Height,
+ MaxWidth = this.MaxWidth,
+ MaxHeight = this.MaxHeight,
+ CustomCropping = this.CustomCropping,
+ Cropping = this.Cropping,
+ Anamorphic = this.Anamorphic,
+ UseDisplayWidth = this.UseDisplayWidth,
+ DisplayWidth = this.DisplayWidth,
+ KeepDisplayAspect = this.KeepDisplayAspect,
+ PixelAspectX = this.PixelAspectX,
+ PixelAspectY = this.PixelAspectY,
+ Modulus = this.Modulus,
+
+ Deinterlace = this.Deinterlace,
+ CustomDeinterlace = this.CustomDeinterlace,
+ Decomb = this.Decomb,
+ CustomDecomb = this.CustomDecomb,
+ Detelecine = this.Detelecine,
+ CustomDetelecine = this.CustomDetelecine,
+ Denoise = this.Denoise,
+ CustomDenoise = this.CustomDenoise,
+ Deblock = this.Deblock,
+ Grayscale = this.Grayscale,
+
+ VideoEncoder = this.VideoEncoder,
+ X264Options = this.X264Options,
+ VideoEncodeRateType = this.VideoEncodeRateType,
+ Quality = this.Quality,
+ TargetSize = this.TargetSize,
+ VideoBitrate = this.VideoBitrate,
+ TwoPass = this.TwoPass,
+ TurboFirstPass = this.TurboFirstPass,
+ Framerate = this.Framerate,
+
+ AudioEncodings = new List<AudioEncoding>(this.AudioEncodings)
+ };
+
+ return profile;
+ }
+ }
+}
diff --git a/win/C#/interop/Model/Encoding/Mixdown.cs b/win/C#/interop/Model/Encoding/Mixdown.cs new file mode 100644 index 000000000..2049d0921 --- /dev/null +++ b/win/C#/interop/Model/Encoding/Mixdown.cs @@ -0,0 +1,25 @@ +using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace HandBrake.Interop
+{
+ public enum Mixdown
+ {
+ [DisplayString("Dolby Pro Logic II")]
+ DolbyProLogicII = 0,
+
+ [DisplayString("Mono")]
+ Mono,
+
+ [DisplayString("Stereo")]
+ Stereo,
+
+ [DisplayString("Dolby Surround")]
+ DolbySurround,
+
+ [DisplayString("6 Channel Discrete")]
+ SixChannelDiscrete
+ }
+}
diff --git a/win/C#/interop/Model/Encoding/OutputExtension.cs b/win/C#/interop/Model/Encoding/OutputExtension.cs new file mode 100644 index 000000000..bcf709576 --- /dev/null +++ b/win/C#/interop/Model/Encoding/OutputExtension.cs @@ -0,0 +1,13 @@ +using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace HandBrake.Interop
+{
+ public enum OutputExtension
+ {
+ Mp4,
+ M4v
+ }
+}
diff --git a/win/C#/interop/Model/Encoding/OutputFormat.cs b/win/C#/interop/Model/Encoding/OutputFormat.cs new file mode 100644 index 000000000..52549e763 --- /dev/null +++ b/win/C#/interop/Model/Encoding/OutputFormat.cs @@ -0,0 +1,16 @@ +using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.ComponentModel;
+
+namespace HandBrake.Interop
+{
+ public enum OutputFormat
+ {
+ [DisplayString("MP4")]
+ Mp4,
+ [DisplayString("MKV")]
+ Mkv
+ }
+}
diff --git a/win/C#/interop/Model/Encoding/VideoEncodeRateType.cs b/win/C#/interop/Model/Encoding/VideoEncodeRateType.cs new file mode 100644 index 000000000..6c39e54d6 --- /dev/null +++ b/win/C#/interop/Model/Encoding/VideoEncodeRateType.cs @@ -0,0 +1,14 @@ +using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace HandBrake.Interop
+{
+ public enum VideoEncodeRateType
+ {
+ TargetSize = 0,
+ AverageBitrate,
+ ConstantQuality
+ }
+}
diff --git a/win/C#/interop/Model/Encoding/VideoEncoder.cs b/win/C#/interop/Model/Encoding/VideoEncoder.cs new file mode 100644 index 000000000..912117b48 --- /dev/null +++ b/win/C#/interop/Model/Encoding/VideoEncoder.cs @@ -0,0 +1,19 @@ +using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace HandBrake.Interop
+{
+ public enum VideoEncoder
+ {
+ [DisplayString("H.264 (x264)")]
+ X264 = 0,
+
+ [DisplayString("MPEG-4 (FFMpeg)")]
+ FFMpeg,
+
+ [DisplayString("VP3 (Theora)")]
+ Theora
+ }
+}
|