2 * Copyright (C) 2002 Robert Shearman
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.
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.
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
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;
34 interface IAMOpenProgress;
35 interface IAMOverlayFX;
36 interface IAMPhysicalPinInfo;
37 interface IAMPushSource;
38 interface IAMStreamConfig;
39 interface IAMTimecodeDisplay;
40 interface IAMTimecodeGenerator;
41 interface IAMTimecodeReader;
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;
67 interface IOverlayNotify;
68 interface IOverlayNotify2;
69 interface IQualityControl;
70 interface ISeekingPassThru;
80 uuid(56a868a4-0ad4-11ce-b03a-0020af0ba770),
81 pointer_default(unique)
83 interface IEnumRegFilters : IUnknown
86 ( [in] ULONG cFilters,
87 [out] REGFILTER ** apRegFilter,
88 [out] ULONG * pcFetched
98 [out] IEnumRegFilters **ppEnum
103 typedef IEnumRegFilters *PENUMREGFILTERS;
107 uuid(56a868a3-0ad4-11ce-b03a-0020af0ba770),
108 pointer_default(unique)
110 interface IFilterMapper : IUnknown
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
120 HRESULT RegisterFilter
126 HRESULT RegisterFilterInstance
140 [in] CLSID ConnectsToFilter,
141 [in] LPCWSTR ConnectsToPin
144 HRESULT RegisterPinType
145 ( [in] CLSID clsFilter,
146 [in] LPCWSTR strName,
147 [in] CLSID clsMajorType,
148 [in] CLSID clsSubType
152 HRESULT UnregisterFilter
157 HRESULT UnregisterFilterInstance
162 HRESULT UnregisterPin
167 HRESULT EnumMatchingFilters
168 ( [out] IEnumRegFilters **ppEnum,
170 [in] BOOL bInputNeeded,
174 [in] BOOL bOututNeeded,
175 [in] CLSID clsOutMaj,
183 const CLSID * clsMajorType;
184 const CLSID * clsMinorType;
194 const CLSID * clsConnectsToFilter;
195 const WCHAR * strConnectsToPin;
197 const REGPINTYPES * lpMediaType;
209 REG_PINFLAG_B_ZERO = 0x1,
210 REG_PINFLAG_B_RENDERER = 0x2,
211 REG_PINFLAG_B_MANY = 0x4,
212 REG_PINFLAG_B_OUTPUT = 0x8
221 [size_is(nMediaTypes)] const REGPINTYPES * lpMediaType;
223 [size_is(nMediums)] const REGPINMEDIUM *lpMedium;
224 const CLSID *clsPinCategory;
231 [switch_is(dwVersion)] [switch_type(DWORD)] union
237 [size_is(cPins)] const REGFILTERPINS *rgPins;
244 [size_is(cPins2)] const REGFILTERPINS2 *rgPins2;
256 uuid(b79bb0b0-33c1-11d1-abe1-00a0c905f375),
257 pointer_default(unique)
259 interface IFilterMapper2 : IUnknown
261 HRESULT CreateCategory
262 ( [in] REFCLSID clsidCategory,
263 [in] DWORD dwCategoryMerit,
264 [in] LPCWSTR Description
267 HRESULT UnregisterFilter
268 ( [in] const CLSID *pclsidCategory,
269 [in] LPCOLESTR szInstance,
273 HRESULT RegisterFilter
274 ( [in] REFCLSID clsidFilter,
276 [in, out] IMoniker **ppMoniker,
277 [in] const CLSID *pclsidCategory,
278 [in] LPCOLESTR szInstance,
279 [in] const REGFILTER2 *prf2
282 HRESULT EnumMatchingFilters
283 ( [out] IEnumMoniker **ppEnum,
285 [in] BOOL bExactMatch,
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,
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
303 uuid(b79bb0b1-33c1-11d1-abe1-00a0c905f375),
304 pointer_default(unique)
306 interface IFilterMapper3 : IFilterMapper2
308 HRESULT GetICreateDevEnum( [out] ICreateDevEnum **ppEnum );
311 typedef enum tagQualityMessageType
315 } QualityMessageType;
317 typedef struct tagQuality
319 QualityMessageType Type;
322 REFERENCE_TIME TimeStamp;
325 typedef IQualityControl *PQUALITYCONTROL;
329 uuid(56a868a5-0ad4-11ce-b03a-0020af0ba770),
330 pointer_default(unique)
332 interface IQualityControl : IUnknown
335 ( [in] IBaseFilter * pSelf,
340 ( [in] IQualityControl * piqc
351 typedef struct tagCOLORKEY
355 COLORREF LowColorValue;
356 COLORREF HighColorValue;
362 ADVISE_CLIPPING = 0x1,
363 ADVISE_PALETTE = 0x2,
364 ADVISE_COLORKEY = 0x4,
365 ADVISE_POSITION = 0x8,
366 ADVISE_DISPLAY_CHANGE = 0x10
369 const DWORD ADVISE_ALL = ADVISE_CLIPPING |
374 const DWORD ADVISE_ALL2 = ADVISE_ALL |
375 ADVISE_DISPLAY_CHANGE;
377 cpp_quote("#ifndef _WINGDI_")
379 /* already defined in wingdi.h, but needed for WIDL */
381 typedef struct _RGNDATAHEADER
390 typedef struct _RGNDATA
396 cpp_quote("#endif /* _WINGDI_ */")
401 uuid(56a868a0-0ad4-11ce-b03a-0020af0ba770),
402 pointer_default(unique)
404 interface IOverlayNotify : IUnknown
406 HRESULT OnPaletteChange(
408 [in] const PALETTEENTRY *pPalette);
410 HRESULT OnClipChange(
411 [in] const RECT *pSourceRect,
412 [in] const RECT *pDestinationRect,
413 [in] const RGNDATA *pRgnData);
415 HRESULT OnColorKeyChange([in] const COLORKEY *pColorKey);
417 HRESULT OnPositionChange([in] const RECT *pSourceRect,
418 [in] const RECT *pDestinationRect);
421 typedef IOverlayNotify *POVERLAYNOTIFY;
424 typedef HANDLE HMONITOR;
425 cpp_quote("#endif /* 0 */")
430 uuid(680EFA10-D535-11D1-87C8-00A0C9223196),
431 pointer_default(unique)
433 interface IOverlayNotify2 : IOverlayNotify
435 HRESULT OnDisplayChange(
439 typedef IOverlayNotify2 *POVERLAYNOTIFY2;
444 uuid(56a868a1-0ad4-11ce-b03a-0020af0ba770),
445 pointer_default(unique)
447 interface IOverlay : IUnknown
450 [out] DWORD *pdwColors,
451 [out] PALETTEENTRY **ppPalette);
455 [in] PALETTEENTRY *pPalette);
457 HRESULT GetDefaultColorKey([out] COLORKEY *pColorKey);
459 HRESULT GetColorKey([out] COLORKEY *pColorKey);
461 HRESULT SetColorKey([in,out] COLORKEY *pColorKey);
463 HRESULT GetWindowHandle([out] HWND *pHwnd);
465 HRESULT GetClipList([out] RECT *pSourceRect,
466 [out] RECT *pDestinationRect,
467 [out] RGNDATA **ppRgnData);
469 HRESULT GetVideoPosition([out] RECT *pSourceRect,
470 [out] RECT *pDestinationRect);
473 [in] IOverlayNotify *pOverlayNotify,
474 [in] DWORD dwInterests);
479 typedef IOverlay *POVERLAY;
483 uuid(56a868a2-0ad4-11ce-b03a-0020af0ba770),
484 pointer_default(unique)
486 interface IMediaEventSink : IUnknown
490 [in] LONG_PTR EventParam1,
491 [in] LONG_PTR EventParam2
495 typedef IMediaEventSink *PMEDIAEVENTSINK;
499 uuid(56a868a6-0ad4-11ce-b03a-0020af0ba770),
500 pointer_default(unique)
502 interface IFileSourceFilter : IUnknown
505 [in] LPCOLESTR pszFileName,
506 [in, unique] const AM_MEDIA_TYPE *pmt
510 [out] LPOLESTR *ppszFileName,
511 [out] AM_MEDIA_TYPE *pmt
515 typedef IFileSourceFilter *PFILTERFILESOURCE;
519 uuid(a2104830-7c70-11cf-8bce-00aa00a3f1a6),
520 pointer_default(unique)
522 interface IFileSinkFilter : IUnknown
525 [in] LPCOLESTR pszFileName,
526 [in, unique] const AM_MEDIA_TYPE *pmt
530 [out] LPOLESTR *ppszFileName,
531 [out] AM_MEDIA_TYPE *pmt
535 typedef IFileSinkFilter *PFILTERFILESINK;
539 uuid(00855B90-CE1B-11d0-BD4F-00A0C911CE86),
540 pointer_default(unique)
542 interface IFileSinkFilter2 : IFileSinkFilter
549 [out] DWORD *pdwFlags
553 typedef IFileSinkFilter2 *PFILESINKFILTER2;
557 uuid(f90a6130-b658-11d2-ae49-0000f8754b99),
558 pointer_default(unique)
560 interface IAMDeviceRemoval : IUnknown
563 [out] CLSID *pclsidInterfaceClass,
564 [out] LPWSTR *pwszSymbolicLink);
565 HRESULT Reassociate();
566 HRESULT Disassociate();
572 AM_FILE_OVERWRITE = 0x00000001,
577 uuid(56a868a9-0ad4-11ce-b03a-0020af0ba770),
578 pointer_default(unique)
580 interface IGraphBuilder : IFilterGraph
583 ( [in] IPin * ppinOut,
588 ( [in] IPin * ppinOut
592 ( [in] LPCWSTR lpcwstrFile,
593 [in, unique] LPCWSTR lpcwstrPlayList
596 HRESULT AddSourceFilter
597 ( [in] LPCWSTR lpcwstrFileName,
598 [in, unique] LPCWSTR lpcwstrFilterName,
599 [out] IBaseFilter* *ppFilter
603 ( [in] DWORD_PTR hFile
608 HRESULT ShouldOperationContinue();
614 uuid(bf87b6e0-8c27-11d0-b3f0-00aa003761c5),
615 pointer_default(unique)
617 interface ICaptureGraphBuilder : IUnknown {
619 HRESULT SetFiltergraph(
620 [in] IGraphBuilder *pfg);
622 HRESULT GetFiltergraph(
623 [out] IGraphBuilder **ppfg);
625 HRESULT SetOutputFileName(
626 [in] const GUID *pType,
627 [in] LPCOLESTR lpstrFile,
628 [out] IBaseFilter **ppf,
629 [out] IFileSinkFilter **ppSink);
631 [local] HRESULT FindInterface(
632 [in, unique] const GUID *pCategory,
633 [in] IBaseFilter *pf,
637 [call_as(FindInterface)] HRESULT RemoteFindInterface(
638 [in, unique] const GUID *pCategory,
639 [in] IBaseFilter *pf,
641 [out] IUnknown **ppint);
643 HRESULT RenderStream(
644 [in] const GUID *pCategory,
645 [in] IUnknown *pSource,
646 [in] IBaseFilter *pfCompressor,
647 [in] IBaseFilter *pfRenderer);
649 HRESULT ControlStream(
650 [in] const GUID *pCategory,
651 [in] IBaseFilter *pFilter,
652 [in] REFERENCE_TIME *pstart,
653 [in] REFERENCE_TIME *pstop,
654 [in] WORD wStartCookie,
655 [in] WORD wStopCookie);
657 HRESULT AllocCapFile(
658 [in] LPCOLESTR lpstr,
659 [in] DWORDLONG dwlSize);
661 HRESULT CopyCaptureFile(
662 [in] LPOLESTR lpwstrOld,
663 [in] LPOLESTR lpwstrNew,
664 [in] int fAllowEscAbort,
665 [in] IAMCopyCaptureFileProgress *pCallback);
670 uuid(670d1d20-a068-11d0-b3f0-00aa003761c5),
671 pointer_default(unique)
673 interface IAMCopyCaptureFileProgress : IUnknown
681 uuid(93E5A4E0-2D50-11d2-ABFA-00A0C9C6E38D),
682 pointer_default(unique)
684 interface ICaptureGraphBuilder2 : IUnknown
686 HRESULT SetFiltergraph(
687 [in] IGraphBuilder *pfg);
689 HRESULT GetFiltergraph(
690 [out] IGraphBuilder **ppfg);
692 HRESULT SetOutputFileName(
693 [in] const GUID *pType,
694 [in] LPCOLESTR lpstrFile,
695 [out] IBaseFilter **ppf,
696 [out] IFileSinkFilter **ppSink);
698 [local] HRESULT FindInterface(
699 [in] const GUID *pCategory,
700 [in] const GUID *pType,
701 [in] IBaseFilter *pf,
705 [call_as(FindInterface)] HRESULT RemoteFindInterface(
706 [in] const GUID *pCategory,
707 [in] const GUID *pType,
708 [in] IBaseFilter *pf,
710 [out] IUnknown **ppint);
712 HRESULT RenderStream(
713 [in] const GUID *pCategory,
714 [in] const GUID *pType,
715 [in] IUnknown *pSource,
716 [in] IBaseFilter *pfCompressor,
717 [in] IBaseFilter *pfRenderer);
719 HRESULT ControlStream(
720 [in] const GUID *pCategory,
721 [in] const GUID *pType,
722 [in] IBaseFilter *pFilter,
723 [in] REFERENCE_TIME *pstart,
724 [in] REFERENCE_TIME *pstop,
725 [in] WORD wStartCookie,
726 [in] WORD wStopCookie);
728 HRESULT AllocCapFile(
729 [in] LPCOLESTR lpstr,
730 [in] DWORDLONG dwlSize);
732 HRESULT CopyCaptureFile(
733 [in] LPOLESTR lpwstrOld,
734 [in] LPOLESTR lpwstrNew,
735 [in] int fAllowEscAbort,
736 [in] IAMCopyCaptureFileProgress *pCallback);
739 [in] IUnknown *pSource,
740 [in] PIN_DIRECTION pindir,
741 [in] const GUID *pCategory,
742 [in] const GUID *pType,
743 [in] BOOL fUnconnected,
748 enum _AM_RENSDEREXFLAGS
750 AM_RENDEREX_RENDERTOEXISTINGRENDERERS = 0x01
755 uuid(36b73882-c2c8-11cf-8b46-00805f6cef60),
756 pointer_default(unique)
758 interface IFilterGraph2: IGraphBuilder
760 HRESULT AddSourceFilterForMoniker(
761 [in] IMoniker *pMoniker,
763 [in, unique] LPCWSTR lpcwstrFilterName,
764 [out] IBaseFilter **ppFilter
769 [in, unique] const AM_MEDIA_TYPE *pmt
772 HRESULT RenderEx( [in] IPin *pPinOut,
774 [in, out] DWORD *pvContext
781 uuid(56a868bf-0ad4-11ce-b03a-0020af0ba770),
782 pointer_default(unique)
784 interface IStreamBuilder : IUnknown
787 ( [in] IPin * ppinOut,
788 [in] IGraphBuilder * pGraph
792 ( [in] IPin * ppinOut,
793 [in] IGraphBuilder * pGraph
799 uuid(56a868af-0ad4-11ce-b03a-0020af0ba770),
800 pointer_default(unique)
802 interface IDistributorNotify : IUnknown
806 HRESULT Run(REFERENCE_TIME tStart);
807 HRESULT SetSyncSource([in] IReferenceClock * pClock);
808 HRESULT NotifyGraphChange(void);
813 AM_STREAM_INFO_START_DEFINED = 0x01,
814 AM_STREAM_INFO_STOP_DEFINED = 0x02,
815 AM_STREAM_INFO_DISCARDING = 0x04,
816 AM_STREAM_INFO_STOP_SEND_EXTRA = 0x10
817 } AM_STREAM_INFO_FLAGS;
821 REFERENCE_TIME tStart;
822 REFERENCE_TIME tStop;
829 /*****************************************************************************
830 * IAMStreamConfig interface
834 uuid(c6e13340-30ac-11d0-a18c-00a0c9118956),
835 pointer_default(unique)
837 interface IAMStreamConfig : IUnknown
839 HRESULT SetFormat( [in] AM_MEDIA_TYPE *pmt);
840 HRESULT GetFormat( [in] AM_MEDIA_TYPE **pmt);
841 HRESULT GetNumberOfCapabilities( [out] int *piCount, [out] int *piSize);
842 HRESULT GetStreamCaps( [in] int iIndex, [out] AM_MEDIA_TYPE **pmt,
847 typedef enum tagVideoProcAmpProperty
849 VideoProcAmp_Brightness,
850 VideoProcAmp_Contrast,
852 VideoProcAmp_Saturation,
853 VideoProcAmp_Sharpness,
855 VideoProcAmp_ColorEnable,
856 VideoProcAmp_WhiteBalance,
857 VideoProcAmp_BacklightCompensation,
859 } VideoProcAmpProperty;
861 typedef enum tagVideoProcAmpFlags
863 VideoProcAmp_Flags_Auto = 0x0001,
864 VideoProcAmp_Flags_Manual = 0x0002,
867 /*****************************************************************************
868 * IAMVideoProcAmp interface
872 uuid(c6e13360-30ac-11d0-a18c-00a0c9118956),
873 pointer_default(unique)
875 interface IAMVideoProcAmp : IUnknown
877 HRESULT GetRange( [in] LONG Property, [out] LONG *pMin, [out] LONG *pMax,
878 [out] LONG *pSteppingDelta, [out] LONG *pDefault,
879 [out] LONG *pCapsFlags);
880 HRESULT Set( [in] LONG Property, [in] LONG lValue, [in] LONG Flags);
881 HRESULT Get( [in] LONG Property, [out] LONG *lValue, [out] LONG *Flags);
887 uuid(56a868aa-0ad4-11ce-b03a-0020af0ba770),
888 pointer_default(unique)
890 interface IAsyncReader : IUnknown
892 HRESULT RequestAllocator(
893 [in] IMemAllocator* pPreferred,
894 [in] ALLOCATOR_PROPERTIES* pProps,
895 [out] IMemAllocator ** ppActual);
898 [in] IMediaSample* pSample,
899 [in] DWORD_PTR dwUser);
902 [in] DWORD dwTimeout,
903 [out] IMediaSample** ppSample,
904 [out] DWORD_PTR * pdwUser);
906 HRESULT SyncReadAligned(
907 [in] IMediaSample* pSample);
910 [in] LONGLONG llPosition,
912 [out, size_is(lLength)]
916 [out] LONGLONG* pTotal,
917 [out] LONGLONG* pAvailable);
919 HRESULT BeginFlush(void);
921 HRESULT EndFlush(void);
927 uuid(56a868ab-0ad4-11ce-b03a-0020af0ba770),
928 pointer_default(unique)
930 interface IGraphVersion : IUnknown
932 HRESULT QueryVersion(LONG* pVersion);
937 uuid(56a868ad-0ad4-11ce-b03a-0020af0ba770),
938 pointer_default(unique)
940 interface IResourceConsumer : IUnknown
942 HRESULT AcquireResource(
943 [in] LONG idResource);
945 HRESULT ReleaseResource(
946 [in] LONG idResource);
952 uuid(56a868ac-0ad4-11ce-b03a-0020af0ba770),
953 pointer_default(unique)
955 interface IResourceManager : IUnknown
963 HRESULT RegisterGroup(
966 [in, size_is(cResource)]
971 HRESULT RequestResource(
972 [in] LONG idResource,
973 [in] IUnknown* pFocusObject,
974 [in] IResourceConsumer* pConsumer
977 HRESULT NotifyAcquire(
978 [in] LONG idResource,
979 [in] IResourceConsumer* pConsumer,
982 HRESULT NotifyRelease(
983 [in] LONG idResource,
984 [in] IResourceConsumer* pConsumer,
985 [in] BOOL bStillWant);
987 HRESULT CancelRequest(
988 [in] LONG idResource,
989 [in] IResourceConsumer* pConsumer);
992 [in] IUnknown* pFocusObject);
994 HRESULT ReleaseFocus(
995 [in] IUnknown* pFocusObject);
999 cpp_quote("#ifndef _IKsPropertySet_")
1000 cpp_quote("#define _IKsPropertySet_")
1001 cpp_quote("#define KSPROPERTY_SUPPORT_GET 1")
1002 cpp_quote("#define KSPROPERTY_SUPPORT_SET 2")
1006 uuid(31efac30-515c-11d0-a9aa-00aa0061be93),
1007 pointer_default(unique),
1010 interface IKsPropertySet : IUnknown
1012 HRESULT Set( [in] REFGUID guidPropSet,
1013 [in] DWORD dwPropID,
1014 [in, size_is(cbInstanceData)] LPVOID pInstanceData,
1015 [in] DWORD cbInstanceData,
1016 [in, size_is(cbPropData)] LPVOID pPropData,
1017 [in] DWORD cbPropData );
1019 HRESULT Get( [in] REFGUID guidPropSet,
1020 [in] DWORD dwPropID,
1021 [in, size_is(cbInstanceData)] LPVOID pInstanceData,
1022 [in] DWORD cbInstanceData,
1023 [out, size_is(cbPropData)] LPVOID pPropData,
1024 [in] DWORD cbPropData,
1025 [out] DWORD *pcbReturned );
1027 HRESULT QuerySupported( [in] REFGUID guidPropSet,
1028 [in] DWORD dwPropID,
1029 [out] DWORD *pTypeSupport);
1031 cpp_quote("#endif /* _IKsPropertySet_ */")
1035 uuid(36b73883-c2c8-11cf-8b46-00805f6cef60),
1036 pointer_default(unique)
1038 interface ISeekingPassThru : IUnknown
1040 HRESULT Init( [in] BOOL bSupportRendering, [in] IPin *pPin);
1046 uuid(4d5466b0-a49c-11d1-abe8-00a0c905f375),
1047 pointer_default(unique)
1050 interface IAMClockAdjust : IUnknown
1052 HRESULT SetClockDelta([in] REFERENCE_TIME rtDelta);
1056 enum _AM_FILTER_MISC_FLAGS
1058 AM_FILTER_MISC_FLAGS_IS_RENDERER = 0x1,
1059 AM_FILTER_MISC_FLAGS_IS_SOURCE = 0x2
1065 uuid(2dd74950-a890-11d1-abe8-00a0c905f375),
1066 pointer_default(unique)
1068 interface IAMFilterMiscFlags : IUnknown
1070 ULONG GetMiscFlags();
1076 uuid(56ED71A0-AF5F-11D0-B3F0-00AA003761C5),
1077 pointer_default(unique)
1079 interface IAMBufferNegotiation : IUnknown
1081 HRESULT SuggestAllocatorProperties (
1082 [in] const ALLOCATOR_PROPERTIES *pprop);
1084 HRESULT GetAllocatorProperties (
1085 [out] ALLOCATOR_PROPERTIES *pprop);
1089 #include <axextendenums.h>
1093 uuid(36b73881-c2c8-11cf-8b46-00805f6cef60),
1094 pointer_default(unique)
1096 interface IAMStreamControl : IUnknown
1098 HRESULT StartAt( [in] REFERENCE_TIME * ptStart,
1099 [in] DWORD dwCookie );
1100 HRESULT StopAt( [in] REFERENCE_TIME * ptStop,
1101 [in] BOOL bSendExtra,
1102 [in] DWORD dwCookie );
1103 HRESULT GetInfo( [out] AM_STREAM_INFO *pInfo);
1106 typedef enum tagTVAudioMode
1108 AMTVAUDIO_MODE_MONO = 0x0001,
1109 AMTVAUDIO_MODE_STEREO = 0x0002,
1110 AMTVAUDIO_MODE_LANG_A = 0x0010,
1111 AMTVAUDIO_MODE_LANG_B = 0x0020,
1112 AMTVAUDIO_MODE_LANG_C = 0x0040,
1113 AMTVAUDIO_PRESET_STEREO = 0x0200,
1114 AMTVAUDIO_PRESET_LANG_A = 0x1000,
1115 AMTVAUDIO_PRESET_LANG_B = 0x2000,
1116 AMTVAUDIO_PRESET_LANG_C = 0x4000,