From d20e2f8c79443b3733908c6bd629c29fb2374310 Mon Sep 17 00:00:00 2001 From: randomengy Date: Thu, 20 Sep 2012 01:32:35 +0000 Subject: Interop: Bring up to speed with libhb. Exposes more functions, accommodates channel layout and filter changes and allows setting CFR same as source. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4969 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- .../HandBrakeInterop/Converters.cs | 71 ---------------------- 1 file changed, 71 deletions(-) (limited to 'win/CS/HandBrake.Interop/HandBrakeInterop/Converters.cs') diff --git a/win/CS/HandBrake.Interop/HandBrakeInterop/Converters.cs b/win/CS/HandBrake.Interop/HandBrakeInterop/Converters.cs index bc34ac380..00fc4e4e8 100644 --- a/win/CS/HandBrake.Interop/HandBrakeInterop/Converters.cs +++ b/win/CS/HandBrake.Interop/HandBrakeInterop/Converters.cs @@ -60,77 +60,6 @@ namespace HandBrake.Interop return vrates[framerate]; } - /// - /// Convert a Mixdown object to HandBrakes native mixdown constant. - /// - /// - /// The mixdown. - /// - /// - /// NativeContstant that represents the mixdown. - /// - /// - /// Thrown for an invalid mixodown. - /// - public static int MixdownToNative(Mixdown mixdown) - { - if (mixdown == Mixdown.Auto) - { - throw new ArgumentException("Cannot convert Auto to native."); - } - - switch (mixdown) - { - case Mixdown.None: - return NativeConstants.HB_AMIXDOWN_NONE; - case Mixdown.DolbyProLogicII: - return NativeConstants.HB_AMIXDOWN_DOLBYPLII; - case Mixdown.DolbySurround: - return NativeConstants.HB_AMIXDOWN_DOLBY; - case Mixdown.Mono: - return NativeConstants.HB_AMIXDOWN_MONO; - case Mixdown.FivePoint1Channels: - return NativeConstants.HB_AMIXDOWN_6CH; - case Mixdown.Stereo: - return NativeConstants.HB_AMIXDOWN_STEREO; - } - - return 0; - } - - /// - /// Convert an native internal handbrake mixdown to a local mixdown enum. - /// - /// - /// The mixdown. - /// - /// - /// A mixdown object. - /// - /// - /// thrown when mixdown is invalid. - /// - public static Mixdown NativeToMixdown(int mixdown) - { - switch (mixdown) - { - case NativeConstants.HB_AMIXDOWN_NONE: - return Mixdown.None; - case NativeConstants.HB_AMIXDOWN_MONO: - return Mixdown.Mono; - case NativeConstants.HB_AMIXDOWN_STEREO: - return Mixdown.Stereo; - case NativeConstants.HB_AMIXDOWN_DOLBY: - return Mixdown.DolbySurround; - case NativeConstants.HB_AMIXDOWN_DOLBYPLII: - return Mixdown.DolbyProLogicII; - case NativeConstants.HB_AMIXDOWN_6CH: - return Mixdown.FivePoint1Channels; - } - - throw new ArgumentException("Unrecognized mixdown: " + mixdown, "mixdown"); - } - /// /// Gets the native code for the given encoder. /// -- cgit v1.2.3