[1046] | 1 | #ifndef _ERRORS_H
|
---|
| 2 | #define _ERRORS_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 - Error and Success Codes */
|
---|
| 12 | #define VFW_S_NO_MORE_ITEMS 0x00040103
|
---|
| 13 | #define VFW_S_DUPLICATE_NAME 0x0004022D
|
---|
| 14 | #define VFW_S_STATE_INTERMEDIATE 0x00040237
|
---|
| 15 | #define VFW_S_PARTIAL_RENDER 0x00040242
|
---|
| 16 | #define VFW_S_SOME_DATA_IGNORED 0x00040245
|
---|
| 17 | #define VFW_S_CONNECTIONS_DEFERRED 0x00040246
|
---|
| 18 | #define VFW_S_RESOURCE_NOT_NEEDED 0x00040250
|
---|
| 19 | #define VFW_S_MEDIA_TYPE_IGNORED 0x00040254
|
---|
| 20 | #define VFW_S_VIDEO_NOT_RENDERED 0x00040257
|
---|
| 21 | #define VFW_S_AUDIO_NOT_RENDERED 0x00040258
|
---|
| 22 | #define VFW_S_RPZA 0x0004025A
|
---|
| 23 | #define VFW_S_ESTIMATED 0x00040260
|
---|
| 24 | #define VFW_S_RESERVED 0x00040263
|
---|
| 25 | #define VFW_S_STREAM_OFF 0x00040267
|
---|
| 26 | #define VFW_S_CANT_CUE 0x00040268
|
---|
| 27 | #define VFW_S_NOPREVIEWPIN 0x0004027E
|
---|
| 28 | #define VFW_S_DVD_NON_ONE_SEQUENTIAL 0x00040280
|
---|
| 29 | #define VFW_S_DVD_CHANNEL_CONTENTS_NOT_AVAILABLE 0x0004028C
|
---|
| 30 | #define VFW_S_DVD_NOT_ACCURATE 0x0004028D
|
---|
| 31 | #define VFW_E_INVALIDMEDIATYPE 0x80040200
|
---|
| 32 | #define VFW_E_INVALIDSUBTYPE 0x80040201
|
---|
| 33 | #define VFW_E_NEED_OWNER 0x80040202
|
---|
| 34 | #define VFW_E_ENUM_OUT_OF_SYNC 0x80040203
|
---|
| 35 | #define VFW_E_ALREADY_CONNECTED 0x80040204
|
---|
| 36 | #define VFW_E_FILTER_ACTIVE 0x80040205
|
---|
| 37 | #define VFW_E_NO_TYPES 0x80040206
|
---|
| 38 | #define VFW_E_NO_ACCEPTABLE_TYPES 0x80040207
|
---|
| 39 | #define VFW_E_INVALID_DIRECTION 0x80040208
|
---|
| 40 | #define VFW_E_NOT_CONNECTED 0x80040209
|
---|
| 41 | #define VFW_E_NO_ALLOCATOR 0x8004020A
|
---|
| 42 | #define VFW_E_RUNTIME_ERROR 0x8004020B
|
---|
| 43 | #define VFW_E_BUFFER_NOTSET 0x8004020C
|
---|
| 44 | #define VFW_E_BUFFER_OVERFLOW 0x8004020D
|
---|
| 45 | #define VFW_E_BADALIGN 0x8004020E
|
---|
| 46 | #define VFW_E_ALREADY_COMMITTED 0x8004020F
|
---|
| 47 | #define VFW_E_BUFFERS_OUTSTANDING 0x80040210
|
---|
| 48 | #define VFW_E_NOT_COMMITTED 0x80040211
|
---|
| 49 | #define VFW_E_SIZENOTSET 0x80040212
|
---|
| 50 | #define VFW_E_NO_CLOCK 0x80040213
|
---|
| 51 | #define VFW_E_NO_SINK 0x80040214
|
---|
| 52 | #define VFW_E_NO_INTERFACE 0x80040215
|
---|
| 53 | #define VFW_E_NOT_FOUND 0x80040216
|
---|
| 54 | #define VFW_E_CANNOT_CONNECT 0x80040217
|
---|
| 55 | #define VFW_E_CANNOT_RENDER 0x80040218
|
---|
| 56 | #define VFW_E_CHANGING_FORMAT 0x80040219
|
---|
| 57 | #define VFW_E_NO_COLOR_KEY_SET 0x8004021A
|
---|
| 58 | #define VFW_E_NOT_OVERLAY_CONNECTION 0x8004021B
|
---|
| 59 | #define VFW_E_NOT_SAMPLE_CONNECTION 0x8004021C
|
---|
| 60 | #define VFW_E_PALETTE_SET 0x8004021D
|
---|
| 61 | #define VFW_E_COLOR_KEY_SET 0x8004021E
|
---|
| 62 | #define VFW_E_NO_COLOR_KEY_FOUND 0x8004021F
|
---|
| 63 | #define VFW_E_NO_PALETTE_AVAILABLE 0x80040220
|
---|
| 64 | #define VFW_E_NO_DISPLAY_PALETTE 0x80040221
|
---|
| 65 | #define VFW_E_TOO_MANY_COLORS 0x80040222
|
---|
| 66 | #define VFW_E_STATE_CHANGED 0x80040223
|
---|
| 67 | #define VFW_E_NOT_STOPPED 0x80040224
|
---|
| 68 | #define VFW_E_NOT_PAUSED 0x80040225
|
---|
| 69 | #define VFW_E_NOT_RUNNING 0x80040226
|
---|
| 70 | #define VFW_E_WRONG_STATE 0x80040227
|
---|
| 71 | #define VFW_E_START_TIME_AFTER_END 0x80040228
|
---|
| 72 | #define VFW_E_INVALID_RECT 0x80040229
|
---|
| 73 | #define VFW_E_TYPE_NOT_ACCEPTED 0x8004022A
|
---|
| 74 | #define VFW_E_SAMPLE_REJECTED 0x8004022B
|
---|
| 75 | #define VFW_E_SAMPLE_REJECTED_EOS 0x8004022C
|
---|
| 76 | #define VFW_E_DUPLICATE_NAME 0x8004022D
|
---|
| 77 | #define VFW_E_TIMEOUT 0x8004022E
|
---|
| 78 | #define VFW_E_INVALID_FILE_FORMAT 0x8004022F
|
---|
| 79 | #define VFW_E_ENUM_OUT_OF_RANGE 0x80040230
|
---|
| 80 | #define VFW_E_CIRCULAR_GRAPH 0x80040231
|
---|
| 81 | #define VFW_E_NOT_ALLOWED_TO_SAVE 0x80040232
|
---|
| 82 | #define VFW_E_TIME_ALREADY_PASSED 0x80040233
|
---|
| 83 | #define VFW_E_ALREADY_CANCELLED 0x80040234
|
---|
| 84 | #define VFW_E_CORRUPT_GRAPH_FILE 0x80040235
|
---|
| 85 | #define VFW_E_ADVISE_ALREADY_SET 0x80040236
|
---|
| 86 | #define VFW_E_NO_MODEX_AVAILABLE 0x80040238
|
---|
| 87 | #define VFW_E_NO_ADVISE_SET 0x80040239
|
---|
| 88 | #define VFW_E_NO_FULLSCREEN 0x8004023A
|
---|
| 89 | #define VFW_E_IN_FULLSCREEN_MODE 0x8004023B
|
---|
| 90 | #define VFW_E_UNKNOWN_FILE_TYPE 0x80040240
|
---|
| 91 | #define VFW_E_CANNOT_LOAD_SOURCE_FILTER 0x80040241
|
---|
| 92 | #define VFW_E_FILE_TOO_SHORT 0x80040243
|
---|
| 93 | #define VFW_E_INVALID_FILE_VERSION 0x80040244
|
---|
| 94 | #define VFW_E_INVALID_CLSID 0x80040247
|
---|
| 95 | #define VFW_E_INVALID_MEDIA_TYPE 0x80040248
|
---|
| 96 | #define VFW_E_SAMPLE_TIME_NOT_SET 0x80040249
|
---|
| 97 | #define VFW_E_MEDIA_TIME_NOT_SET 0x80040251
|
---|
| 98 | #define VFW_E_NO_TIME_FORMAT_SET 0x80040252
|
---|
| 99 | #define VFW_E_MONO_AUDIO_HW 0x80040253
|
---|
| 100 | #define VFW_E_NO_DECOMPRESSOR 0x80040255
|
---|
| 101 | #define VFW_E_NO_AUDIO_HARDWARE 0x80040256
|
---|
| 102 | #define VFW_E_RPZA 0x80040259
|
---|
| 103 | #define VFW_E_PROCESSOR_NOT_SUITABLE 0x8004025B
|
---|
| 104 | #define VFW_E_UNSUPPORTED_AUDIO 0x8004025C
|
---|
| 105 | #define VFW_E_UNSUPPORTED_VIDEO 0x8004025D
|
---|
| 106 | #define VFW_E_MPEG_NOT_CONSTRAINED 0x8004025E
|
---|
| 107 | #define VFW_E_NOT_IN_GRAPH 0x8004025F
|
---|
| 108 | #define VFW_E_NO_TIME_FORMAT 0x80040261
|
---|
| 109 | #define VFW_E_READ_ONLY 0x80040262
|
---|
| 110 | #define VFW_E_BUFFER_UNDERFLOW 0x80040264
|
---|
| 111 | #define VFW_E_UNSUPPORTED_STREAM 0x80040265
|
---|
| 112 | #define VFW_E_NO_TRANSPORT 0x80040266
|
---|
| 113 | #define VFW_E_BAD_VIDEOCD 0x80040269
|
---|
| 114 | #define VFW_S_NO_STOP_TIME 0x80040270
|
---|
| 115 | #define VFW_E_OUT_OF_VIDEO_MEMORY 0x80040271
|
---|
| 116 | #define VFW_E_VP_NEGOTIATION_FAILED 0x80040272
|
---|
| 117 | #define VFW_E_DDRAW_CAPS_NOT_SUITABLE 0x80040273
|
---|
| 118 | #define VFW_E_NO_VP_HARDWARE 0x80040274
|
---|
| 119 | #define VFW_E_NO_CAPTURE_HARDWARE 0x80040275
|
---|
| 120 | #define VFW_E_DVD_OPERATION_INHIBITED 0x80040276
|
---|
| 121 | #define VFW_E_DVD_INVALIDDOMAIN 0x80040277
|
---|
| 122 | #define VFW_E_DVD_NO_BUTTON 0x80040278
|
---|
| 123 | #define VFW_E_DVD_GRAPHNOTREADY 0x80040279
|
---|
| 124 | #define VFW_E_DVD_RENDERFAIL 0x8004027A
|
---|
| 125 | #define VFW_E_DVD_DECNOTENOUGH 0x8004027B
|
---|
| 126 | #define VFW_E_DDRAW_VERSION_NOT_SUITABLE 0x8004027C
|
---|
| 127 | #define VFW_E_COPYPROT_FAILED 0x8004027D
|
---|
| 128 | #define VFW_E_TIME_EXPIRED 0x8004027F
|
---|
| 129 | #define VFW_E_DVD_WRONG_SPEED 0x80040281
|
---|
| 130 | #define VFW_E_DVD_MENU_DOES_NOT_EXIST 0x80040282
|
---|
| 131 | #define VFW_E_DVD_CMD_CANCELLED 0x80040283
|
---|
| 132 | #define VFW_E_DVD_STATE_WRONG_VERSION 0x80040284
|
---|
| 133 | #define VFW_E_DVD_STATE_CORRUPT 0x80040285
|
---|
| 134 | #define VFW_E_DVD_STATE_WRONG_DISC 0x80040286
|
---|
| 135 | #define VFW_E_DVD_INCOMPATIBLE_REGION 0x80040287
|
---|
| 136 | #define VFW_E_DVD_NO_ATTRIBUTES 0x80040288
|
---|
| 137 | #define VFW_E_DVD_NO_GOUP_PGC 0x80040289
|
---|
| 138 | #define VFW_E_DVD_LOW_PARENTAL_LEVEL 0x8004028A
|
---|
| 139 | #define VFW_E_DVD_NOT_IN_KARAOKE_MODE 0x8004028B
|
---|
| 140 | #define VFW_E_FRAME_STEP_UNSUPPORTED 0x8004028E
|
---|
| 141 | #define VFW_E_DVD_STREAM_DISABLED 0x8004028F
|
---|
| 142 | #define VFW_E_DVD_TITLE_UNKNOWN 0x80040290
|
---|
| 143 | #define VFW_E_DVD_INVALID_DISC 0x80040291
|
---|
| 144 | #define VFW_E_DVD_NO_RESUME_INFORMATION 0x80040292
|
---|
| 145 | #define VFW_E_PIN_ALREADY_BLOCKED_ON_THIS_THREAD 0x80040293
|
---|
| 146 | #define VFW_E_PIN_ALREADY_BLOCKED 0x80040294
|
---|
| 147 | #define VFW_E_CERTIFICATION_FAILURE 0x80040295
|
---|
| 148 | #define VFW_E_VMR_NOT_IN_MIXER_MODE 0x80040296
|
---|
| 149 | #define VFW_E_VMR_NO_AP_SUPPLIED 0x80040297
|
---|
| 150 | #define VFW_E_VMR_NO_DEINTERLACE_HW 0x80040298
|
---|
| 151 | #define VFW_E_VMR_NO_PROCAMP_HW 0x80040299
|
---|
| 152 | #define VFW_E_DVD_VMR9_INCOMPATIBLEDEC 0x8004029A
|
---|
| 153 | #define VFW_E_NO_COPP_HW 0x8004029B
|
---|
| 154 | #define VFW_E_BAD_KEY 0x800403F2
|
---|
| 155 | /*--- DirectShow Reference - Functions */
|
---|
| 156 | #define MAX_ERROR_TEXT_LEN 160
|
---|
| 157 | /*--- DirectShow Reference - Functions */
|
---|
| 158 | DWORD WINAPI AMGetErrorTextA(HRESULT,CHAR*,DWORD);
|
---|
| 159 | DWORD WINAPI AMGetErrorTextW(HRESULT,WCHAR*,DWORD);
|
---|
| 160 | #ifdef UNICODE
|
---|
| 161 | #define AMGetErrorText AMGetErrorTextW
|
---|
| 162 | #else
|
---|
| 163 | #define AMGetErrorText AMGetErrorTextA
|
---|
| 164 | #endif
|
---|
| 165 |
|
---|
| 166 | #ifdef __cplusplus
|
---|
| 167 | }
|
---|
| 168 | #endif
|
---|
| 169 | #endif
|
---|