diff options
author | sr55 <[email protected]> | 2011-09-17 19:15:51 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2011-09-17 19:15:51 +0000 |
commit | d428990eccd41c5ea9e67115a093ea0c09bc3e2a (patch) | |
tree | e21e539dec9df67e6c36fe45bf5673910bda67d5 /win/CS/HandBrake.Interop/HandBrakeInterop/Utilities.cs | |
parent | ccbaa9137a2275647a22b86487109f694c0f732d (diff) |
Interop: Added support for various audio encoding options that were missing from various functions.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4228 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.Interop/HandBrakeInterop/Utilities.cs')
-rw-r--r-- | win/CS/HandBrake.Interop/HandBrakeInterop/Utilities.cs | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/win/CS/HandBrake.Interop/HandBrakeInterop/Utilities.cs b/win/CS/HandBrake.Interop/HandBrakeInterop/Utilities.cs index fa5142e19..084005d68 100644 --- a/win/CS/HandBrake.Interop/HandBrakeInterop/Utilities.cs +++ b/win/CS/HandBrake.Interop/HandBrakeInterop/Utilities.cs @@ -7,13 +7,24 @@ // </summary>
// --------------------------------------------------------------------------------------------------------------------
-using HandBrake.Interop.Model.Encoding;
-
namespace HandBrake.Interop
{
- public static class Utilities
+ using HandBrake.Interop.Model.Encoding;
+
+ public static class Utilities
{
- public static int GreatestCommonFactor(int a, int b)
+ /// <summary>
+ /// Get the Greatest Common Factor
+ /// </summary>
+ /// <param name="a">
+ /// The a.
+ /// </param>
+ /// <param name="b">
+ /// The b.
+ /// </param>
+ /// <returns>
+ /// </returns>
+ public static int GreatestCommonFactor(int a, int b)
{
if (a == 0)
{
@@ -42,7 +53,12 @@ namespace HandBrake.Interop /// <returns>True if the encoder is passthrough.</returns>
public static bool IsPassthrough(AudioEncoder encoder)
{
- return encoder == AudioEncoder.Ac3Passthrough || encoder == AudioEncoder.Passthrough;
+ return encoder == AudioEncoder.Ac3Passthrough ||
+ encoder == AudioEncoder.DtsHDPassthrough ||
+ encoder == AudioEncoder.DtsPassthrough ||
+ encoder == AudioEncoder.Mp3Passthru ||
+ encoder == AudioEncoder.AacPassthru ||
+ encoder == AudioEncoder.Passthrough;
}
}
}
|