From d03140dd43594dafbf6f7f474ee06b45afc1b903 Mon Sep 17 00:00:00 2001 From: randomengy Date: Sun, 24 Jul 2011 19:04:13 +0000 Subject: Add DTS-HD and DRC to HandBrakeInterop. Update libhb audio structures. Fix test project build failures. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4138 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/CS/HandBrake.Interop/HandBrakeInterop/Utilities.cs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'win/CS/HandBrake.Interop/HandBrakeInterop/Utilities.cs') diff --git a/win/CS/HandBrake.Interop/HandBrakeInterop/Utilities.cs b/win/CS/HandBrake.Interop/HandBrakeInterop/Utilities.cs index e08d3f17c..fa5142e19 100644 --- a/win/CS/HandBrake.Interop/HandBrakeInterop/Utilities.cs +++ b/win/CS/HandBrake.Interop/HandBrakeInterop/Utilities.cs @@ -7,9 +7,11 @@ // // -------------------------------------------------------------------------------------------------------------------- +using HandBrake.Interop.Model.Encoding; + namespace HandBrake.Interop { - public static class Utilities + public static class Utilities { public static int GreatestCommonFactor(int a, int b) { @@ -32,5 +34,15 @@ namespace HandBrake.Interop return GreatestCommonFactor(a, b % a); } } + + /// + /// Determines if the given audio encoder is a passthrough encoder choice. + /// + /// The audio encoder to examine. + /// True if the encoder is passthrough. + public static bool IsPassthrough(AudioEncoder encoder) + { + return encoder == AudioEncoder.Ac3Passthrough || encoder == AudioEncoder.Passthrough; + } } } -- cgit v1.2.3