| 1 | /*
|
|---|
| 2 | * Implementation of IGraphConfig for FilterGraph.
|
|---|
| 3 | *
|
|---|
| 4 | * FIXME - stub.
|
|---|
| 5 | *
|
|---|
| 6 | * hidenori@a2.ctktv.ne.jp
|
|---|
| 7 | */
|
|---|
| 8 |
|
|---|
| 9 | #include "config.h"
|
|---|
| 10 |
|
|---|
| 11 | #include "windef.h"
|
|---|
| 12 | #include "winbase.h"
|
|---|
| 13 | #include "wingdi.h"
|
|---|
| 14 | #include "winuser.h"
|
|---|
| 15 | #include "winerror.h"
|
|---|
| 16 | #include "wine/obj_base.h"
|
|---|
| 17 | #include "wine/obj_oleaut.h"
|
|---|
| 18 | #include "strmif.h"
|
|---|
| 19 | #include "control.h"
|
|---|
| 20 | #include "uuids.h"
|
|---|
| 21 |
|
|---|
| 22 | #include "debugtools.h"
|
|---|
| 23 | DEFAULT_DEBUG_CHANNEL(quartz);
|
|---|
| 24 |
|
|---|
| 25 | #include "quartz_private.h"
|
|---|
| 26 | #include "fgraph.h"
|
|---|
| 27 |
|
|---|
| 28 |
|
|---|
| 29 |
|
|---|
| 30 | static HRESULT WINAPI
|
|---|
| 31 | IGraphConfig_fnQueryInterface(IGraphConfig* iface,REFIID riid,void** ppobj)
|
|---|
| 32 | {
|
|---|
| 33 | CFilterGraph_THIS(iface,grphconf);
|
|---|
| 34 |
|
|---|
| 35 | TRACE("(%p)->()\n",This);
|
|---|
| 36 |
|
|---|
| 37 | return IUnknown_QueryInterface(This->unk.punkControl,riid,ppobj);
|
|---|
| 38 | }
|
|---|
| 39 |
|
|---|
| 40 | static ULONG WINAPI
|
|---|
| 41 | IGraphConfig_fnAddRef(IGraphConfig* iface)
|
|---|
| 42 | {
|
|---|
| 43 | CFilterGraph_THIS(iface,grphconf);
|
|---|
| 44 |
|
|---|
| 45 | TRACE("(%p)->()\n",This);
|
|---|
| 46 |
|
|---|
| 47 | return IUnknown_AddRef(This->unk.punkControl);
|
|---|
| 48 | }
|
|---|
| 49 |
|
|---|
| 50 | static ULONG WINAPI
|
|---|
| 51 | IGraphConfig_fnRelease(IGraphConfig* iface)
|
|---|
| 52 | {
|
|---|
| 53 | CFilterGraph_THIS(iface,grphconf);
|
|---|
| 54 |
|
|---|
| 55 | TRACE("(%p)->()\n",This);
|
|---|
| 56 |
|
|---|
| 57 | return IUnknown_Release(This->unk.punkControl);
|
|---|
| 58 | }
|
|---|
| 59 |
|
|---|
| 60 |
|
|---|
| 61 |
|
|---|
| 62 | static HRESULT WINAPI
|
|---|
| 63 | IGraphConfig_fnReconnect(IGraphConfig* iface,IPin* pOut,IPin* pIn,const AM_MEDIA_TYPE* pmt,IBaseFilter* pFilter,HANDLE hAbort,DWORD dwFlags)
|
|---|
| 64 | {
|
|---|
| 65 | CFilterGraph_THIS(iface,grphconf);
|
|---|
| 66 |
|
|---|
| 67 | FIXME("(%p)->() stub!\n",This);
|
|---|
| 68 |
|
|---|
| 69 | return E_NOTIMPL;
|
|---|
| 70 | }
|
|---|
| 71 |
|
|---|
| 72 | static HRESULT WINAPI
|
|---|
| 73 | IGraphConfig_fnReconfigure(IGraphConfig* iface,IGraphConfigCallback* pCallback,PVOID pvParam,DWORD dwFlags,HANDLE hAbort)
|
|---|
| 74 | {
|
|---|
| 75 | CFilterGraph_THIS(iface,grphconf);
|
|---|
| 76 |
|
|---|
| 77 | FIXME("(%p)->() stub!\n",This);
|
|---|
| 78 |
|
|---|
| 79 | return E_NOTIMPL;
|
|---|
| 80 | }
|
|---|
| 81 |
|
|---|
| 82 | static HRESULT WINAPI
|
|---|
| 83 | IGraphConfig_fnAddFilterToCache(IGraphConfig* iface,IBaseFilter* pFilter)
|
|---|
| 84 | {
|
|---|
| 85 | CFilterGraph_THIS(iface,grphconf);
|
|---|
| 86 |
|
|---|
| 87 | FIXME("(%p)->() stub!\n",This);
|
|---|
| 88 |
|
|---|
| 89 | return E_NOTIMPL;
|
|---|
| 90 | }
|
|---|
| 91 |
|
|---|
| 92 | static HRESULT WINAPI
|
|---|
| 93 | IGraphConfig_fnEnumCacheFilter(IGraphConfig* iface,IEnumFilters** ppenum)
|
|---|
| 94 | {
|
|---|
| 95 | CFilterGraph_THIS(iface,grphconf);
|
|---|
| 96 |
|
|---|
| 97 | FIXME("(%p)->() stub!\n",This);
|
|---|
| 98 |
|
|---|
| 99 | return E_NOTIMPL;
|
|---|
| 100 | }
|
|---|
| 101 |
|
|---|
| 102 | static HRESULT WINAPI
|
|---|
| 103 | IGraphConfig_fnRemoveFilterFromCache(IGraphConfig* iface,IBaseFilter* pFilter)
|
|---|
| 104 | {
|
|---|
| 105 | CFilterGraph_THIS(iface,grphconf);
|
|---|
| 106 |
|
|---|
| 107 | FIXME("(%p)->() stub!\n",This);
|
|---|
| 108 |
|
|---|
| 109 | return E_NOTIMPL;
|
|---|
| 110 | }
|
|---|
| 111 |
|
|---|
| 112 | static HRESULT WINAPI
|
|---|
| 113 | IGraphConfig_fnGetStartTime(IGraphConfig* iface,REFERENCE_TIME* prt)
|
|---|
| 114 | {
|
|---|
| 115 | CFilterGraph_THIS(iface,grphconf);
|
|---|
| 116 |
|
|---|
| 117 | FIXME("(%p)->() stub!\n",This);
|
|---|
| 118 |
|
|---|
| 119 | return E_NOTIMPL;
|
|---|
| 120 | }
|
|---|
| 121 |
|
|---|
| 122 | static HRESULT WINAPI
|
|---|
| 123 | IGraphConfig_fnPushThroughData(IGraphConfig* iface,IPin* pOut,IPinConnection* pConn,HANDLE hAbort)
|
|---|
| 124 | {
|
|---|
| 125 | CFilterGraph_THIS(iface,grphconf);
|
|---|
| 126 |
|
|---|
| 127 | FIXME("(%p)->() stub!\n",This);
|
|---|
| 128 |
|
|---|
| 129 | return E_NOTIMPL;
|
|---|
| 130 | }
|
|---|
| 131 |
|
|---|
| 132 | static HRESULT WINAPI
|
|---|
| 133 | IGraphConfig_fnSetFilterFlags(IGraphConfig* iface,IBaseFilter* pFilter,DWORD dwFlags)
|
|---|
| 134 | {
|
|---|
| 135 | CFilterGraph_THIS(iface,grphconf);
|
|---|
| 136 |
|
|---|
| 137 | FIXME("(%p)->() stub!\n",This);
|
|---|
| 138 |
|
|---|
| 139 | return E_NOTIMPL;
|
|---|
| 140 | }
|
|---|
| 141 |
|
|---|
| 142 | static HRESULT WINAPI
|
|---|
| 143 | IGraphConfig_fnGetFilterFlags(IGraphConfig* iface,IBaseFilter* pFilter,DWORD* pdwFlags)
|
|---|
| 144 | {
|
|---|
| 145 | CFilterGraph_THIS(iface,grphconf);
|
|---|
| 146 |
|
|---|
| 147 | FIXME("(%p)->() stub!\n",This);
|
|---|
| 148 |
|
|---|
| 149 | return E_NOTIMPL;
|
|---|
| 150 | }
|
|---|
| 151 |
|
|---|
| 152 | static HRESULT WINAPI
|
|---|
| 153 | IGraphConfig_fnRemoveFilterEx(IGraphConfig* iface,IBaseFilter* pFilter,DWORD dwFlags)
|
|---|
| 154 | {
|
|---|
| 155 | CFilterGraph_THIS(iface,grphconf);
|
|---|
| 156 |
|
|---|
| 157 | FIXME("(%p)->() stub!\n",This);
|
|---|
| 158 |
|
|---|
| 159 | return E_NOTIMPL;
|
|---|
| 160 | }
|
|---|
| 161 |
|
|---|
| 162 |
|
|---|
| 163 |
|
|---|
| 164 |
|
|---|
| 165 |
|
|---|
| 166 | static ICOM_VTABLE(IGraphConfig) igraphconfig =
|
|---|
| 167 | {
|
|---|
| 168 | ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
|
|---|
| 169 | /* IUnknown fields */
|
|---|
| 170 | IGraphConfig_fnQueryInterface,
|
|---|
| 171 | IGraphConfig_fnAddRef,
|
|---|
| 172 | IGraphConfig_fnRelease,
|
|---|
| 173 | /* IGraphConfig fields */
|
|---|
| 174 | IGraphConfig_fnReconnect,
|
|---|
| 175 | IGraphConfig_fnReconfigure,
|
|---|
| 176 | IGraphConfig_fnAddFilterToCache,
|
|---|
| 177 | IGraphConfig_fnEnumCacheFilter,
|
|---|
| 178 | IGraphConfig_fnRemoveFilterFromCache,
|
|---|
| 179 | IGraphConfig_fnGetStartTime,
|
|---|
| 180 | IGraphConfig_fnPushThroughData,
|
|---|
| 181 | IGraphConfig_fnSetFilterFlags,
|
|---|
| 182 | IGraphConfig_fnGetFilterFlags,
|
|---|
| 183 | IGraphConfig_fnRemoveFilterEx,
|
|---|
| 184 | };
|
|---|
| 185 |
|
|---|
| 186 |
|
|---|
| 187 |
|
|---|
| 188 | HRESULT CFilterGraph_InitIGraphConfig( CFilterGraph* pfg )
|
|---|
| 189 | {
|
|---|
| 190 | TRACE("(%p)\n",pfg);
|
|---|
| 191 | ICOM_VTBL(&pfg->grphconf) = &igraphconfig;
|
|---|
| 192 |
|
|---|
| 193 | return NOERROR;
|
|---|
| 194 | }
|
|---|
| 195 |
|
|---|
| 196 | void CFilterGraph_UninitIGraphConfig( CFilterGraph* pfg )
|
|---|
| 197 | {
|
|---|
| 198 | TRACE("(%p)\n",pfg);
|
|---|
| 199 | }
|
|---|
| 200 |
|
|---|