示例#1
0
        public void Rec709Companding_IsCorrect()
        {
            const float input = .667F;
            float       e     = Rec709Companding.Expand(input);
            float       c     = Rec709Companding.Compress(e);

            CompandingIsCorrectImpl(e, c, .4483577F, input);
        }
示例#2
0
        public void Rec709Companding(double input, double expected)
        {
            // arrange
            var companding = new Rec709Companding();

            // action
            var actual   = companding.Companding(input);
            var loopback = companding.InverseCompanding(actual);

            // assert
            Assert.Equal(expected, actual, DoubleComparer);
            Assert.Equal(input, loopback, DoubleComparer);
        }
 public override float Expand(float channel) => Rec709Companding.Expand(channel);
 public override float Compress(float channel) => Rec709Companding.Compress(channel);