Exemplo n.º 1
0
 private void ConvertFrom(string inFile)
 {
     _processedFile = inFile;
     if (chk3D.Checked)
     {
         _state = ConvertionState.Left;
         MakeLeft();
     }
     else
     {
         _state = ConvertionState.Video2D;
         Make2D();
     }
 }
Exemplo n.º 2
0
        private void FfmpegProcessFinished(string error)
        {
            if (!string.IsNullOrEmpty(error))
            {
                MessageBox.Show(error);
                ChangeForm(true);
                return;
            }
            switch (_state)
            {
            case ConvertionState.Left:
                _state = ConvertionState.Right;
                MakeRight();
                break;

            case ConvertionState.Right:
                _state = ConvertionState.Combination;
                CombineLeftAndRight();
                break;

            case ConvertionState.Combination:
                ChangeForm(true);
                if (chkDeleteTempFiles.Checked)
                {
                    File.Delete(Path.GetDirectoryName(Application.ExecutablePath) + "\\left.avi");
                    File.Delete(Path.GetDirectoryName(Application.ExecutablePath) + "\\right.avi");
                    File.Delete(Path.GetDirectoryName(Application.ExecutablePath) + "\\youtube.flv");
                }
                ChangeStatus("Status: Video file saved successfuly.");
                progressBar.Value = 0;
                break;

            case ConvertionState.Video2D:
                ChangeForm(true);
                ChangeStatus("Status: Video file saved successfuly.");
                progressBar.Value = 0;
                break;
            }
        }
Exemplo n.º 3
0
 private void FfmpegProcessFinished(string error)
 {
     if (!string.IsNullOrEmpty(error))
     {
         MessageBox.Show(error);
         ChangeForm(true);
         return;
     }
     switch (_state)
     {
         case ConvertionState.Left:
             _state = ConvertionState.Right;
             MakeRight();
             break;
         case ConvertionState.Right:
             _state = ConvertionState.Combination;
             CombineLeftAndRight();
             break;
         case ConvertionState.Combination:
             ChangeForm(true);
             if (chkDeleteTempFiles.Checked)
             {
                 File.Delete(Path.GetDirectoryName(Application.ExecutablePath) + "\\left.avi");
                 File.Delete(Path.GetDirectoryName(Application.ExecutablePath) + "\\right.avi");
                 File.Delete(Path.GetDirectoryName(Application.ExecutablePath) + "\\youtube.flv");
             }
             ChangeStatus("Status: Video file saved successfuly.");
             progressBar.Value = 0;
             break;
         case ConvertionState.Video2D:
             ChangeForm(true);
             ChangeStatus("Status: Video file saved successfuly.");
             progressBar.Value = 0;
             break;
     }
 }
Exemplo n.º 4
0
 private void ConvertFrom(string inFile)
 {
     _processedFile = inFile;
     if (chk3D.Checked)
     {
         _state = ConvertionState.Left;
         MakeLeft();
     }
     else
     {
         _state = ConvertionState.Video2D;
         Make2D();
     }
 }