科技行者

行者学院 转型私董会 科技行者专题报道 网红大战科技行者

知识库

知识库 安全导航

至顶网软件频道基础软件DirectShow开发快速入门之事件通知机制

DirectShow开发快速入门之事件通知机制

  • 扫一扫
    分享文章到微信

  • 扫一扫
    关注官方公众号
    至顶头条

这篇文档描述DirectShow中事件产生的机制,以及应用程序是如何处理事件的。

作者:智慧的鱼 来源:天极开发 2007年10月16日

关键字:

  • 评论
  • 分享微博
  • 分享邮件
事件通知码(Event Notification Codes)

  常用的事件通知码如下:

Event notification code Description
1 EC_ACTIVATE
A video window is being activated or deactivated.
2EC_BUFFERING_DATA
The graph is buffering data, or has stopped buffering data.
3EC_BUILT
Send by the Video Control when a graph has been built. Not forwarded to applications.
4EC_CLOCK_CHANGED
The reference clock has changed.
5EC_CLOCK_UNSET
The clock provider was disconnected.
6EC_CODECAPI_EVENT
Sent by an encoder to signal an encoding event.
7EC_COMPLETE
All data from a particular stream has been rendered.
8EC_DEVICE_LOST
A Plug and Play device was removed or has become available again.
9EC_DISPLAY_CHANGED
The display mode has changed.
10EC_END_OF_SEGMENT
The end of a segment has been reached.
11EC_ERROR_STILLPLAYING
An asynchronous command to run the graph has failed.
12EC_ERRORABORT
An operation was aborted because of an error.
13 EC_EXTDEVICE_MODE_CHANGE
Not supported.
14EC_FULLSCREEN_LOST
The video renderer is switching out of full-screen mode.
15EC_GRAPH_CHANGED
The filter graph has changed.
16EC_LENGTH_CHANGED
The length of a source has changed.
17EC_NEED_RESTART
A filter is requesting that the graph be restarted.
18EC_NOTIFY_WINDOW
Notifies a filter of the video renderer's window.
19EC_OLE_EVENT
A filter is passing a text string to the application.
20EC_OPENING_FILE
The graph is opening a file, or has finished opening a file.
21EC_PALETTE_CHANGED
The video palette has changed.
22EC_PAUSED
A pause request has completed.
23EC_QUALITY_CHANGE
The graph is dropping samples, for quality control.
24EC_REPAINT
A video renderer requires a repaint.
25EC_SEGMENT_STARTED
A new segment has started.
26EC_SHUTTING_DOWN
The filter graph is shutting down, prior to being destroyed.
27EC_SNDDEV_IN_ERROR
An audio device error has occurred on an input pin.
28EC_SNDDEV_OUT_ERROR
An audio device error has occurred on an output pin.
29EC_STARVATION
A filter is not receiving enough data.
30EC_STATE_CHANGE
The filter graph has changed state.
31EC_STEP_COMPLETE
A filter performing frame stepping has stepped the specified number of frames.
32EC_STREAM_CONTROL_STARTED
A stream-control start command has taken effect.
33EC_STREAM_CONTROL_STOPPED
A stream-control start command has taken effect.
34EC_STREAM_ERROR_STILLPLAYING
An error has occurred in a stream. The stream is still playing.
35EC_STREAM_ERROR_STOPPED
A stream has stopped because of an error.
36EC_TIMECODE_AVAILABLE
Not supported.
37EC_UNBUILT Send by the Video Control when a graph has been torn down. Not forwarded to applications.
38EC_USERABORT
The user has terminated playback.
39EC_VIDEO_SIZE_CHANGED
The native video size has changed.
40EC_VMR_RENDERDEVICE_SET
Sent when the VMR has selected its rendering mechanism.
41EC_VMR_SURFACE_FLIPPED
Sent when the VMR-7's allocator presenter has called the DirectDraw Flip method on the surface being presented.
42EC_VMR_RECONNECTION_FAILED
Sent by the VMR-7 and the VMR-9 when it was unable to accept a dynamic format change request from the upstream decoder.
43EC_WINDOW_DESTROYED
The video renderer was destroyed or removed from the graph.
44EC_WMT_EVENT
Sent by the Windows Media Format SDK when an application uses the ASF Reader filter to play ASF files protected by digital rights management (DRM).
45EC_WMT_INDEX_EVENT
Sent by the Windows Media Format SDK when an application uses the ASF Writer to index Windows Media Video files.

查看本文来源

    • 评论
    • 分享微博
    • 分享邮件
    邮件订阅

    如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。

    重磅专题
    往期文章
    最新文章