diff options
author | randomengy <[email protected]> | 2014-08-03 04:33:09 +0000 |
---|---|---|
committer | randomengy <[email protected]> | 2014-08-03 04:33:09 +0000 |
commit | 9474387d2ae72794970b8ca2a9e8f8facdc0fdab (patch) | |
tree | 11ac1b628d8c43af0301bd45be0089ad2d7b50ce /win/CS/HandBrake.Interop/HandBrakeInterop/Model/Encoders.cs | |
parent | e4b94f18017bcbf9d7f26fb2486ff3a745d55eef (diff) |
Interop: Added support for NL-Means denoise.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6260 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.Interop/HandBrakeInterop/Model/Encoders.cs')
-rw-r--r-- | win/CS/HandBrake.Interop/HandBrakeInterop/Model/Encoders.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/win/CS/HandBrake.Interop/HandBrakeInterop/Model/Encoders.cs b/win/CS/HandBrake.Interop/HandBrakeInterop/Model/Encoders.cs index f27fad285..295586c8f 100644 --- a/win/CS/HandBrake.Interop/HandBrakeInterop/Model/Encoders.cs +++ b/win/CS/HandBrake.Interop/HandBrakeInterop/Model/Encoders.cs @@ -201,6 +201,16 @@ namespace HandBrake.Interop.Model }
/// <summary>
+ /// Gets the audio encoder with the specified codec ID.
+ /// </summary>
+ /// <param name="codecId">The ID of the audio encoder.</param>
+ /// <returns>The requested audio encoder.</returns>
+ public static HBAudioEncoder GetAudioEncoder(int codecId)
+ {
+ return AudioEncoders.SingleOrDefault(e => e.Id == codecId);
+ }
+
+ /// <summary>
/// Gets the video encoder with the specified short name.
/// </summary>
/// <param name="shortName">The name of the video encoder.</param>
@@ -276,6 +286,16 @@ namespace HandBrake.Interop.Model }
/// <summary>
+ /// Determines if the given input audio codec can be passed through.
+ /// </summary>
+ /// <param name="codecId">The input codec to consider.</param>
+ /// <returns>True if the codec can be passed through.</returns>
+ public static bool CanPassthroughAudio(int codecId)
+ {
+ return (codecId & NativeConstants.HB_ACODEC_PASS_MASK) > 0;
+ }
+
+ /// <summary>
/// Sanitizes a mixdown given the output codec and input channel layout.
/// </summary>
/// <param name="mixdown">The desired mixdown.</param>
|