public x264Job(x264Setting setting) { this._setting = setting; }
/// <summary> /// Handles assessment of whether the encoding options vary between two x264Settings instances /// The following are excluded from the comparison: /// BitrateQuantizer /// CreditsQuantizer /// Logfile /// NbThreads /// SARX /// SARY /// Zones /// </summary> /// <param name="otherSettings"></param> /// <returns>true if the settings differ</returns> public bool IsAltered(x264Setting otherSettings) { if ( this.NewAdaptiveBFrames != otherSettings.NewAdaptiveBFrames || this.AdaptiveDCT != otherSettings.AdaptiveDCT || this.AlphaDeblock != otherSettings.AlphaDeblock || this.NoFastPSkip != otherSettings.NoFastPSkip || this.B8x8mv != otherSettings.B8x8mv || this.BetaDeblock != otherSettings.BetaDeblock || this.BframeBias != otherSettings.BframeBias || this.BframePredictionMode != otherSettings.BframePredictionMode || this.BFramePyramid != otherSettings.BFramePyramid || this.BitrateVariance != otherSettings.BitrateVariance || this.PsyRDO != otherSettings.PsyRDO || this.PsyTrellis != otherSettings.PsyTrellis || this.Cabac != otherSettings.Cabac || this.ChromaME != otherSettings.ChromaME || this.ChromaQPOffset != otherSettings.ChromaQPOffset || this.CustomEncoderOptions != otherSettings.CustomEncoderOptions || this.Deblock != otherSettings.Deblock || this.EncodingMode != otherSettings.EncodingMode || this.I4x4mv != otherSettings.I4x4mv || this.I8x8mv != otherSettings.I8x8mv || this.IPFactor != otherSettings.IPFactor || this.KeyframeInterval != otherSettings.KeyframeInterval || this.Level != otherSettings.Level || this.Lossless != otherSettings.Lossless || this.MaxQuantDelta != otherSettings.MaxQuantDelta || this.MaxQuantizer != otherSettings.MaxQuantizer || this.MERange != otherSettings.MERange || this.METype != otherSettings.METype || this.MinGOPSize != otherSettings.MinGOPSize || this.MinQuantizer != otherSettings.MinQuantizer || this.MixedRefs != otherSettings.MixedRefs || this.NbBframes != otherSettings.NbBframes || this.NbRefFrames != otherSettings.NbRefFrames || this.noiseReduction != otherSettings.noiseReduction || this.P4x4mv != otherSettings.P4x4mv || this.P8x8mv != otherSettings.P8x8mv || this.PBFactor != otherSettings.PBFactor || this.Profile != otherSettings.Profile || this.QPel != otherSettings.QPel || this.QuantCompression != otherSettings.QuantCompression || this.QuantizerMatrix != otherSettings.QuantizerMatrix || this.QuantizerMatrixType != otherSettings.QuantizerMatrixType || this.SCDSensitivity != otherSettings.SCDSensitivity || this.SubPelRefinement != otherSettings.SubPelRefinement || this.TempComplexityBlur != otherSettings.TempComplexityBlur || this.TempQuanBlurCC != otherSettings.TempQuanBlurCC || this.TempQuantBlur != otherSettings.TempQuantBlur || this.Trellis != otherSettings.Trellis || this.Turbo != otherSettings.Turbo || this.V4MV != otherSettings.V4MV || this.VBVBufferSize != otherSettings.VBVBufferSize || this.VBVInitialBuffer != otherSettings.VBVInitialBuffer || this.VBVMaxBitrate != otherSettings.VBVMaxBitrate || this.WeightedBPrediction != otherSettings.WeightedBPrediction || this.X264Trellis != otherSettings.X264Trellis || this.AQmode != otherSettings.AQmode || this.AQstrength != otherSettings.AQstrength ) { return(true); } else { return(false); } }