源过滤器数据流 [英] Source filter data flow
问题描述
我写了很多dshow过滤器,并且我知道网站在解释数据流,例如:
I wrote a lot of dshow filters and I know sites explaining data flow like:
http://msdn.microsoft.com/zh-cn/library/dd388376%28VS.85%29.aspx
http://msdn.microsoft.com/en-us/library/dd388376%28VS.85%29.aspx
但我仍然有未解决的问题.
but I still have open questions.
例如,使用基于CSourceStream类的推式源过滤器,我不了解fillbuffer的工作原理.
For example using push source filter based on CSourceStream class, I don't understand how fillbuffer works.
我认为fillbuffer将填充由DecideBufferSize确定的缓冲区,而下游过滤器将在单独的线程中清空该缓冲区.
I thought fillbuffer will fill buffer decided in DecideBufferSize and downstream filter will empty that buffer in a separate thtread.
但是经验告诉我,fillbuffer和dowstream过滤器顺序工作.
but experience tells me that fillbuffer and dowstream filter work sequentially.
您知道这是如何工作的吗?
Any idea how this really works?
推荐答案
Don't know if you've seen this one http://msdn.microsoft.com/en-us/library/dd757807(VS.85).aspx , it talks about source filters and CSourceStream.
这篇关于源过滤器数据流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!