OSDN Git Service

Redo the filters based on assumptions discussed in mingw-dvlpr list.
[mingw/mingw-org-wsl.git] / include / errors.h
1 /**
2  * @file errors.h
3  * @copy 2012 MinGW.org project
4  *
5  * Permission is hereby granted, free of charge, to any person obtaining a
6  * copy of this software and associated documentation files (the "Software"),
7  * to deal in the Software without restriction, including without limitation
8  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9  * and/or sell copies of the Software, and to permit persons to whom the
10  * Software is furnished to do so, subject to the following conditions:
11  * 
12  * The above copyright notice and this permission notice (including the next
13  * paragraph) shall be included in all copies or substantial portions of the
14  * Software.
15  * 
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22  * DEALINGS IN THE SOFTWARE.
23  */
24 #ifndef _ERRORS_H
25 #define _ERRORS_H
26 #pragma GCC system_header
27
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31
32 /*--- DirectShow Reference - Constants and GUIDs - Error and Success Codes */
33 #define VFW_S_NO_MORE_ITEMS 0x00040103
34 #define VFW_S_DUPLICATE_NAME 0x0004022D
35 #define VFW_S_STATE_INTERMEDIATE 0x00040237
36 #define VFW_S_PARTIAL_RENDER 0x00040242
37 #define VFW_S_SOME_DATA_IGNORED 0x00040245
38 #define VFW_S_CONNECTIONS_DEFERRED 0x00040246
39 #define VFW_S_RESOURCE_NOT_NEEDED 0x00040250
40 #define VFW_S_MEDIA_TYPE_IGNORED 0x00040254
41 #define VFW_S_VIDEO_NOT_RENDERED 0x00040257
42 #define VFW_S_AUDIO_NOT_RENDERED 0x00040258
43 #define VFW_S_RPZA 0x0004025A
44 #define VFW_S_ESTIMATED 0x00040260
45 #define VFW_S_RESERVED 0x00040263
46 #define VFW_S_STREAM_OFF 0x00040267
47 #define VFW_S_CANT_CUE 0x00040268
48 #define VFW_S_NOPREVIEWPIN 0x0004027E
49 #define VFW_S_DVD_NON_ONE_SEQUENTIAL 0x00040280
50 #define VFW_S_DVD_CHANNEL_CONTENTS_NOT_AVAILABLE 0x0004028C
51 #define VFW_S_DVD_NOT_ACCURATE 0x0004028D
52 #define VFW_E_INVALIDMEDIATYPE 0x80040200
53 #define VFW_E_INVALIDSUBTYPE 0x80040201
54 #define VFW_E_NEED_OWNER 0x80040202
55 #define VFW_E_ENUM_OUT_OF_SYNC 0x80040203
56 #define VFW_E_ALREADY_CONNECTED 0x80040204
57 #define VFW_E_FILTER_ACTIVE 0x80040205
58 #define VFW_E_NO_TYPES 0x80040206
59 #define VFW_E_NO_ACCEPTABLE_TYPES 0x80040207
60 #define VFW_E_INVALID_DIRECTION 0x80040208
61 #define VFW_E_NOT_CONNECTED 0x80040209
62 #define VFW_E_NO_ALLOCATOR 0x8004020A
63 #define VFW_E_RUNTIME_ERROR 0x8004020B
64 #define VFW_E_BUFFER_NOTSET 0x8004020C
65 #define VFW_E_BUFFER_OVERFLOW 0x8004020D
66 #define VFW_E_BADALIGN 0x8004020E
67 #define VFW_E_ALREADY_COMMITTED 0x8004020F
68 #define VFW_E_BUFFERS_OUTSTANDING 0x80040210
69 #define VFW_E_NOT_COMMITTED 0x80040211
70 #define VFW_E_SIZENOTSET 0x80040212
71 #define VFW_E_NO_CLOCK 0x80040213
72 #define VFW_E_NO_SINK 0x80040214
73 #define VFW_E_NO_INTERFACE 0x80040215
74 #define VFW_E_NOT_FOUND 0x80040216
75 #define VFW_E_CANNOT_CONNECT 0x80040217
76 #define VFW_E_CANNOT_RENDER 0x80040218
77 #define VFW_E_CHANGING_FORMAT 0x80040219
78 #define VFW_E_NO_COLOR_KEY_SET 0x8004021A
79 #define VFW_E_NOT_OVERLAY_CONNECTION 0x8004021B
80 #define VFW_E_NOT_SAMPLE_CONNECTION 0x8004021C
81 #define VFW_E_PALETTE_SET 0x8004021D
82 #define VFW_E_COLOR_KEY_SET 0x8004021E
83 #define VFW_E_NO_COLOR_KEY_FOUND 0x8004021F
84 #define VFW_E_NO_PALETTE_AVAILABLE 0x80040220
85 #define VFW_E_NO_DISPLAY_PALETTE 0x80040221
86 #define VFW_E_TOO_MANY_COLORS 0x80040222
87 #define VFW_E_STATE_CHANGED 0x80040223
88 #define VFW_E_NOT_STOPPED 0x80040224
89 #define VFW_E_NOT_PAUSED 0x80040225
90 #define VFW_E_NOT_RUNNING 0x80040226
91 #define VFW_E_WRONG_STATE 0x80040227
92 #define VFW_E_START_TIME_AFTER_END 0x80040228
93 #define VFW_E_INVALID_RECT 0x80040229
94 #define VFW_E_TYPE_NOT_ACCEPTED 0x8004022A
95 #define VFW_E_SAMPLE_REJECTED 0x8004022B
96 #define VFW_E_SAMPLE_REJECTED_EOS 0x8004022C
97 #define VFW_E_DUPLICATE_NAME 0x8004022D
98 #define VFW_E_TIMEOUT 0x8004022E
99 #define VFW_E_INVALID_FILE_FORMAT 0x8004022F
100 #define VFW_E_ENUM_OUT_OF_RANGE 0x80040230
101 #define VFW_E_CIRCULAR_GRAPH 0x80040231
102 #define VFW_E_NOT_ALLOWED_TO_SAVE 0x80040232
103 #define VFW_E_TIME_ALREADY_PASSED 0x80040233
104 #define VFW_E_ALREADY_CANCELLED 0x80040234
105 #define VFW_E_CORRUPT_GRAPH_FILE 0x80040235
106 #define VFW_E_ADVISE_ALREADY_SET 0x80040236
107 #define VFW_E_NO_MODEX_AVAILABLE 0x80040238
108 #define VFW_E_NO_ADVISE_SET 0x80040239
109 #define VFW_E_NO_FULLSCREEN 0x8004023A
110 #define VFW_E_IN_FULLSCREEN_MODE 0x8004023B
111 #define VFW_E_UNKNOWN_FILE_TYPE 0x80040240
112 #define VFW_E_CANNOT_LOAD_SOURCE_FILTER 0x80040241
113 #define VFW_E_FILE_TOO_SHORT 0x80040243
114 #define VFW_E_INVALID_FILE_VERSION 0x80040244
115 #define VFW_E_INVALID_CLSID 0x80040247
116 #define VFW_E_INVALID_MEDIA_TYPE 0x80040248
117 #define VFW_E_SAMPLE_TIME_NOT_SET 0x80040249
118 #define VFW_E_MEDIA_TIME_NOT_SET 0x80040251
119 #define VFW_E_NO_TIME_FORMAT_SET 0x80040252
120 #define VFW_E_MONO_AUDIO_HW 0x80040253
121 #define VFW_E_NO_DECOMPRESSOR 0x80040255
122 #define VFW_E_NO_AUDIO_HARDWARE 0x80040256
123 #define VFW_E_RPZA 0x80040259
124 #define VFW_E_PROCESSOR_NOT_SUITABLE 0x8004025B
125 #define VFW_E_UNSUPPORTED_AUDIO 0x8004025C
126 #define VFW_E_UNSUPPORTED_VIDEO 0x8004025D
127 #define VFW_E_MPEG_NOT_CONSTRAINED 0x8004025E
128 #define VFW_E_NOT_IN_GRAPH 0x8004025F
129 #define VFW_E_NO_TIME_FORMAT 0x80040261
130 #define VFW_E_READ_ONLY 0x80040262
131 #define VFW_E_BUFFER_UNDERFLOW 0x80040264
132 #define VFW_E_UNSUPPORTED_STREAM 0x80040265
133 #define VFW_E_NO_TRANSPORT 0x80040266
134 #define VFW_E_BAD_VIDEOCD 0x80040269
135 #define VFW_S_NO_STOP_TIME 0x80040270
136 #define VFW_E_OUT_OF_VIDEO_MEMORY 0x80040271
137 #define VFW_E_VP_NEGOTIATION_FAILED 0x80040272
138 #define VFW_E_DDRAW_CAPS_NOT_SUITABLE 0x80040273
139 #define VFW_E_NO_VP_HARDWARE 0x80040274
140 #define VFW_E_NO_CAPTURE_HARDWARE 0x80040275
141 #define VFW_E_DVD_OPERATION_INHIBITED 0x80040276
142 #define VFW_E_DVD_INVALIDDOMAIN 0x80040277
143 #define VFW_E_DVD_NO_BUTTON 0x80040278
144 #define VFW_E_DVD_GRAPHNOTREADY 0x80040279
145 #define VFW_E_DVD_RENDERFAIL 0x8004027A
146 #define VFW_E_DVD_DECNOTENOUGH 0x8004027B
147 #define VFW_E_DDRAW_VERSION_NOT_SUITABLE 0x8004027C
148 #define VFW_E_COPYPROT_FAILED 0x8004027D
149 #define VFW_E_TIME_EXPIRED 0x8004027F
150 #define VFW_E_DVD_WRONG_SPEED 0x80040281
151 #define VFW_E_DVD_MENU_DOES_NOT_EXIST 0x80040282
152 #define VFW_E_DVD_CMD_CANCELLED 0x80040283
153 #define VFW_E_DVD_STATE_WRONG_VERSION 0x80040284
154 #define VFW_E_DVD_STATE_CORRUPT 0x80040285
155 #define VFW_E_DVD_STATE_WRONG_DISC 0x80040286
156 #define VFW_E_DVD_INCOMPATIBLE_REGION 0x80040287
157 #define VFW_E_DVD_NO_ATTRIBUTES 0x80040288
158 #define VFW_E_DVD_NO_GOUP_PGC 0x80040289
159 #define VFW_E_DVD_LOW_PARENTAL_LEVEL 0x8004028A
160 #define VFW_E_DVD_NOT_IN_KARAOKE_MODE 0x8004028B
161 #define VFW_E_FRAME_STEP_UNSUPPORTED 0x8004028E
162 #define VFW_E_DVD_STREAM_DISABLED 0x8004028F
163 #define VFW_E_DVD_TITLE_UNKNOWN 0x80040290
164 #define VFW_E_DVD_INVALID_DISC 0x80040291
165 #define VFW_E_DVD_NO_RESUME_INFORMATION 0x80040292
166 #define VFW_E_PIN_ALREADY_BLOCKED_ON_THIS_THREAD 0x80040293
167 #define VFW_E_PIN_ALREADY_BLOCKED 0x80040294
168 #define VFW_E_CERTIFICATION_FAILURE 0x80040295
169 #define VFW_E_VMR_NOT_IN_MIXER_MODE 0x80040296
170 #define VFW_E_VMR_NO_AP_SUPPLIED 0x80040297
171 #define VFW_E_VMR_NO_DEINTERLACE_HW 0x80040298
172 #define VFW_E_VMR_NO_PROCAMP_HW 0x80040299
173 #define VFW_E_DVD_VMR9_INCOMPATIBLEDEC 0x8004029A
174 #define VFW_E_NO_COPP_HW 0x8004029B
175 #define VFW_E_BAD_KEY 0x800403F2
176 /*--- DirectShow Reference - Functions */
177 #define MAX_ERROR_TEXT_LEN 160
178 /*--- DirectShow Reference - Functions */
179 DWORD WINAPI AMGetErrorTextA(HRESULT,CHAR*,DWORD);
180 DWORD WINAPI AMGetErrorTextW(HRESULT,WCHAR*,DWORD);
181 #ifdef UNICODE
182 #define AMGetErrorText AMGetErrorTextW
183 #else
184 #define AMGetErrorText AMGetErrorTextA
185 #endif
186
187 #ifdef __cplusplus
188 }
189 #endif
190 #endif