Beispiel #1
0
 // Saves the video.
 public AviConverter(string fromName, string toName, string codec)
 {
     fileFrom = fromName;
     fileTo = toName;
     writer = new AVIWriter(codec);
     reader = new AVIReader();
 }
Beispiel #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;
                }
            }
        }
Beispiel #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;
                }
            }
        }