DirectShow-13 Seeking
来源:互联网 发布:ae mac中文破解版下载 编辑:程序博客网 时间:2024/06/06 13:07
IMediaSeeking
这是一个很重要的接口,它能支持实现大多数的VCR操作。
主要实现的功能:
1) 定位到数据流中的一个绝对位置
2) 返回数据流的持续时间
3) 返回数据流中的当前播放位置
4) 回放。
2) 返回数据流的持续时间
3) 返回数据流中的当前播放位置
4) 回放。
Seeking能力描述:
typedef enum AM_SEEKING_SeekingCapabilities {
AM_SEEKING_CanSeekAbsolute = 0x1,
AM_SEEKING_CanSeekForwards = 0x2,
AM_SEEKING_CanSeekBackwards = 0x4,
AM_SEEKING_CanGetCurrentPos = 0x8,
AM_SEEKING_CanGetStopPos = 0x10,
AM_SEEKING_CanGetDuration = 0x20,
AM_SEEKING_CanPlayBackwards = 0x40,
AM_SEEKING_CanDoSegments = 0x80,
AM_SEEKING_Source = 0x100
} AM_SEEKING_SEEKING_CAPABILITIES;
AM_SEEKING_CanSeekAbsolute = 0x1,
AM_SEEKING_CanSeekForwards = 0x2,
AM_SEEKING_CanSeekBackwards = 0x4,
AM_SEEKING_CanGetCurrentPos = 0x8,
AM_SEEKING_CanGetStopPos = 0x10,
AM_SEEKING_CanGetDuration = 0x20,
AM_SEEKING_CanPlayBackwards = 0x40,
AM_SEEKING_CanDoSegments = 0x80,
AM_SEEKING_Source = 0x100
} AM_SEEKING_SEEKING_CAPABILITIES;
判断能力:
DWORD dwCap = 0;
HRESULT hr = pSeek->GetCapabilities(&dwCap);
if (AM_SEEKING_CanSeekAbsolute & dwCap)
{
// Graph can seek to absolute positions.
}
HRESULT hr = pSeek->GetCapabilities(&dwCap);
if (AM_SEEKING_CanSeekAbsolute & dwCap)
{
// Graph can seek to absolute positions.
}
当前位置和停止位置
设置回放速率
设置时间格式
0 0
- DirectShow-13 Seeking
- seeking missile
- Seeking precision function
- ApiDemo--Animation/Seeking
- DirectShow
- DirectShow
- directshow
- directshow
- Directshow
- DirectShow
- directshow
- DirectShow
- directshow
- directshow
- DIRECTSHOW
- directshow
- directshow
- Heat-Seeking Missile Game Physics
- 多核程序设计技术
- 文件读写
- 树状数组-高低桥
- DirectDraw
- DirectDraw系统集成
- DirectShow-13 Seeking
- 回调函数
- DirectShow - 14 DirectShow的线程和临界区
- 【iOS开发】---- 强大的UI修改工具 UIAppearance
- 关于移动中的button的响应问题
- Cocos2dx 小技巧(一)预定义文件路径
- 小说名词解释:种田派
- 时间管理推荐书目
- BitmapFactory.Options.inSampleSize 的用法