dirctshow 基础知识

FilgraphManager对象

这是一个最基本的控制器控制对象,看方法就知道了

属性描述
FilterCollection当前所有过滤器集合.
RegFilterCollection注册表过滤器集合.

方法Description
AddSourceFilter加入一个源.
GetState获取过滤器状态.
Pause暂停.
RenderFile创建过滤器图标.
Run开始运行.
Stop停止.
StopWhenReady等待播放.

IBasicAudio接口

这个接口主要是用来处理音的.

属性描述
Balance设置或者获取音效平衡.
Volume

设置或者获取音量.

IVideoWindow接口
这个接口主要处理和窗口相关的控制器.

方法描述
get_AutoShow获取释放自动播放.
get_BackgroundPaletteQueries whether the video window realizes its palette in the background.
get_BorderColorRetrieves the color that appears around the edges of the destination rectangle.
get_CaptionRetrieves the video window caption.
get_FullScreenModeQueries whether the video renderer is in full-screen mode.
get_HeightRetrieves the height of the video window.
get_LeftRetrieves the video window's x-coordinate.
get_MessageDrainRetrieves the window that receives mouse and keyboard messages from the video window, if any.
get_OwnerRetrieves the video window's parent window, if any.
get_TopRetrieves the video window's y-coordinate.
get_VisibleQueries whether the video window is visible.
get_WidthRetrieves the width of the video window.
get_WindowStateQueries whether the video window is visible, hidden, minimized, or maximized.
get_WindowStyleRetrieves the window style on the video window.
get_WindowStyleExRetrieves the extended window style on the video window.
GetMaxIdealImageSizeRetrieves the maximum ideal size for the video image.
GetMinIdealImageSizeRetrieves the minimum ideal size for the video image.
GetRestorePositionRetrieves the restored window position.
GetWindowPositionRetrieves the position of the video window.
HideCursorHides the cursor.
IsCursorHiddenQueries whether the cursor is hidden.
NotifyOwnerMessageForwards a message to the video window.
put_AutoShowSpecifies whether the video renderer automatically shows the video window when it receives video data.
put_BackgroundPaletteSpecifies whether the video window realizes its palette in the background.
put_BorderColorSets the color that appears around the edges of the destination rectangle.
put_CaptionSets the video window caption.
put_FullScreenModeEnables or disables full-screen mode.
put_HeightSets the height of the video window.
put_LeftSets the video window's x-coordinate.
put_MessageDrainSpecifies a window to receive mouse and keyboard messages from the video window.
put_OwnerSpecifies a parent window for the video window.
put_TopSets the video window's y-coordinate.
put_VisibleShows or hides the video window.
put_WidthSets the width of the video window.
put_WindowStateShows, hides, minimizes, or maximizes the video window.
put_WindowStyleSets the window style on the video window.
put_WindowStyleExSets the extended window style on the video window.
SetWindowForegroundPlaces the video window at the top of the Z order.
SetWindowPositionSets the position of the video window.

IMediaEvent 接口 
此接口主要处理媒体事件.

方法描述
CancelDefaultHandling取消控制器对某事件的默认接口
FreeEventParams释放事件资源
GetEvent从事件列队获取下一事件.
GetEventHandle从列队获取可用事件句柄.
RestoreDefaultHandling保存控制器对某事件的接口为默认
WaitForCompletion等待控制器处理数据.

IMediaEventEx接口
继承的是IMediaEvent 接口。

方法描述
SetNotifyWindow注册一个窗口到进程事件信息.
SetNotifyFlags设置事件信息可用.
GetNotifyFlags

获取事件信息可用.


IMediaPosition 接口

这个接口主要处理播放流的的时间对应的位置信息.

MethodDescription
get_DurationRetrieves the duration of the stream.
put_CurrentPositionSets the current position, relative to the total duration of the stream.
get_CurrentPositionRetrieves the current position, relative to the total duration of the stream.
get_StopTimeRetrieves the time at which the playback will stop, relative to the duration of the stream.
put_StopTimeSets the time at which the playback will stop, relative to the duration of the stream.
get_PrerollTimeRetrieves the amount of data that will be queued before the start position.
put_PrerollTimeSets the amount of data that will be queued before the start position.
put_RateSets the playback rate.
get_RateRetrieves the playback rate.
CanSeekForwardDetermines whether the filter graph can seek forward in the stream.
CanSeekBackwardDetermines whether the filter graph can seek backward in the stream.

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值