开发者

How to modify the properties of a DirectShow Filter Output Pin on the fly?

I have a DirectShow source filter for receiving a Network stream containing RFC2435 data (MJPEG开发者_如何学C over RTP).

The properties of the source filter's output pin need to be set-up prior to receiving the stream which is the only source of the image's dimension data. The dimensions for the output pin are currently set to some default values (640x480).

Is it possible to modify the properties of the Output Pin to reflect the new image's dimensions after the output pin has already been created and connected to another filter which decodes the MJPEG data?


I believe the answer is to use the 'Dynamic Format Change' mechanism which can be used to switch media types. This can be done several different ways depending on whether the graph is active or stopped. The following page on MSDN explains the details.

http://msdn.microsoft.com/en-us/library/dd388731(VS.85).aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜