예제 #1
0
        public void RefreshCodecs()
        {
            // Available Codecs
            AvailableCodecs.Clear();
            AvailableCodecs.Add(new AviCodec("Gif"));

            foreach (var codec in AviWriter.EnumerateEncoders())
            {
                AvailableCodecs.Add(codec);
            }

            SelectedCodec = AviCodec.MotionJpeg;
        }
예제 #2
0
        void InitSharpAviCodecs()
        {
            foreach (var codec in AviWriter.EnumerateEncoders())
            {
                var item = new SharpAviItem(codec);

                AvailableVideoWriters.Add(item);

                // Set MotionJpeg as default
                if (codec == AviCodec.MotionJpeg)
                {
                    SelectedVideoWriter = item;
                }
            }
        }
예제 #3
0
        public static void RefreshCodecs()
        {
            // Available Codecs
            AvailableCodecs.Clear();
            AvailableCodecs.Add(new AviCodec("Gif"));

            foreach (var Codec in AviWriter.EnumerateEncoders())
            {
                AvailableCodecs.Add(Codec);
            }

            if (Instance != null)
            {
                Instance.EncodersBox.SelectedIndex = 2;
            }
        }