TwoPin

所属分类:DirextX编程
开发工具:Visual C++
文件大小:15KB
下载次数:188
上传日期:2007-04-28 20:59:16
上 传 者cyrys
说明:  这是一个DirectShow的Filter,可以起到对音、视频流分流的作用,可以单独控制其中一路。要求首先配置好DirectShow开发环境!
(This is a DirectShow Filter, can be played on the sound, Video streaming role, which alone can control all the way. It demanded DirectShow good development environment!)

文件列表:
INFTee (0, 2006-04-15)
INFTee\inftee.cpp (35574, 2002-11-12)
INFTee\inftee.def (493, 2002-11-12)
INFTee\inftee.dsp (10033, 2002-11-12)
INFTee\inftee.dsw (535, 2002-11-12)
INFTee\inftee.h (5508, 2002-11-12)
INFTee\inftee.rc (709, 2002-11-12)
INFTee\inftee.sln (1334, 2002-11-12)
INFTee\inftee.vcproj (9887, 2002-11-12)

//----------------------------------------------------------------------------- // Name: DirectShow Sample -- InfTee Filter // // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- Description =========== Infinite-pin tee filter. This filter has one input pin and a dynamic number of output pins. All data samples sent to the filter are delivered down all paths simultaneously, thereby teeing the input into multiple separate output streams. Path ===== Source: \Samples\C++\DirectShow\Filters\InfTee> User's Guide ============ The filter sends the same data down all of the output pins; therefore, the pins must have negotiated the same media type during connection. The infinite-pin tee filter handles this negotiation so that the input pin and both output pins converge when using the same media type. If a suitable media type cannot be found, then the connection is rejected. The filter always uses the suggested allocator; the filter that provides the data suggests the allocator. The data arriving at the input pin is not copied before it is sent to the output pins. The filter also ensures that the data is delivered to the downstream filters, to guarantee that both outputs receive timely service. In particular, if one of the outputs can block in the COutputQueue::Receive member function, then the tee spins off a thread to deliver the sample. If there were no thread to deliver the sample, then the thread that delivers the sample to the tee input pin might pass the data to a downstream filter; at that point, it might block, keeping data from the other downstream filter for long periods of time.

近期下载者

相关文件


收藏者