Exemple #1
0
 // Saves the video.
 public AviConverter(string fromName, string toName, string codec)
 {
     fileFrom = fromName;
     fileTo = toName;
     writer = new AVIWriter(codec);
     reader = new AVIReader();
 }
Exemple #2
0
        // virtual dispose
        protected virtual void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (reader != null)
                {
                    reader.Close();
                    reader.Dispose();
                    reader = null;
                }

                if (writer != null)
                {
                    writer.Close();
                    writer.Dispose();
                    writer = null;
                }
            }
        }
Exemple #3
0
        // virtual dispose
        protected virtual void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (reader != null)
                {
                    reader.Close();
                    reader.Dispose();
                    reader = null;
                }

                if (writer != null)
                {
                    writer.Close();
                    writer.Dispose();
                    writer = null;
                }
            }
        }