本文整理汇总了C#中Binding.Open方法的典型用法代码示例。如果您正苦于以下问题:C# Binding.Open方法的具体用法?C# Binding.Open怎么用?C# Binding.Open使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Binding
的用法示例。
在下文中一共展示了Binding.Open方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Open
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;
}
示例2: Open
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;
}
示例3: Open
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;
}
示例4: Open
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 }));
}
示例5: Open
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 }))));
}