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

        /*
         * public void StartRecord(string fname, int frate, int width, int height)
         * {
         *  if (writer != null)
         *  {
         *      writer.Dispose();
         *      writer = null;
         *  }
         *
         *  writer = new AVIWriter();
         *  writer.Open(fname, frate, width, height);
         * }
         */

        // start record
        public void StartRecord(string codec, string fname, int frate, int width, int height)
        {
            if (writer != null)
            {
                writer.Dispose();
                writer = null;
            }

            writer = new AVIWriter(codec);
            writer.Open(fname, frate, width, height);
        }
Beispiel #4
0
        // start record
        /*
        public void StartRecord(string fname, int frate, int width, int height)
        {
            if (writer != null)
            {
                writer.Dispose();
                writer = null;
            }

            writer = new AVIWriter();
            writer.Open(fname, frate, width, height);
        }
        */

        // start record
        public void StartRecord(string codec, string fname, int frate, int width, int height)
        {
            if (writer != null)
            {
                writer.Dispose();
                writer = null;
            }

            writer = new AVIWriter(codec);
            writer.Open(fname, frate, width, height);
        }
Beispiel #5
0
 // virtual dispose
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (writer != null)
         {
             writer.Close();
             writer.Dispose();
             writer = null;
         }
     }
 }
Beispiel #6
0
 // virtual dispose
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (writer != null)
         {
             writer.Close();
             writer.Dispose();
             writer = null;
         }
     }
 }
Beispiel #7
0
 // Saves the video.
 public AviConverter()
 {
     writer = new AVIWriter();
 }
Beispiel #8
0
 // Saves the video.
 public AviConverter()
 {
     writer = new AVIWriter();
 }