Directshow中的时钟(Time and Clocks in Dshow)[17]

[入库:2005年8月19日] [更新:2007年3月24日]

本文简介:选择自 aoosang 的 blog

如果你想为graph设置新的时钟,应用程序可以调用图表管理器的接口imediafilter::setsyncsource方法来选择一个参考时钟。

 如果你给setsyncsource传递的参数为nullgraph就不设置任何的参考时钟了。如果想恢复缺省的时钟,调用ifiltergraph::setdefaultsyncsource方法。

graph的参考时钟改变时,graph通过the reference clock changes, the filter graph manager notifies each filter by calling its imediafilter::setsyncsource通知所有的filter

2 clock times

directshow定义了两个相关的时间,参考时间reference time 数据流时间stream time

本文关键:Directshow中的时钟(Time and Clocks in Dshow)
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top