Merge from amd64-branch:
[reactos.git] / reactos / include / dxsdk / axextend.idl
1 /*
2 * Copyright (C) 2002 Robert Shearman
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19 interface IAMAnalogVideoDecoder;
20 interface IAMAnalogVideoEncoder;
21 interface IAMAudioInputMixer;
22 interface IAMAudioRendererStats;
23 interface IAMBufferNegotiation;
24 interface IAMCameraControl;
25 interface IAMCopyCaptureFileProgress;
26 interface IAMCrossbar;
27 interface IAMDevMemoryAllocator;
28 interface IAMDevMemoryControl;
29 interface IAMDroppedFrames;
30 interface IAMExtDevice;
31 interface IAMExtTransport;
32 interface IAMGraphStreams;
33 interface IAMLatency;
34 interface IAMOpenProgress;
35 interface IAMOverlayFX;
36 interface IAMPhysicalPinInfo;
37 interface IAMPushSource;
38 interface IAMStreamConfig;
39 interface IAMTimecodeDisplay;
40 interface IAMTimecodeGenerator;
41 interface IAMTimecodeReader;
42 interface IAMTVTuner;
43 interface IAMVfwCaptureDialogs;
44 interface IAMVfwCompressDialogs;
45 interface IAMVideoCompression;
46 interface IAMVideoDecimationProperties;
47 interface IAMVideoProcAmp;
48 interface ICaptureGraphBuilder;
49 interface ICaptureGraphBuilder2;
50 interface IConfigAviMux;
51 interface IConfigInterleaving;
52 interface IDecimateVideoImage;
53 interface IDrawVideoImage;
54 interface IEnumRegFilters;
55 interface IEnumStreamIdMap;
56 interface IFileSourceFilter;
57 interface IFileSinkFilter;
58 interface IFileSinkFilter2;
59 interface IFilterMapper;
60 interface IFilterMapper2;
61 interface IGraphBuilder;
62 interface IKsPropertySet;
63 interface IMediaEventSink;
64 interface IMpeg2Demultiplexer;
65 interface IMPEG2StreamIdMap;
66 interface IOverlay;
67 interface IOverlayNotify;
68 interface IOverlayNotify2;
69 interface IQualityControl;
70 interface ISeekingPassThru;
71
72 typedef struct
73 {
74 CLSID Clsid;
75 LPWSTR Name;
76 } REGFILTER;
77
78 [
79 object,
80 uuid(56a868a4-0ad4-11ce-b03a-0020af0ba770),
81 pointer_default(unique)
82 ]
83 interface IEnumRegFilters : IUnknown
84 {
85 HRESULT Next
86 ( [in] ULONG cFilters,
87 [out] REGFILTER ** apRegFilter,
88 [out] ULONG * pcFetched
89 );
90
91 HRESULT Skip(
92 [in] ULONG cFilters
93 );
94
95 HRESULT Reset(void);
96
97 HRESULT Clone(
98 [out] IEnumRegFilters **ppEnum
99 );
100 }
101
102
103 typedef IEnumRegFilters *PENUMREGFILTERS;
104
105 [
106 object,
107 uuid(56a868a3-0ad4-11ce-b03a-0020af0ba770),
108 pointer_default(unique)
109 ]
110 interface IFilterMapper : IUnknown
111 {
112 enum { MERIT_PREFERRED = 0x800000,
113 MERIT_NORMAL = 0x600000,
114 MERIT_UNLIKELY = 0x400000,
115 MERIT_DO_NOT_USE = 0x200000,
116 MERIT_SW_COMPRESSOR = 0x100000,
117 MERIT_HW_COMPRESSOR = 0x100050
118 };
119
120 HRESULT RegisterFilter
121 ( [in] CLSID clsid,
122 [in] LPCWSTR Name,
123 [in] DWORD dwMerit
124 );
125
126 HRESULT RegisterFilterInstance
127 ( [in] CLSID clsid,
128 [in] LPCWSTR Name,
129 [out] CLSID *MRId
130 );
131
132
133 HRESULT RegisterPin
134 ( [in] CLSID Filter,
135 [in] LPCWSTR Name,
136 [in] BOOL bRendered,
137 [in] BOOL bOutput,
138 [in] BOOL bZero,
139 [in] BOOL bMany,
140 [in] CLSID ConnectsToFilter,
141 [in] LPCWSTR ConnectsToPin
142 );
143
144 HRESULT RegisterPinType
145 ( [in] CLSID clsFilter,
146 [in] LPCWSTR strName,
147 [in] CLSID clsMajorType,
148 [in] CLSID clsSubType
149 );
150
151
152 HRESULT UnregisterFilter
153 ( [in] CLSID Filter
154 );
155
156
157 HRESULT UnregisterFilterInstance
158 ( [in] CLSID MRId
159 );
160
161
162 HRESULT UnregisterPin
163 ( [in] CLSID Filter,
164 [in] LPCWSTR Name
165 );
166
167 HRESULT EnumMatchingFilters
168 ( [out] IEnumRegFilters **ppEnum,
169 [in] DWORD dwMerit,
170 [in] BOOL bInputNeeded,
171 [in] CLSID clsInMaj,
172 [in] CLSID clsInSub,
173 [in] BOOL bRender,
174 [in] BOOL bOututNeeded,
175 [in] CLSID clsOutMaj,
176 [in] CLSID clsOutSub
177 );
178
179 }
180
181 typedef struct
182 {
183 const CLSID * clsMajorType;
184 const CLSID * clsMinorType;
185 } REGPINTYPES;
186
187 typedef struct
188 {
189 LPWSTR strName;
190 BOOL bRendered;
191 BOOL bOutput;
192 BOOL bZero;
193 BOOL bMany;
194 const CLSID * clsConnectsToFilter;
195 const WCHAR * strConnectsToPin;
196 UINT nMediaTypes;
197 const REGPINTYPES * lpMediaType;
198 } REGFILTERPINS;
199
200 typedef struct
201 {
202 CLSID clsMedium;
203 DWORD dw1;
204 DWORD dw2;
205 } REGPINMEDIUM;
206
207 enum
208 {
209 REG_PINFLAG_B_ZERO = 0x1,
210 REG_PINFLAG_B_RENDERER = 0x2,
211 REG_PINFLAG_B_MANY = 0x4,
212 REG_PINFLAG_B_OUTPUT = 0x8
213 };
214
215
216 typedef struct
217 {
218 DWORD dwFlags;
219 UINT cInstances;
220 UINT nMediaTypes;
221 [size_is(nMediaTypes)] const REGPINTYPES * lpMediaType;
222 UINT nMediums;
223 [size_is(nMediums)] const REGPINMEDIUM *lpMedium;
224 const CLSID *clsPinCategory;
225 } REGFILTERPINS2;
226
227 typedef struct
228 {
229 DWORD dwVersion;
230 DWORD dwMerit;
231 [switch_is(dwVersion)] [switch_type(DWORD)] union
232 {
233 [case(1)]
234 struct
235 {
236 ULONG cPins;
237 [size_is(cPins)] const REGFILTERPINS *rgPins;
238 } DUMMYSTRUCTNAME;
239
240 [case(2)]
241 struct
242 {
243 ULONG cPins2;
244 [size_is(cPins2)] const REGFILTERPINS2 *rgPins2;
245 } DUMMYSTRUCTNAME1;
246
247 [default]
248 ;
249 } DUMMYUNIONNAME;
250
251 } REGFILTER2;
252
253
254 [
255 object,
256 uuid(b79bb0b0-33c1-11d1-abe1-00a0c905f375),
257 pointer_default(unique)
258 ]
259 interface IFilterMapper2 : IUnknown
260 {
261 HRESULT CreateCategory
262 ( [in] REFCLSID clsidCategory,
263 [in] DWORD dwCategoryMerit,
264 [in] LPCWSTR Description
265 );
266
267 HRESULT UnregisterFilter
268 ( [in] const CLSID *pclsidCategory,
269 [in] LPCOLESTR szInstance,
270 [in] REFCLSID Filter
271 );
272
273 HRESULT RegisterFilter
274 ( [in] REFCLSID clsidFilter,
275 [in] LPCWSTR Name,
276 [in, out] IMoniker **ppMoniker,
277 [in] const CLSID *pclsidCategory,
278 [in] LPCOLESTR szInstance,
279 [in] const REGFILTER2 *prf2
280 );
281
282 HRESULT EnumMatchingFilters
283 ( [out] IEnumMoniker **ppEnum,
284 [in] DWORD dwFlags,
285 [in] BOOL bExactMatch,
286 [in] DWORD dwMerit,
287 [in] BOOL bInputNeeded,
288 [in] DWORD cInputTypes,
289 [size_is(cInputTypes*2)] const GUID *pInputTypes,
290 [in] const REGPINMEDIUM *pMedIn,
291 [in] const CLSID *pPinCategoryIn,
292 [in] BOOL bRender,
293 [in] BOOL bOutputNeeded,
294 [in] DWORD cOutputTypes,
295 [size_is(cOutputTypes*2)] const GUID *pOutputTypes,
296 [in] const REGPINMEDIUM *pMedOut,
297 [in] const CLSID *pPinCategoryOut
298 );
299 }
300
301 [
302 object,
303 uuid(b79bb0b1-33c1-11d1-abe1-00a0c905f375),
304 pointer_default(unique)
305 ]
306 interface IFilterMapper3 : IFilterMapper2
307 {
308 HRESULT GetICreateDevEnum( [out] ICreateDevEnum **ppEnum );
309 }
310
311 typedef enum tagQualityMessageType
312 {
313 Famine,
314 Flood
315 } QualityMessageType;
316
317 typedef struct tagQuality
318 {
319 QualityMessageType Type;
320 LONG Proportion;
321 REFERENCE_TIME Late;
322 REFERENCE_TIME TimeStamp;
323 } Quality;
324
325 typedef IQualityControl *PQUALITYCONTROL;
326
327 [
328 object,
329 uuid(56a868a5-0ad4-11ce-b03a-0020af0ba770),
330 pointer_default(unique)
331 ]
332 interface IQualityControl : IUnknown
333 {
334 HRESULT Notify
335 ( [in] IBaseFilter * pSelf,
336 [in] Quality q
337 );
338
339 HRESULT SetSink
340 ( [in] IQualityControl * piqc
341 );
342 }
343
344 enum
345 {
346 CK_NOCOLORKEY = 0x0,
347 CK_INDEX = 0x1,
348 CK_RGB = 0x2
349 };
350
351 typedef struct tagCOLORKEY
352 {
353 DWORD KeyType;
354 DWORD PaletteIndex;
355 COLORREF LowColorValue;
356 COLORREF HighColorValue;
357 } COLORKEY;
358
359 enum
360 {
361 ADVISE_NONE = 0x0,
362 ADVISE_CLIPPING = 0x1,
363 ADVISE_PALETTE = 0x2,
364 ADVISE_COLORKEY = 0x4,
365 ADVISE_POSITION = 0x8,
366 ADVISE_DISPLAY_CHANGE = 0x10
367 };
368
369 const DWORD ADVISE_ALL = ADVISE_CLIPPING |
370 ADVISE_PALETTE |
371 ADVISE_COLORKEY |
372 ADVISE_POSITION;
373
374 const DWORD ADVISE_ALL2 = ADVISE_ALL |
375 ADVISE_DISPLAY_CHANGE;
376
377 cpp_quote("#ifndef _WINGDI_")
378
379 /* already defined in wingdi.h, but needed for WIDL */
380
381 typedef struct _RGNDATAHEADER
382 {
383 DWORD dwSize;
384 DWORD iType;
385 DWORD nCount;
386 DWORD nRgnSize;
387 RECT rcBound;
388 } RGNDATAHEADER;
389
390 typedef struct _RGNDATA
391 {
392 RGNDATAHEADER rdh;
393 char Buffer[1];
394 } RGNDATA;
395
396 cpp_quote("#endif /* _WINGDI_ */")
397
398 [
399 object,
400 local,
401 uuid(56a868a0-0ad4-11ce-b03a-0020af0ba770),
402 pointer_default(unique)
403 ]
404 interface IOverlayNotify : IUnknown
405 {
406 HRESULT OnPaletteChange(
407 [in] DWORD dwColors,
408 [in] const PALETTEENTRY *pPalette);
409
410 HRESULT OnClipChange(
411 [in] const RECT *pSourceRect,
412 [in] const RECT *pDestinationRect,
413 [in] const RGNDATA *pRgnData);
414
415 HRESULT OnColorKeyChange([in] const COLORKEY *pColorKey);
416
417 HRESULT OnPositionChange([in] const RECT *pSourceRect,
418 [in] const RECT *pDestinationRect);
419 }
420
421 typedef IOverlayNotify *POVERLAYNOTIFY;
422
423 [
424 object,
425 local,
426 uuid(680EFA10-D535-11D1-87C8-00A0C9223196),
427 pointer_default(unique)
428 ]
429 interface IOverlayNotify2 : IOverlayNotify
430 {
431 HRESULT OnDisplayChange(
432 HMONITOR hMonitor);
433 }
434
435 typedef IOverlayNotify2 *POVERLAYNOTIFY2;
436
437 [
438 object,
439 local,
440 uuid(56a868a1-0ad4-11ce-b03a-0020af0ba770),
441 pointer_default(unique)
442 ]
443 interface IOverlay : IUnknown
444 {
445 HRESULT GetPalette(
446 [out] DWORD *pdwColors,
447 [out] PALETTEENTRY **ppPalette);
448
449 HRESULT SetPalette(
450 [in] DWORD dwColors,
451 [in] PALETTEENTRY *pPalette);
452
453 HRESULT GetDefaultColorKey([out] COLORKEY *pColorKey);
454
455 HRESULT GetColorKey([out] COLORKEY *pColorKey);
456
457 HRESULT SetColorKey([in,out] COLORKEY *pColorKey);
458
459 HRESULT GetWindowHandle([out] HWND *pHwnd);
460
461 HRESULT GetClipList([out] RECT *pSourceRect,
462 [out] RECT *pDestinationRect,
463 [out] RGNDATA **ppRgnData);
464
465 HRESULT GetVideoPosition([out] RECT *pSourceRect,
466 [out] RECT *pDestinationRect);
467
468 HRESULT Advise(
469 [in] IOverlayNotify *pOverlayNotify,
470 [in] DWORD dwInterests);
471
472 HRESULT Unadvise();
473 }
474
475 typedef IOverlay *POVERLAY;
476
477 [
478 object,
479 uuid(56a868a2-0ad4-11ce-b03a-0020af0ba770),
480 pointer_default(unique)
481 ]
482 interface IMediaEventSink : IUnknown
483 {
484 HRESULT Notify(
485 [in] LONG EventCode,
486 [in] LONG_PTR EventParam1,
487 [in] LONG_PTR EventParam2
488 );
489 }
490
491 typedef IMediaEventSink *PMEDIAEVENTSINK;
492
493 [
494 object,
495 uuid(56a868a6-0ad4-11ce-b03a-0020af0ba770),
496 pointer_default(unique)
497 ]
498 interface IFileSourceFilter : IUnknown
499 {
500 HRESULT Load(
501 [in] LPCOLESTR pszFileName,
502 [in, unique] const AM_MEDIA_TYPE *pmt
503 );
504
505 HRESULT GetCurFile(
506 [out] LPOLESTR *ppszFileName,
507 [out] AM_MEDIA_TYPE *pmt
508 );
509 }
510
511 typedef IFileSourceFilter *PFILTERFILESOURCE;
512
513 [
514 object,
515 uuid(a2104830-7c70-11cf-8bce-00aa00a3f1a6),
516 pointer_default(unique)
517 ]
518 interface IFileSinkFilter : IUnknown
519 {
520 HRESULT SetFileName(
521 [in] LPCOLESTR pszFileName,
522 [in, unique] const AM_MEDIA_TYPE *pmt
523 );
524
525 HRESULT GetCurFile(
526 [out] LPOLESTR *ppszFileName,
527 [out] AM_MEDIA_TYPE *pmt
528 );
529 }
530
531 typedef IFileSinkFilter *PFILTERFILESINK;
532
533 [
534 object,
535 uuid(00855B90-CE1B-11d0-BD4F-00A0C911CE86),
536 pointer_default(unique)
537 ]
538 interface IFileSinkFilter2 : IFileSinkFilter
539 {
540 HRESULT SetMode(
541 [in] DWORD dwFlags
542 );
543
544 HRESULT GetMode(
545 [out] DWORD *pdwFlags
546 );
547 }
548
549 typedef IFileSinkFilter2 *PFILESINKFILTER2;
550
551 typedef enum
552 {
553 AM_FILE_OVERWRITE = 0x00000001,
554 } AM_FILESINK_FLAGS;
555
556 [
557 object,
558 uuid(56a868a9-0ad4-11ce-b03a-0020af0ba770),
559 pointer_default(unique)
560 ]
561 interface IGraphBuilder : IFilterGraph
562 {
563 HRESULT Connect
564 ( [in] IPin * ppinOut,
565 [in] IPin * ppinIn
566 );
567
568 HRESULT Render
569 ( [in] IPin * ppinOut
570 );
571
572 HRESULT RenderFile
573 ( [in] LPCWSTR lpcwstrFile,
574 [in, unique] LPCWSTR lpcwstrPlayList
575 );
576
577 HRESULT AddSourceFilter
578 ( [in] LPCWSTR lpcwstrFileName,
579 [in, unique] LPCWSTR lpcwstrFilterName,
580 [out] IBaseFilter* *ppFilter
581 );
582
583 HRESULT SetLogFile
584 ( [in] DWORD_PTR hFile
585 );
586
587 HRESULT Abort();
588
589 HRESULT ShouldOperationContinue();
590 }
591
592
593 [
594 object,
595 uuid(bf87b6e0-8c27-11d0-b3f0-00aa003761c5),
596 pointer_default(unique)
597 ]
598 interface ICaptureGraphBuilder : IUnknown {
599
600 HRESULT SetFiltergraph(
601 [in] IGraphBuilder *pfg);
602
603 HRESULT GetFiltergraph(
604 [out] IGraphBuilder **ppfg);
605
606 HRESULT SetOutputFileName(
607 [in] const GUID *pType,
608 [in] LPCOLESTR lpstrFile,
609 [out] IBaseFilter **ppf,
610 [out] IFileSinkFilter **ppSink);
611
612 [local] HRESULT FindInterface(
613 [in, unique] const GUID *pCategory,
614 [in] IBaseFilter *pf,
615 [in] REFIID riid,
616 [out] void **ppint);
617
618 [call_as(FindInterface)] HRESULT RemoteFindInterface(
619 [in, unique] const GUID *pCategory,
620 [in] IBaseFilter *pf,
621 [in] REFIID riid,
622 [out] IUnknown **ppint);
623
624 HRESULT RenderStream(
625 [in] const GUID *pCategory,
626 [in] IUnknown *pSource,
627 [in] IBaseFilter *pfCompressor,
628 [in] IBaseFilter *pfRenderer);
629
630 HRESULT ControlStream(
631 [in] const GUID *pCategory,
632 [in] IBaseFilter *pFilter,
633 [in] REFERENCE_TIME *pstart,
634 [in] REFERENCE_TIME *pstop,
635 [in] WORD wStartCookie,
636 [in] WORD wStopCookie);
637
638 HRESULT AllocCapFile(
639 [in] LPCOLESTR lpstr,
640 [in] DWORDLONG dwlSize);
641
642 HRESULT CopyCaptureFile(
643 [in] LPOLESTR lpwstrOld,
644 [in] LPOLESTR lpwstrNew,
645 [in] int fAllowEscAbort,
646 [in] IAMCopyCaptureFileProgress *pCallback);
647 }
648
649 [
650 object,
651 uuid(670d1d20-a068-11d0-b3f0-00aa003761c5),
652 pointer_default(unique)
653 ]
654 interface IAMCopyCaptureFileProgress : IUnknown
655 {
656 HRESULT Progress(
657 [in] int iProgress);
658 }
659
660 [
661 object,
662 uuid(93E5A4E0-2D50-11d2-ABFA-00A0C9C6E38D),
663 pointer_default(unique)
664 ]
665 interface ICaptureGraphBuilder2 : IUnknown
666 {
667 HRESULT SetFiltergraph(
668 [in] IGraphBuilder *pfg);
669
670 HRESULT GetFiltergraph(
671 [out] IGraphBuilder **ppfg);
672
673 HRESULT SetOutputFileName(
674 [in] const GUID *pType,
675 [in] LPCOLESTR lpstrFile,
676 [out] IBaseFilter **ppf,
677 [out] IFileSinkFilter **ppSink);
678
679 [local] HRESULT FindInterface(
680 [in] const GUID *pCategory,
681 [in] const GUID *pType,
682 [in] IBaseFilter *pf,
683 [in] REFIID riid,
684 [out] void **ppint);
685
686 [call_as(FindInterface)] HRESULT RemoteFindInterface(
687 [in] const GUID *pCategory,
688 [in] const GUID *pType,
689 [in] IBaseFilter *pf,
690 [in] REFIID riid,
691 [out] IUnknown **ppint);
692
693 HRESULT RenderStream(
694 [in] const GUID *pCategory,
695 [in] const GUID *pType,
696 [in] IUnknown *pSource,
697 [in] IBaseFilter *pfCompressor,
698 [in] IBaseFilter *pfRenderer);
699
700 HRESULT ControlStream(
701 [in] const GUID *pCategory,
702 [in] const GUID *pType,
703 [in] IBaseFilter *pFilter,
704 [in] REFERENCE_TIME *pstart,
705 [in] REFERENCE_TIME *pstop,
706 [in] WORD wStartCookie,
707 [in] WORD wStopCookie);
708
709 HRESULT AllocCapFile(
710 [in] LPCOLESTR lpstr,
711 [in] DWORDLONG dwlSize);
712
713 HRESULT CopyCaptureFile(
714 [in] LPOLESTR lpwstrOld,
715 [in] LPOLESTR lpwstrNew,
716 [in] int fAllowEscAbort,
717 [in] IAMCopyCaptureFileProgress *pCallback);
718
719 HRESULT FindPin(
720 [in] IUnknown *pSource,
721 [in] PIN_DIRECTION pindir,
722 [in] const GUID *pCategory,
723 [in] const GUID *pType,
724 [in] BOOL fUnconnected,
725 [in] int num,
726 [out] IPin **ppPin);
727 }
728
729 enum _AM_RENSDEREXFLAGS
730 {
731 AM_RENDEREX_RENDERTOEXISTINGRENDERERS = 0x01
732 };
733
734 [
735 object,
736 uuid(36b73882-c2c8-11cf-8b46-00805f6cef60),
737 pointer_default(unique)
738 ]
739 interface IFilterGraph2: IGraphBuilder
740 {
741 HRESULT AddSourceFilterForMoniker(
742 [in] IMoniker *pMoniker,
743 [in] IBindCtx *pCtx,
744 [in, unique] LPCWSTR lpcwstrFilterName,
745 [out] IBaseFilter **ppFilter
746 );
747
748 HRESULT ReconnectEx
749 ( [in] IPin * ppin,
750 [in, unique] const AM_MEDIA_TYPE *pmt
751 );
752
753 HRESULT RenderEx( [in] IPin *pPinOut,
754 [in] DWORD dwFlags,
755 [in, out] DWORD *pvContext
756 );
757 }
758
759 [
760 object,
761 local,
762 uuid(56a868bf-0ad4-11ce-b03a-0020af0ba770),
763 pointer_default(unique)
764 ]
765 interface IStreamBuilder : IUnknown
766 {
767 HRESULT Render
768 ( [in] IPin * ppinOut,
769 [in] IGraphBuilder * pGraph
770 );
771
772 HRESULT Backout
773 ( [in] IPin * ppinOut,
774 [in] IGraphBuilder * pGraph
775 );
776 }
777
778
779 /*****************************************************************************
780 * IAMStreamConfig interface
781 */
782 [
783 object,
784 uuid(c6e13340-30ac-11d0-a18c-00a0c9118956),
785 pointer_default(unique)
786 ]
787 interface IAMStreamConfig : IUnknown
788 {
789 HRESULT SetFormat( [in] AM_MEDIA_TYPE *pmt);
790 HRESULT GetFormat( [in] AM_MEDIA_TYPE **pmt);
791 HRESULT GetNumberOfCapabilities( [out] int *piCount, [out] int *piSize);
792 HRESULT GetStreamCaps( [in] int iIndex, [out] AM_MEDIA_TYPE **pmt,
793 [out] BYTE *pSCC);
794 }
795
796
797 typedef enum tagVideoProcAmpProperty
798 {
799 VideoProcAmp_Brightness,
800 VideoProcAmp_Contrast,
801 VideoProcAmp_Hue,
802 VideoProcAmp_Saturation,
803 VideoProcAmp_Sharpness,
804 VideoProcAmp_Gamma,
805 VideoProcAmp_ColorEnable,
806 VideoProcAmp_WhiteBalance,
807 VideoProcAmp_BacklightCompensation,
808 VideoProcAmp_Gain
809 } VideoProcAmpProperty;
810
811 typedef enum tagVideoProcAmpFlags
812 {
813 VideoProcAmp_Flags_Auto = 0x0001,
814 VideoProcAmp_Flags_Manual = 0x0002,
815 } VideoProcAmpFlags;
816
817 /*****************************************************************************
818 * IAMVideoProcAmp interface
819 */
820 [
821 object,
822 uuid(c6e13360-30ac-11d0-a18c-00a0c9118956),
823 pointer_default(unique)
824 ]
825 interface IAMVideoProcAmp : IUnknown
826 {
827 HRESULT GetRange( [in] LONG Property, [out] LONG *pMin, [out] LONG *pMax,
828 [out] LONG *pSteppingDelta, [out] LONG *pDefault,
829 [out] LONG *pCapsFlags);
830 HRESULT Set( [in] LONG Property, [in] LONG lValue, [in] LONG Flags);
831 HRESULT Get( [in] LONG Property, [out] LONG *lValue, [out] LONG *Flags);
832 }
833
834
835 [
836 object,
837 uuid(56a868aa-0ad4-11ce-b03a-0020af0ba770),
838 pointer_default(unique)
839 ]
840 interface IAsyncReader : IUnknown
841 {
842 HRESULT RequestAllocator(
843 [in] IMemAllocator* pPreferred,
844 [in] ALLOCATOR_PROPERTIES* pProps,
845 [out] IMemAllocator ** ppActual);
846
847 HRESULT Request(
848 [in] IMediaSample* pSample,
849 [in] DWORD_PTR dwUser);
850
851 HRESULT WaitForNext(
852 [in] DWORD dwTimeout,
853 [out] IMediaSample** ppSample,
854 [out] DWORD_PTR * pdwUser);
855
856 HRESULT SyncReadAligned(
857 [in] IMediaSample* pSample);
858
859 HRESULT SyncRead(
860 [in] LONGLONG llPosition,
861 [in] LONG lLength,
862 [out, size_is(lLength)]
863 BYTE* pBuffer);
864
865 HRESULT Length(
866 [out] LONGLONG* pTotal,
867 [out] LONGLONG* pAvailable);
868
869 HRESULT BeginFlush(void);
870
871 HRESULT EndFlush(void);
872 }
873
874
875 [
876 object,
877 uuid(56a868ab-0ad4-11ce-b03a-0020af0ba770),
878 pointer_default(unique)
879 ]
880 interface IGraphVersion : IUnknown
881 {
882 HRESULT QueryVersion(LONG* pVersion);
883 }
884
885 [
886 object,
887 uuid(56a868ad-0ad4-11ce-b03a-0020af0ba770),
888 pointer_default(unique)
889 ]
890 interface IResourceConsumer : IUnknown
891 {
892 HRESULT AcquireResource(
893 [in] LONG idResource);
894
895 HRESULT ReleaseResource(
896 [in] LONG idResource);
897 }
898
899
900 [
901 object,
902 uuid(56a868ac-0ad4-11ce-b03a-0020af0ba770),
903 pointer_default(unique)
904 ]
905 interface IResourceManager : IUnknown
906 {
907 HRESULT Register(
908 [in] LPCWSTR pName,
909 [in] LONG cResource,
910 [out] LONG* plToken
911 );
912
913 HRESULT RegisterGroup(
914 [in] LPCWSTR pName,
915 [in] LONG cResource,
916 [in, size_is(cResource)]
917 LONG* palTokens,
918 [out] LONG* plToken
919 );
920
921 HRESULT RequestResource(
922 [in] LONG idResource,
923 [in] IUnknown* pFocusObject,
924 [in] IResourceConsumer* pConsumer
925 );
926
927 HRESULT NotifyAcquire(
928 [in] LONG idResource,
929 [in] IResourceConsumer* pConsumer,
930 [in] HRESULT hr);
931
932 HRESULT NotifyRelease(
933 [in] LONG idResource,
934 [in] IResourceConsumer* pConsumer,
935 [in] BOOL bStillWant);
936
937 HRESULT CancelRequest(
938 [in] LONG idResource,
939 [in] IResourceConsumer* pConsumer);
940
941 HRESULT SetFocus(
942 [in] IUnknown* pFocusObject);
943
944 HRESULT ReleaseFocus(
945 [in] IUnknown* pFocusObject);
946
947 }
948
949 cpp_quote("#ifndef _IKsPropertySet_")
950 cpp_quote("#define _IKsPropertySet_")
951 cpp_quote("#define KSPROPERTY_SUPPORT_GET 1")
952 cpp_quote("#define KSPROPERTY_SUPPORT_SET 2")
953
954 [
955 object,
956 uuid(31efac30-515c-11d0-a9aa-00aa0061be93),
957 pointer_default(unique),
958 local
959 ]
960 interface IKsPropertySet : IUnknown
961 {
962 HRESULT Set( [in] REFGUID guidPropSet,
963 [in] DWORD dwPropID,
964 [in, size_is(cbInstanceData)] LPVOID pInstanceData,
965 [in] DWORD cbInstanceData,
966 [in, size_is(cbPropData)] LPVOID pPropData,
967 [in] DWORD cbPropData );
968
969 HRESULT Get( [in] REFGUID guidPropSet,
970 [in] DWORD dwPropID,
971 [in, size_is(cbInstanceData)] LPVOID pInstanceData,
972 [in] DWORD cbInstanceData,
973 [out, size_is(cbPropData)] LPVOID pPropData,
974 [in] DWORD cbPropData,
975 [out] DWORD *pcbReturned );
976
977 HRESULT QuerySupported( [in] REFGUID guidPropSet,
978 [in] DWORD dwPropID,
979 [out] DWORD *pTypeSupport);
980 }
981 cpp_quote("#endif /* _IKsPropertySet_ */")
982
983 [
984 object,
985 uuid(36b73883-c2c8-11cf-8b46-00805f6cef60),
986 pointer_default(unique)
987 ]
988 interface ISeekingPassThru : IUnknown
989 {
990 HRESULT Init( [in] BOOL bSupportRendering, [in] IPin *pPin);
991 }
992
993 enum _AM_FILTER_MISC_FLAGS
994 {
995 AM_FILTER_MISC_FLAGS_IS_RENDERER = 0x1,
996 AM_FILTER_MISC_FLAGS_IS_SOURCE = 0x2
997 };
998
999 [
1000 local,
1001 object,
1002 uuid(2dd74950-a890-11d1-abe8-00a0c905f375),
1003 pointer_default(unique)
1004 ]
1005 interface IAMFilterMiscFlags : IUnknown
1006 {
1007 ULONG GetMiscFlags();
1008 };