Example #1
0
        public void NotFail()
        {
            var decoder = new PanasonicRW2Decoder();

            var file = new FileStream(@"..\..\..\PanasonicRW2.Tests\P1350577.RW2", FileMode.Open, FileAccess.Read);
            var raw = decoder.Decode(file);

            var debayer = new AverageDebayer();

            var stopwatch = Stopwatch.StartNew();
            const int maxIter = 3;
            for (var iter = 0; iter < maxIter; iter++)
                debayer.Process(raw.Raw);
            stopwatch.Stop();

            Console.WriteLine("AverageDebayer: " + stopwatch.ElapsedMilliseconds/3 + "ms");
        }
Example #2
0
        public void NotFail()
        {
            var decoder = new PanasonicRW2Decoder();

            var file = new FileStream(@"..\..\..\PanasonicRW2.Tests\P1350577.RW2", FileMode.Open, FileAccess.Read);
            var raw  = decoder.Decode(file);

            var debayer = new AverageDebayer();

            var       stopwatch = Stopwatch.StartNew();
            const int maxIter   = 3;

            for (var iter = 0; iter < maxIter; iter++)
            {
                debayer.Process(raw.Raw);
            }
            stopwatch.Stop();

            Console.WriteLine("AverageDebayer: " + stopwatch.ElapsedMilliseconds / 3 + "ms");
        }