Esempio n. 1
0
        protected override bool Open(Binding.IGraph graph, string file)
        {
            bool result = false;

            DirectShow.Binding.Filters.SampleGrabber.All samplegrabber = new DirectShow.Binding.Filters.SampleGrabber.All()
            {
                Rate = this.Rate, FuzzyMatch = this.Fuzzy
            };
            if (this.Fuzzy)
            {
                result = graph.Open(new DirectShow.Binding.Filters.File.AsfReader(file, samplegrabber));
            }
            else
            {
                result = graph.Open(new DirectShow.Binding.Filters.File.AsfReader(file, new DirectShow.Binding.Filters.Decoder.Wmv(samplegrabber))
                {
                    Output = 0
                }) ||
                         graph.Open(new DirectShow.Binding.Filters.File.AsfReader(file, new DirectShow.Binding.Filters.Decoder.Wmv(samplegrabber))
                {
                    Output = 1
                }) ||
                         graph.Open(new DirectShow.Binding.Filters.File.AsfReader(file, new DirectShow.Binding.Filters.Decompressor.Mjpeg(samplegrabber))
                {
                    Output = 0
                }) ||
                         graph.Open(new DirectShow.Binding.Filters.File.AsfReader(file, new DirectShow.Binding.Filters.Decompressor.Mjpeg(samplegrabber))
                {
                    Output = 1
                });
            }
            return(result);
        }
Esempio n. 2
0
        protected override bool Open(Binding.IGraph graph, string file)
        {
            bool result = false;

            DirectShow.Binding.Filters.SampleGrabber.All samplegrabber = new DirectShow.Binding.Filters.SampleGrabber.All()
            {
                Rate = this.Rate, FuzzyMatch = this.Fuzzy
            };
            if (this.Fuzzy)
            {
                result = graph.Open(new DirectShow.Binding.Filters.File.Source(file, samplegrabber));
            }
            else
            {
                result = graph.Open(new DirectShow.Binding.Filters.File.Source(file, new DirectShow.Binding.Filters.Demultiplexer.Mpeg2(new DirectShow.Binding.Filters.Decoder.Mpeg2(new DirectShow.Binding.Filters.Dmo.ColorConverter(samplegrabber)))
                {
                    Output = 0
                })) ||
                         graph.Open(new DirectShow.Binding.Filters.File.Source(file, new DirectShow.Binding.Filters.Demultiplexer.Mpeg2(new DirectShow.Binding.Filters.Decoder.Mpeg2(new DirectShow.Binding.Filters.Dmo.ColorConverter(samplegrabber)))
                {
                    Output = 1
                }));
            }
            return(result);
        }
Esempio n. 3
0
 protected override bool Open(Binding.IGraph graph, string file)
 {
     return(graph.Open(new DirectShow.Binding.Filters.File.Source(file, new DirectShow.Binding.Filters.SampleGrabber.All()
     {
         FuzzyMatch = this.Fuzzy, Rate = this.Rate
     })));
 }
Esempio n. 4
0
 protected override bool Open(Binding.IGraph graph, string file)
 {
     return(graph.Open(new Filters.IO.Reader(file, new Filters.Demultiplexer.Mpeg2(new Filters.Decoder.Mpeg2(new DirectShow.Binding.Filters.SampleGrabber.All()
     {
         Rate = this.Rate
     })))));
 }
Esempio n. 5
0
        protected override bool Open(Binding.IGraph graph, string file)
        {
            bool result = false;

            DirectShow.Binding.Filters.SampleGrabber.All samplegrabber = new DirectShow.Binding.Filters.SampleGrabber.All()
            {
                Rate = this.Rate, FuzzyMatch = this.Fuzzy
            };
            if (this.Fuzzy)
            {
                result = graph.Open(new DirectShow.Binding.Filters.File.Source(file, samplegrabber));
            }
            else
            {
                result = graph.Open(new DirectShow.Binding.Filters.File.Source(file, new DirectShow.Binding.Filters.Demultiplexer.AviSplitter(new DirectShow.Binding.Filters.Decoder.Wmv(samplegrabber)))) ||
                         graph.Open(new DirectShow.Binding.Filters.File.Source(file, new DirectShow.Binding.Filters.Demultiplexer.AviSplitter(new DirectShow.Binding.Filters.Decompressor.Mjpeg(samplegrabber)))) ||
                         graph.Open(new DirectShow.Binding.Filters.File.Source(file, new DirectShow.Binding.Filters.Demultiplexer.AviSplitter(new DirectShow.Binding.Filters.Dmo.Mpeg4(samplegrabber)))) ||
                         graph.Open(new DirectShow.Binding.Filters.File.Source(file, new DirectShow.Binding.Filters.Demultiplexer.AviSplitter(new DirectShow.Binding.Filters.Dmo.Mpeg43(samplegrabber)))) ||
                         graph.Open(new DirectShow.Binding.Filters.File.Source(file, new DirectShow.Binding.Filters.Demultiplexer.AviSplitter(new DirectShow.Binding.Filters.Dmo.Mpeg4s(samplegrabber)))) ||
                         graph.Open(new DirectShow.Binding.Filters.File.Source(file, new DirectShow.Binding.Filters.Demultiplexer.AviSplitter(new DirectShow.Binding.Filters.Decompressor.Avi(samplegrabber)))) ||
                         graph.Open(new DirectShow.Binding.Filters.File.Source(file, new DirectShow.Binding.Filters.Demultiplexer.AviSplitter(new DirectShow.Binding.Filters.Decoder.Dv(samplegrabber))));
            }
            return(result);
        }