📄 evcode.h
字号:
#define EC_OLE_EVENT 0x18
// ( BSTR, BSTR ) : application
// Sent by a filter to pass a text string to the application.
// Conventionally, the first string is a type, and the second a parameter.
#define EC_NOTIFY_WINDOW 0x19
// ( HWND, void ) : internal
// Pass the window handle around during pin connection.
#define EC_STREAM_CONTROL_STOPPED 0x1A
// ( IPin * pSender, DWORD dwCookie )
// Notification that an earlier call to IAMStreamControl::StopAt
// has now take effect. Calls to the method can be marked
// with a cookie which is passed back in the second parameter,
// allowing applications to easily tie together request
// and completion notifications.
//
// NB: IPin will point to the pin that actioned the Stop. This
// may not be the pin that the StopAt was sent to.
#define EC_STREAM_CONTROL_STARTED 0x1B
// ( IPin * pSender, DWORD dwCookie )
// Notification that an earlier call to IAMStreamControl::StartAt
// has now take effect. Calls to the method can be marked
// with a cookie which is passed back in the second parameter,
// allowing applications to easily tie together request
// and completion notifications.
//
// NB: IPin will point to the pin that actioned the Start. This
// may not be the pin that the StartAt was sent to.
#define EC_END_OF_SEGMENT 0x1C
//
// ( const REFERENCE_TIME *pStreamTimeAtEndOfSegment, DWORD dwSegmentNumber )
//
// pStreamTimeAtEndOfSegment
// pointer to the accumulated stream clock
// time since the start of the segment - this is directly computable
// as the sum of the previous and current segment durations (Stop - Start)
// and the rate applied to each segment
// The source add this time to the time within each segment to get
// a total elapsed time
//
// dwSegmentNumber
// Segment number - starts at 0
//
// Notifies that a segment end has been reached when the
// AM_SEEKING_Segment flags was set for IMediaSeeking::SetPositions
// Passes in an IMediaSeeking interface to allow the next segment
// to be defined by the application
#define EC_SEGMENT_STARTED 0x1D
//
// ( const REFERENCE_TIME *pStreamTimeAtStartOfSegment, DWORD dwSegmentNumber)
//
// pStreamTimeAtStartOfSegment
// pointer to the accumulated stream clock
// time since the start of the segment - this is directly computable
// as the sum of the previous segment durations (Stop - Start)
// and the rate applied to each segment
//
// dwSegmentNumber
// Segment number - starts at 0
//
// Notifies that a new segment has been started.
// This is sent synchronously by any entity that will issue
// EC_END_OF_SEGMENT when a new segment is started
// (See IMediaSeeking::SetPositions - AM_SEEKING_Segment flag)
// It is used to compute how many EC_END_OF_SEGMENT notifications
// to expect at the end of a segment and as a consitency check
#define EC_LENGTH_CHANGED 0x1E
// (void, void)
// sent to indicate that the length of the "file" has changed
#define EC_DEVICE_LOST 0x1f
// (IUnknown, 0)
//
// request window notification when the device is available again
// (through WM_DEVICECHANGED messages registered with
// RegisterDeviceNotification; see IAMDeviceRemoval interface)
#define EC_STEP_COMPLETE 0x24
// (BOOL bCacelled, void)
// Step request complete
// if bCancelled is TRUE the step was cancelled. This can happen
// if the application issued some control request or because there
// was a mode change etc etc
// Event code 25 is reserved for future use.
#define EC_TIMECODE_AVAILABLE 0x30
// Sent by filter supporting timecode
// Param1 has a pointer to the sending object
// Param2 has the device ID of the sending object
#define EC_EXTDEVICE_MODE_CHANGE 0x31
// Sent by filter supporting IAMExtDevice
// Param1 has the new mode
// Param2 has the device ID of the sending object
#define EC_STATE_CHANGE 0x32
// ( FILTER_STATE, BOOL bInternal)
// Used to notify the application of any state changes in the filter graph.
// lParam1 is of type enum FILTER_STATE (defined in strmif.h) and indicates
// the state of the filter graph.
//
// lParam2 == 0 indicates that the previous state change request has completed
// & a change in application state.
// lParam2 == 1 reserved for future use to indicate internal state changes.
#define EC_GRAPH_CHANGED 0x50
// Sent by filter to notify interesting graph changes
#define EC_CLOCK_UNSET 0x51
// ( void, void ) : application
// Used to notify the filter graph to unset the current graph clock.
// Has the affect of forcing the filter graph to reestablish the graph clock
// on the next Pause/Run (note that this is only used by ksproxy, when the pin
// of a clock providing filter is disconnected)
#define EC_VMR_RENDERDEVICE_SET 0x53
// (Render_Device type, void)
// Identifies the type of rendering mechanism the VMR
// is using to display video. Types used include:
#define VMR_RENDER_DEVICE_OVERLAY 0x01
#define VMR_RENDER_DEVICE_VIDMEM 0x02
#define VMR_RENDER_DEVICE_SYSMEM 0x04
#define EC_VMR_SURFACE_FLIPPED 0x54
// (hr - Flip return code, void)
// Identifies the VMR's allocator-presenter has called the DDraw flip api on
// the surface being presented. This allows the VMR to keep its DX-VA table
// of DDraw surfaces in sync with DDraws flipping chain.
#define EC_VMR_RECONNECTION_FAILED 0x55
// (hr - ReceiveConnection return code, void)
// Identifies that an upstream decoder tried to perform a dynamic format
// change and the VMR was unable to accept the new format.
//------------------------------------------
//
// BDA events:
//
// Event code 0x80 through 0x8f are reserved for BDA
//
//------------------------------------------
//
// WindowsMedia SDK filter-specific events:
//
//
// Note that for EC_WMT_EVENT events the wmsdk-based filters use the following structure for
// passing event parameters to the app:
#ifndef AM_WMT_EVENT_DATA_DEFINED
#define AM_WMT_EVENT_DATA_DEFINED
typedef struct {
HRESULT hrStatus; // status code
void * pData; // event data
} AM_WMT_EVENT_DATA;
#endif
//
#define EC_WMT_EVENT_BASE 0x0251
//
#define EC_WMT_INDEX_EVENT EC_WMT_EVENT_BASE
// WindowsMedia SDK-originated file indexing status, sent by WMSDK-based filters
//
// lParam1 is one of the enum WMT_STATUS messages listed below, sent by the WindowsMedia SDK
// lParam2 is specific to the lParam event
//
// the following WMT_STATUS messages are sent for this event:
// WMT_STARTED - lParam2 is 0
// WMT_CLOSED - lParam2 is 0
// WMT_INDEX_PROGRESS - lParam2 is a DWORD containing the progress percent complete
//
#define EC_WMT_EVENT EC_WMT_EVENT_BASE+1
// WindowsMedia SDK-originated event, sent by WMSDK-based filters
//
// lParam1 is one of the enum WMT_STATUS messages listed below, sent by the WindowsMedia SDK
// lParam2 is a pointer an AM_WMT_EVENT_DATA structure where,
// hrStatus is the status code sent by the wmsdk
// pData is specific to the lParam1 event
//
// the following WMT_STATUS messages are sent by the WMSDK Reader filter for this event:
// WMT_NO_RIGHTS - pData is a pointer to a WCHAR string containing a challenge URL
// WMT_ACQUIRE_LICENSE - lParam2 is a pointer to a WM_GET_LICENSE_DATA struct
// WMT_NO_RIGHTS_EX - lParam2 is a pointer to a WM_GET_LICENSE_DATA struct
// WMT_NEEDS_INDIVIDUALIZATION - lParam2 is NULL
// WMT_INDIVIDUALIZE - lParam2 is a pointer to a WM_INDIVIDUALIZE_STATUS struct
//
// end WMSDK-originated events
//-----------------------------------------
#define EC_BUILT 0x300
// Sent to notify transition from unbuilt to built state
#define EC_UNBUILT 0x301
// Sent to notify transtion from built to unbuilt state
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -