Beispiel #1
0
        private void DecompressMpeg_Click(object sender, RoutedEventArgs e)
        {
            // file dialog
            OpenFileDialog fileDialog = new OpenFileDialog
            {
                Title            = "Open CMPX File",
                Filter           = "cmpx files (*.cmpx)|*.cmpx",
                RestoreDirectory = true
            };

            if (fileDialog.ShowDialog() == true)
            {
                Task.Factory.StartNew(() =>
                {
                    frames = Compress.DecompressIPFrames(fileDialog.FileName);

                    frameIndex = 0;
                    SetDisplayImage(frames[frameIndex]);
                });
            }
        }