当前位置: 首页>>代码示例>>C#>>正文


C# Binding.Open方法代码示例

本文整理汇总了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;
		}
开发者ID:davinx,项目名称:Imint.Media.DirectShow,代码行数:11,代码来源:Mpeg.cs

示例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;
		}
开发者ID:davinx,项目名称:Imint.Media.DirectShow,代码行数:15,代码来源:Wmv.cs

示例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;
		}
开发者ID:davinx,项目名称:Imint.Media.DirectShow,代码行数:16,代码来源:Avi.cs

示例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 }));
		}
开发者ID:davinx,项目名称:Imint.Media.DirectShow,代码行数:4,代码来源:General.cs

示例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 }))));
		}
开发者ID:davinx,项目名称:Imint.Media.DirectShow,代码行数:4,代码来源:File.cs


注:本文中的Binding.Open方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。