コード例 #1
0
        static void Main(string[] args)
        {
            var       reader = new MvdReader();
            var       writer = new MvdWriter();
            MotoVideo video  = reader.ReadVideo(@"C:\LSR\art\frontend\help\help.mvd");

            writer.WriteVideo(video, @"C:\LSR\art\frontend\help\help.mvd.out");
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: OpenLSR/LSRutil.NET
        static void Main(string[] args)
        {
            var timer = new Stopwatch();

            timer.Start();
            var       reader = new MvdReader();
            MotoVideo video  = reader.ReadVideo(@"C:\LSR\art\frontend\help\help.mvd");

            timer.Stop();
            Console.WriteLine("Loaded and parsed, took {0}ms", timer.ElapsedMilliseconds, video.numFrames);
            video.GetInfo();

            Directory.CreateDirectory("dump");
            timer.Restart();
            var i = 0;

            foreach (var frame in video.frames)
            {
                frame.DumpFrame("dump/" + i.ToString().PadLeft(4, '0') + ".raw");
                i++;
            }
            timer.Stop();
            Console.WriteLine("Dumping {1} frames took {0}ms", timer.ElapsedMilliseconds, video.numFrames);
        }