1 #ifndef _EVCODE_H 2 #define _EVCODE_H 3 #if __GNUC__ >=3 4 #pragma GCC system_header 5 #endif 6 7 #ifdef __cplusplus 8 extern "C" { 9 #endif 10 11 /*--- DirectShow Reference - Constants and GUIDs - Event Notification Codes */ 12 #define EC_ACTIVATE 0x0013 13 #define EC_BUFFERING_DATA 0x0011 14 #define EC_BUILT 0x0300 15 #define EC_CLOCK_CHANGED 0x000D 16 #define EC_CLOCK_UNSET 0x0051 17 #define EC_CODECAPI_EVENT 0x0057 18 #define EC_COMPLETE 0x0001 19 #define EC_DEVICE_LOST 0x001F 20 #define EC_DISPLAY_CHANGED 0x0016 21 #define EC_END_OF_SEGMENT 0x001C 22 #define EC_ERROR_STILLPLAYING 0x0008 23 #define EC_ERRORABORT 0x0003 24 #define EC_EXTDEVICE_MODE_CHANGE 0x0031 25 #define EC_FULLSCREEN_LOST 0x0012 26 #define EC_GRAPH_CHANGED 0x0050 27 #define EC_LENGTH_CHANGED 0x001E 28 #define EC_NEED_RESTART 0x0014 29 #define EC_NOTIFY_WINDOW 0x0019 30 #define EC_OLE_EVENT 0x0018 31 #define EC_OPENING_FILE 0x0010 32 #define EC_PALETTE_CHANGED 0x0009 33 #define EC_PAUSED 0x000E 34 #define EC_PREPROCESS_COMPLETE 0x0056 35 #define EC_QUALITY_CHANGE 0x000B 36 #define EC_REPAINT 0x0005 37 #define EC_SEGMENT_STARTED 0x001D 38 #define EC_SHUTTING_DOWN 0x000C 39 #define EC_SNDDEV_IN_ERROR 0x0200 40 #define EC_SNDDEV_OUT_ERROR 0x0201 41 #define EC_STARVATION 0x0017 42 #define EC_STATE_CHANGE 0x0032 43 #define EC_STEP_COMPLETE 0x0024 44 #define EC_STREAM_CONTROL_STARTED 0x001B 45 #define EC_STREAM_CONTROL_STOPPED 0x001A 46 #define EC_STREAM_ERROR_STILLPLAYING 0x0007 47 #define EC_STREAM_ERROR_STOPPED 0x0006 48 #define EC_TIMECODE_AVAILABLE 0x0030 49 #define EC_UNBUILT 0x0301 50 #define EC_USERABORT 0x0002 51 #define EC_VIDEO_SIZE_CHANGED 0x000A 52 #define EC_VMR_RENDERDEVICE_SET 0x0053 53 #define EC_VMR_SURFACE_FLIPPED 0x0054 54 #define EC_VMR_RECONNECTION_FAILED 0x0055 55 #define EC_WINDOW_DESTROYED 0x0015 56 #define EC_WMT_EVENT 0x0252 57 #define EC_WMT_INDEX_EVENT 0x0251 58 #define EC_USER 0x8000 59 /*--- DirectShow Reference - DirectShow Structures */ 60 typedef struct { 61 HRESULT hrStatus; 62 void *pData; 63 } AM_WMT_EVENT_DATA; 64 65 #ifdef __cplusplus 66 } 67 #endif 68 #endif 69