// --------------------------------------------------------------------------------------------------------------------
//
// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
//
//
// Allowed Passthru Options
//
// --------------------------------------------------------------------------------------------------------------------
namespace HandBrake.ApplicationServices.Model.Encoding
{
using HandBrake.Interop.Model.Encoding;
///
/// Allowed Passthru Options
///
public class AllowedPassthru
{
#region Constants and Fields
///
/// The audio allow aac pass.
///
private bool? audioAllowAACPass;
///
/// The audio allow a c 3 pass.
///
private bool? audioAllowAC3Pass;
///
/// The audio allow dtshd pass.
///
private bool? audioAllowDTSHDPass;
///
/// The audio allow dts pass.
///
private bool? audioAllowDTSPass;
///
/// The audio allow m p 3 pass.
///
private bool? audioAllowMP3Pass;
#endregion
#region Constructors and Destructors
///
/// Initializes a new instance of the class.
///
public AllowedPassthru()
{
this.AudioAllowAACPass = true;
this.AudioAllowAC3Pass = true;
this.AudioAllowDTSHDPass = true;
this.AudioAllowDTSPass = true;
this.AudioAllowMP3Pass = true;
this.AudioEncoderFallback = AudioEncoder.Ac3;
}
///
/// Initializes a new instance of the class.
///
///
/// The initial Value.
///
public AllowedPassthru(bool? initialValue)
{
this.AudioAllowAACPass = initialValue;
this.AudioAllowAC3Pass = initialValue;
this.AudioAllowDTSHDPass = initialValue;
this.AudioAllowDTSPass = initialValue;
this.AudioAllowMP3Pass = initialValue;
this.AudioEncoderFallback = AudioEncoder.Ac3;
}
///
/// Initializes a new instance of the class.
/// Copy Constructor
///
///
/// The initial value.
///
public AllowedPassthru(AllowedPassthru initialValue)
{
this.AudioAllowAACPass = initialValue.AudioAllowAACPass;
this.AudioAllowAC3Pass = initialValue.AudioAllowAC3Pass;
this.AudioAllowDTSHDPass = initialValue.AudioAllowDTSHDPass;
this.AudioAllowDTSPass = initialValue.AudioAllowDTSPass;
this.AudioAllowMP3Pass = initialValue.AudioAllowMP3Pass;
this.AudioEncoderFallback = initialValue.AudioEncoderFallback;
}
#endregion
#region Properties
///
/// Gets or sets a value indicating whether AudioAllowAACPass.
///
public bool? AudioAllowAACPass
{
get
{
return this.audioAllowAACPass ?? true;
}
set
{
this.audioAllowAACPass = value;
}
}
///
/// Gets or sets a value indicating whether AudioAllowAC3Pass.
///
public bool? AudioAllowAC3Pass
{
get
{
return this.audioAllowAC3Pass ?? true;
}
set
{
this.audioAllowAC3Pass = value;
}
}
///
/// Gets or sets a value indicating whether AudioAllowDTSHDPass.
///
public bool? AudioAllowDTSHDPass
{
get
{
return this.audioAllowDTSHDPass ?? true;
}
set
{
this.audioAllowDTSHDPass = value;
}
}
///
/// Gets or sets a value indicating whether AudioAllowDTSPass.
///
public bool? AudioAllowDTSPass
{
get
{
return this.audioAllowDTSPass ?? true;
}
set
{
this.audioAllowDTSPass = value;
}
}
///
/// Gets or sets a value indicating whether AudioAllowMP3Pass.
///
public bool? AudioAllowMP3Pass
{
get
{
return this.audioAllowMP3Pass ?? true;
}
set
{
this.audioAllowMP3Pass = value;
}
}
///
/// Gets or sets AudioEncoderFallback.
///
public AudioEncoder AudioEncoderFallback { get; set; }
#endregion
}
}