diff options
author | randomengy <[email protected]> | 2012-09-20 01:32:35 +0000 |
---|---|---|
committer | randomengy <[email protected]> | 2012-09-20 01:32:35 +0000 |
commit | d20e2f8c79443b3733908c6bd629c29fb2374310 (patch) | |
tree | c94f0d60026fdb0e8998074ee0b25a955974ecdc /win/CS/HandBrake.Interop/HandBrakeInterop/Converters.cs | |
parent | b92edce868ade3318c3b092777bfa5e515720094 (diff) |
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
Diffstat (limited to 'win/CS/HandBrake.Interop/HandBrakeInterop/Converters.cs')
-rw-r--r-- | win/CS/HandBrake.Interop/HandBrakeInterop/Converters.cs | 71 |
1 files changed, 0 insertions, 71 deletions
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 @@ -61,77 +61,6 @@ namespace HandBrake.Interop }
/// <summary>
- /// Convert a Mixdown object to HandBrakes native mixdown constant.
- /// </summary>
- /// <param name="mixdown">
- /// The mixdown.
- /// </param>
- /// <returns>
- /// NativeContstant that represents the mixdown.
- /// </returns>
- /// <exception cref="ArgumentException">
- /// Thrown for an invalid mixodown.
- /// </exception>
- 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;
- }
-
- /// <summary>
- /// Convert an native internal handbrake mixdown to a local mixdown enum.
- /// </summary>
- /// <param name="mixdown">
- /// The mixdown.
- /// </param>
- /// <returns>
- /// A mixdown object.
- /// </returns>
- /// <exception cref="ArgumentException">
- /// thrown when mixdown is invalid.
- /// </exception>
- 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");
- }
-
- /// <summary>
/// Gets the native code for the given encoder.
/// </summary>
/// <param name="encoder">The audio encoder to convert.</param>
|