Move URL_SCHEME typedef to match PSDK.
[wine/wine64.git] / dlls / quartz / avidec.c
blob81ebb85638ea09896c08b9c712205db4f28c635e
1 /*
2 * AVI Decompressor (VFW decompressors wrapper)
4 * Copyright 2004 Christian Costa
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #include "config.h"
23 #include "quartz_private.h"
24 #include "control_private.h"
25 #include "pin.h"
27 #include "uuids.h"
28 #include "aviriff.h"
29 #include "mmreg.h"
30 #include "vfwmsgs.h"
31 #include "amvideo.h"
32 #include "windef.h"
33 #include "winbase.h"
34 #include "dshow.h"
35 #include "strmif.h"
36 #include "vfwmsgs.h"
37 #include "evcode.h"
38 #include "vfw.h"
39 /* #include "fourcc.h" */
40 /* #include "avcodec.h" */
42 #include <assert.h>
44 #include "wine/unicode.h"
45 #include "wine/debug.h"
47 WINE_DEFAULT_DEBUG_CHANNEL(quartz);
49 static const WCHAR wcsInputPinName[] = {'i','n','p','u','t',' ','p','i','n',0};
50 static const WCHAR wcsOutputPinName[] = {'o','u','t','p','u','t',' ','p','i','n',0};
52 static const IBaseFilterVtbl AVIDec_Vtbl;
53 static const IPinVtbl AVIDec_InputPin_Vtbl;
54 static const IMemInputPinVtbl MemInputPin_Vtbl;
55 static const IPinVtbl AVIDec_OutputPin_Vtbl;
57 typedef struct AVIDecImpl
59 const IBaseFilterVtbl * lpVtbl;
61 ULONG refCount;
62 CRITICAL_SECTION csFilter;
63 FILTER_STATE state;
64 REFERENCE_TIME rtStreamStart;
65 IReferenceClock * pClock;
66 FILTER_INFO filterInfo;
68 IPin ** ppPins;
70 HIC hvid;
71 int init;
72 } AVIDecImpl;
74 static DWORD AVIDec_SendSampleData(AVIDecImpl* This, LPBYTE data, DWORD size)
76 VIDEOINFOHEADER* format;
77 AM_MEDIA_TYPE amt;
78 BITMAPINFOHEADER bi;
79 HRESULT hr;
80 DWORD res;
81 IMediaSample* pSample = NULL;
82 DWORD cbDstStream;
83 LPBYTE pbDstStream;
85 hr = IPin_ConnectionMediaType(This->ppPins[0], &amt);
86 if (FAILED(hr)) {
87 ERR("Unable to retrieve media type\n");
88 goto error;
90 format = (VIDEOINFOHEADER*)amt.pbFormat;
92 /* Fill a bitmap header for output */
93 bi.biSize = sizeof(bi);
94 bi.biWidth = format->bmiHeader.biWidth;
95 bi.biHeight = format->bmiHeader.biHeight;
96 bi.biPlanes = 1;
97 bi.biBitCount = format->bmiHeader.biBitCount;
98 bi.biCompression = 0;
99 bi.biSizeImage = bi.biWidth * bi.biHeight * bi.biBitCount / 8;
101 hr = OutputPin_GetDeliveryBuffer((OutputPin*)This->ppPins[1], &pSample, NULL, NULL, 0);
102 if (FAILED(hr)) {
103 ERR("Unable to get delivery buffer (%lx)\n", hr);
104 goto error;
107 hr = IMediaSample_SetActualDataLength(pSample, 0);
108 assert(hr == S_OK);
110 hr = IMediaSample_GetPointer(pSample, &pbDstStream);
111 if (FAILED(hr)) {
112 ERR("Unable to get pointer to buffer (%lx)\n", hr);
113 goto error;
115 cbDstStream = IMediaSample_GetSize(pSample);
116 if (cbDstStream < bi.biSizeImage) {
117 ERR("Sample size is too small %ld < %ld\n", cbDstStream, bi.biSizeImage);
118 hr = E_FAIL;
119 goto error;
122 res = ICDecompress(This->hvid, 0, &format->bmiHeader, data, &bi, pbDstStream);
123 if (res != ICERR_OK)
124 ERR("Error occurred during the decompression (%lx)\n", res);
126 hr = OutputPin_SendSample((OutputPin*)This->ppPins[1], pSample);
127 if (hr != S_OK && hr != VFW_E_NOT_CONNECTED) {
128 ERR("Error sending sample (%lx)\n", hr);
129 goto error;
132 return S_OK;
134 error:
135 /* If we have a sample that has not been delivered, release it */
136 if (pSample)
137 IMediaSample_Release(pSample);
139 return hr;
142 static HRESULT AVIDec_Sample(LPVOID iface, IMediaSample * pSample)
144 AVIDecImpl *This = (AVIDecImpl *)iface;
145 LPBYTE pbSrcStream = NULL;
146 long cbSrcStream = 0;
147 REFERENCE_TIME tStart, tStop;
148 HRESULT hr;
150 TRACE("%p %p\n", iface, pSample);
152 hr = IMediaSample_GetPointer(pSample, &pbSrcStream);
153 if (FAILED(hr))
155 ERR("Cannot get pointer to sample data (%lx)\n", hr);
156 return hr;
159 hr = IMediaSample_GetTime(pSample, &tStart, &tStop);
160 if (FAILED(hr))
161 ERR("Cannot get sample time (%lx)\n", hr);
163 cbSrcStream = IMediaSample_GetActualDataLength(pSample);
165 TRACE("Sample data ptr = %p, size = %ld\n", pbSrcStream, cbSrcStream);
167 #if 0 /* For debugging purpose */
169 int i;
170 for(i = 0; i < cbSrcStream; i++)
172 if ((i!=0) && !(i%16))
173 DPRINTF("\n");
174 DPRINTF("%02x ", pbSrcStream[i]);
176 DPRINTF("\n");
178 #endif
180 AVIDec_SendSampleData(This, pbSrcStream, cbSrcStream);
182 /* We have finished with the incoming sample, we must release it now */
183 IMediaSample_Release(pSample);
185 return S_OK;
188 static HRESULT AVIDec_Input_QueryAccept(LPVOID iface, const AM_MEDIA_TYPE * pmt)
190 AVIDecImpl* pAVIDec = (AVIDecImpl*)iface;
191 TRACE("%p\n", iface);
192 dump_AM_MEDIA_TYPE(pmt);
194 if ((IsEqualIID(&pmt->majortype, &MEDIATYPE_Video)) &&
195 (!memcmp(((char*)&pmt->subtype)+4, ((char*)&MEDIATYPE_Video)+4, sizeof(GUID)-4)) && /* Check root (GUID w/o FOURCC) */
196 (IsEqualIID(&pmt->formattype, &FORMAT_VideoInfo)))
198 HIC drv;
199 VIDEOINFOHEADER* format = (VIDEOINFOHEADER*)pmt->pbFormat;
200 drv = ICLocate(pmt->majortype.Data1, pmt->subtype.Data1, &format->bmiHeader, NULL, ICMODE_DECOMPRESS);
201 if (drv)
203 AM_MEDIA_TYPE* outpmt = &((OutputPin*)pAVIDec->ppPins[1])->pin.mtCurrent;
204 const CLSID* outsubtype;
205 switch(format->bmiHeader.biBitCount)
207 case 32: outsubtype = &MEDIATYPE_Video; break;
208 case 24: outsubtype = &MEDIASUBTYPE_RGB24; break;
209 case 16: outsubtype = &MEDIASUBTYPE_RGB565; break;
210 case 8: outsubtype = &MEDIASUBTYPE_RGB8; break;
211 default:
212 FIXME("Depth %d not supported\n", format->bmiHeader.biBitCount);
213 ICClose(drv);
214 return S_FALSE;
216 CopyMediaType( outpmt, pmt);
217 outpmt->subtype = *outsubtype;
218 pAVIDec->hvid = drv;
219 pAVIDec->init = 1;
220 TRACE("Connection accepted\n");
221 return S_OK;
223 TRACE("Unable to find a suitable VFW decompressor\n");
226 TRACE("Connection refused\n");
227 return S_FALSE;
231 static HRESULT AVIDec_Output_QueryAccept(LPVOID iface, const AM_MEDIA_TYPE * pmt)
233 AVIDecImpl* pAVIDec = (AVIDecImpl*)iface;
234 AM_MEDIA_TYPE* outpmt = &((OutputPin*)pAVIDec->ppPins[1])->pin.mtCurrent;
235 TRACE("%p\n", iface);
237 if (IsEqualIID(&pmt->majortype, &outpmt->majortype) && IsEqualIID(&pmt->subtype, &outpmt->subtype))
238 return S_OK;
239 return S_FALSE;
242 static HRESULT AVIDec_InputPin_Construct(const PIN_INFO * pPinInfo, SAMPLEPROC pSampleProc, LPVOID pUserData, QUERYACCEPTPROC pQueryAccept, LPCRITICAL_SECTION pCritSec, IPin ** ppPin)
244 InputPin * pPinImpl;
246 *ppPin = NULL;
248 if (pPinInfo->dir != PINDIR_INPUT)
250 ERR("Pin direction(%x) != PINDIR_INPUT\n", pPinInfo->dir);
251 return E_INVALIDARG;
254 pPinImpl = CoTaskMemAlloc(sizeof(*pPinImpl));
256 if (!pPinImpl)
257 return E_OUTOFMEMORY;
258 TRACE("QA : %p %p\n", pQueryAccept, AVIDec_Input_QueryAccept);
259 if (SUCCEEDED(InputPin_Init(pPinInfo, pSampleProc, pUserData, pQueryAccept, pCritSec, pPinImpl)))
261 pPinImpl->pin.lpVtbl = &AVIDec_InputPin_Vtbl;
262 pPinImpl->lpVtblMemInput = &MemInputPin_Vtbl;
264 *ppPin = (IPin *)(&pPinImpl->pin.lpVtbl);
265 return S_OK;
267 return E_FAIL;
270 HRESULT AVIDec_OutputPin_Construct(const PIN_INFO * pPinInfo, ALLOCATOR_PROPERTIES *props, LPVOID pUserData, QUERYACCEPTPROC pQueryAccept, LPCRITICAL_SECTION pCritSec, IPin ** ppPin)
272 OutputPin * pPinImpl;
274 *ppPin = NULL;
276 if (pPinInfo->dir != PINDIR_OUTPUT)
278 ERR("Pin direction(%x) != PINDIR_OUTPUT\n", pPinInfo->dir);
279 return E_INVALIDARG;
282 pPinImpl = CoTaskMemAlloc(sizeof(*pPinImpl));
284 if (!pPinImpl)
285 return E_OUTOFMEMORY;
287 if (SUCCEEDED(OutputPin_Init(pPinInfo, props, pUserData, pQueryAccept, pCritSec, pPinImpl)))
289 pPinImpl->pin.lpVtbl = &AVIDec_OutputPin_Vtbl;
291 *ppPin = (IPin *)(&pPinImpl->pin.lpVtbl);
292 return S_OK;
294 return E_FAIL;
297 HRESULT AVIDec_create(IUnknown * pUnkOuter, LPVOID * ppv)
299 HRESULT hr;
300 PIN_INFO piInput;
301 PIN_INFO piOutput;
302 AVIDecImpl * pAVIDec;
304 TRACE("(%p, %p)\n", pUnkOuter, ppv);
306 *ppv = NULL;
308 if (pUnkOuter)
309 return CLASS_E_NOAGGREGATION;
311 pAVIDec = CoTaskMemAlloc(sizeof(AVIDecImpl));
313 pAVIDec->lpVtbl = &AVIDec_Vtbl;
315 pAVIDec->refCount = 1;
316 InitializeCriticalSection(&pAVIDec->csFilter);
317 pAVIDec->state = State_Stopped;
318 pAVIDec->pClock = NULL;
319 pAVIDec->init = 0;
320 ZeroMemory(&pAVIDec->filterInfo, sizeof(FILTER_INFO));
322 pAVIDec->ppPins = CoTaskMemAlloc(2 * sizeof(IPin *));
324 /* construct input pin */
325 piInput.dir = PINDIR_INPUT;
326 piInput.pFilter = (IBaseFilter *)pAVIDec;
327 strncpyW(piInput.achName, wcsInputPinName, sizeof(piInput.achName) / sizeof(piInput.achName[0]));
328 piOutput.dir = PINDIR_OUTPUT;
329 piOutput.pFilter = (IBaseFilter *)pAVIDec;
330 strncpyW(piOutput.achName, wcsOutputPinName, sizeof(piOutput.achName) / sizeof(piOutput.achName[0]));
332 hr = AVIDec_InputPin_Construct(&piInput, AVIDec_Sample, (LPVOID)pAVIDec, AVIDec_Input_QueryAccept, &pAVIDec->csFilter, &pAVIDec->ppPins[0]);
334 if (SUCCEEDED(hr))
336 hr = AVIDec_OutputPin_Construct(&piOutput, NULL, NULL, AVIDec_Output_QueryAccept, &pAVIDec->csFilter, &pAVIDec->ppPins[1]);
338 if (FAILED(hr))
339 ERR("Cannot create output pin (%lx)\n", hr);
341 *ppv = (LPVOID)pAVIDec;
343 else
345 CoTaskMemFree(pAVIDec->ppPins);
346 DeleteCriticalSection(&pAVIDec->csFilter);
347 CoTaskMemFree(pAVIDec);
350 return hr;
353 static HRESULT WINAPI AVIDec_QueryInterface(IBaseFilter * iface, REFIID riid, LPVOID * ppv)
355 AVIDecImpl *This = (AVIDecImpl *)iface;
356 TRACE("(%p/%p)->(%s, %p)\n", This, iface, qzdebugstr_guid(riid), ppv);
358 *ppv = NULL;
360 if (IsEqualIID(riid, &IID_IUnknown))
361 *ppv = (LPVOID)This;
362 else if (IsEqualIID(riid, &IID_IPersist))
363 *ppv = (LPVOID)This;
364 else if (IsEqualIID(riid, &IID_IMediaFilter))
365 *ppv = (LPVOID)This;
366 else if (IsEqualIID(riid, &IID_IBaseFilter))
367 *ppv = (LPVOID)This;
369 if (*ppv)
371 IUnknown_AddRef((IUnknown *)(*ppv));
372 return S_OK;
375 FIXME("No interface for %s!\n", qzdebugstr_guid(riid));
377 return E_NOINTERFACE;
380 static ULONG WINAPI AVIDec_AddRef(IBaseFilter * iface)
382 AVIDecImpl *This = (AVIDecImpl *)iface;
383 TRACE("(%p/%p)->()\n", This, iface);
384 return InterlockedIncrement(&This->refCount);
387 static ULONG WINAPI AVIDec_Release(IBaseFilter * iface)
389 AVIDecImpl *This = (AVIDecImpl *)iface;
390 TRACE("(%p/%p)->()\n", This, iface);
391 if (!InterlockedDecrement(&This->refCount))
393 ULONG i;
395 DeleteCriticalSection(&This->csFilter);
396 IReferenceClock_Release(This->pClock);
398 for (i = 0; i < 2; i++)
399 IPin_Release(This->ppPins[i]);
401 HeapFree(GetProcessHeap(), 0, This->ppPins);
402 This->lpVtbl = NULL;
404 if (This->hvid)
405 ICClose(This->hvid);
407 TRACE("Destroying AVI Decompressor\n");
408 CoTaskMemFree(This);
410 return 0;
412 else
413 return This->refCount;
416 /** IPersist methods **/
418 static HRESULT WINAPI AVIDec_GetClassID(IBaseFilter * iface, CLSID * pClsid)
420 AVIDecImpl *This = (AVIDecImpl *)iface;
422 TRACE("(%p/%p)->(%p)\n", This, iface, pClsid);
424 *pClsid = CLSID_AVIDec;
426 return S_OK;
429 /** IMediaFilter methods **/
431 static HRESULT WINAPI AVIDec_Stop(IBaseFilter * iface)
433 AVIDecImpl *This = (AVIDecImpl *)iface;
435 TRACE("(%p/%p)\n", This, iface);
437 EnterCriticalSection(&This->csFilter);
439 This->state = State_Stopped;
441 LeaveCriticalSection(&This->csFilter);
443 return S_OK;
446 static HRESULT WINAPI AVIDec_Pause(IBaseFilter * iface)
448 AVIDecImpl *This = (AVIDecImpl *)iface;
450 TRACE("(%p/%p)->()\n", This, iface);
452 EnterCriticalSection(&This->csFilter);
454 This->state = State_Paused;
456 LeaveCriticalSection(&This->csFilter);
458 return S_OK;
461 static HRESULT WINAPI AVIDec_Run(IBaseFilter * iface, REFERENCE_TIME tStart)
463 HRESULT hr = S_OK;
464 AVIDecImpl *This = (AVIDecImpl *)iface;
466 TRACE("(%p/%p)->(%s)\n", This, iface, wine_dbgstr_longlong(tStart));
468 EnterCriticalSection(&This->csFilter);
470 This->rtStreamStart = tStart;
472 This->state = State_Running;
474 LeaveCriticalSection(&This->csFilter);
476 return hr;
479 static HRESULT WINAPI AVIDec_GetState(IBaseFilter * iface, DWORD dwMilliSecsTimeout, FILTER_STATE *pState)
481 AVIDecImpl *This = (AVIDecImpl *)iface;
483 TRACE("(%p/%p)->(%ld, %p)\n", This, iface, dwMilliSecsTimeout, pState);
485 EnterCriticalSection(&This->csFilter);
487 *pState = This->state;
489 LeaveCriticalSection(&This->csFilter);
491 return S_OK;
494 static HRESULT WINAPI AVIDec_SetSyncSource(IBaseFilter * iface, IReferenceClock *pClock)
496 AVIDecImpl *This = (AVIDecImpl *)iface;
498 TRACE("(%p/%p)->(%p)\n", This, iface, pClock);
500 EnterCriticalSection(&This->csFilter);
502 if (This->pClock)
503 IReferenceClock_Release(This->pClock);
504 This->pClock = pClock;
505 if (This->pClock)
506 IReferenceClock_AddRef(This->pClock);
508 LeaveCriticalSection(&This->csFilter);
510 return S_OK;
513 static HRESULT WINAPI AVIDec_GetSyncSource(IBaseFilter * iface, IReferenceClock **ppClock)
515 AVIDecImpl *This = (AVIDecImpl *)iface;
517 TRACE("(%p/%p)->(%p)\n", This, iface, ppClock);
519 EnterCriticalSection(&This->csFilter);
521 *ppClock = This->pClock;
522 IReferenceClock_AddRef(This->pClock);
524 LeaveCriticalSection(&This->csFilter);
526 return S_OK;
529 /** IBaseFilter implementation **/
531 static HRESULT WINAPI AVIDec_EnumPins(IBaseFilter * iface, IEnumPins **ppEnum)
533 ENUMPINDETAILS epd;
534 AVIDecImpl *This = (AVIDecImpl *)iface;
536 TRACE("(%p/%p)->(%p)\n", This, iface, ppEnum);
538 epd.cPins = 2; /* input and output pins */
539 epd.ppPins = This->ppPins;
540 return IEnumPinsImpl_Construct(&epd, ppEnum);
543 static HRESULT WINAPI AVIDec_FindPin(IBaseFilter * iface, LPCWSTR Id, IPin **ppPin)
545 AVIDecImpl *This = (AVIDecImpl *)iface;
547 TRACE("(%p/%p)->(%p,%p)\n", This, iface, debugstr_w(Id), ppPin);
549 FIXME("AVISplitter::FindPin(...)\n");
551 /* FIXME: critical section */
553 return E_NOTIMPL;
556 static HRESULT WINAPI AVIDec_QueryFilterInfo(IBaseFilter * iface, FILTER_INFO *pInfo)
558 AVIDecImpl *This = (AVIDecImpl *)iface;
560 TRACE("(%p/%p)->(%p)\n", This, iface, pInfo);
562 strcpyW(pInfo->achName, This->filterInfo.achName);
563 pInfo->pGraph = This->filterInfo.pGraph;
565 if (pInfo->pGraph)
566 IFilterGraph_AddRef(pInfo->pGraph);
568 return S_OK;
571 static HRESULT WINAPI AVIDec_JoinFilterGraph(IBaseFilter * iface, IFilterGraph *pGraph, LPCWSTR pName)
573 HRESULT hr = S_OK;
574 AVIDecImpl *This = (AVIDecImpl *)iface;
576 TRACE("(%p/%p)->(%p, %s)\n", This, iface, pGraph, debugstr_w(pName));
578 EnterCriticalSection(&This->csFilter);
580 if (pName)
581 strcpyW(This->filterInfo.achName, pName);
582 else
583 *This->filterInfo.achName = '\0';
584 This->filterInfo.pGraph = pGraph; /* NOTE: do NOT increase ref. count */
586 LeaveCriticalSection(&This->csFilter);
588 return hr;
591 static HRESULT WINAPI AVIDec_QueryVendorInfo(IBaseFilter * iface, LPWSTR *pVendorInfo)
593 AVIDecImpl *This = (AVIDecImpl *)iface;
594 TRACE("(%p/%p)->(%p)\n", This, iface, pVendorInfo);
595 return E_NOTIMPL;
598 static const IBaseFilterVtbl AVIDec_Vtbl =
600 AVIDec_QueryInterface,
601 AVIDec_AddRef,
602 AVIDec_Release,
603 AVIDec_GetClassID,
604 AVIDec_Stop,
605 AVIDec_Pause,
606 AVIDec_Run,
607 AVIDec_GetState,
608 AVIDec_SetSyncSource,
609 AVIDec_GetSyncSource,
610 AVIDec_EnumPins,
611 AVIDec_FindPin,
612 AVIDec_QueryFilterInfo,
613 AVIDec_JoinFilterGraph,
614 AVIDec_QueryVendorInfo
617 static const IPinVtbl AVIDec_InputPin_Vtbl =
619 InputPin_QueryInterface,
620 IPinImpl_AddRef,
621 InputPin_Release,
622 InputPin_Connect,
623 InputPin_ReceiveConnection,
624 IPinImpl_Disconnect,
625 IPinImpl_ConnectedTo,
626 IPinImpl_ConnectionMediaType,
627 IPinImpl_QueryPinInfo,
628 IPinImpl_QueryDirection,
629 IPinImpl_QueryId,
630 IPinImpl_QueryAccept,
631 IPinImpl_EnumMediaTypes,
632 IPinImpl_QueryInternalConnections,
633 InputPin_EndOfStream,
634 InputPin_BeginFlush,
635 InputPin_EndFlush,
636 InputPin_NewSegment
639 HRESULT WINAPI AVIDec_Output_EnumMediaTypes(IPin * iface, IEnumMediaTypes ** ppEnum)
641 IPinImpl *This = (IPinImpl *)iface;
642 ENUMMEDIADETAILS emd;
644 TRACE("(%p/%p)->(%p)\n", This, iface, ppEnum);
646 emd.cMediaTypes = 1;
647 emd.pMediaTypes = &This->mtCurrent;
649 return IEnumMediaTypesImpl_Construct(&emd, ppEnum);
652 HRESULT WINAPI AVIDec_Output_Disconnect(IPin * iface)
654 OutputPin* This = (OutputPin*)iface;
655 HRESULT hr;
656 AVIDecImpl* pAVIDec = (AVIDecImpl*)This->pin.pinInfo.pFilter;
658 TRACE("(%p/%p)->()\n", This, iface);
660 hr = OutputPin_Disconnect(iface);
662 if (hr == S_OK)
664 ICClose(pAVIDec->hvid);
665 pAVIDec->hvid = 0;
668 return hr;
671 static const IPinVtbl AVIDec_OutputPin_Vtbl =
673 OutputPin_QueryInterface,
674 IPinImpl_AddRef,
675 OutputPin_Release,
676 OutputPin_Connect,
677 OutputPin_ReceiveConnection,
678 AVIDec_Output_Disconnect,
679 IPinImpl_ConnectedTo,
680 IPinImpl_ConnectionMediaType,
681 IPinImpl_QueryPinInfo,
682 IPinImpl_QueryDirection,
683 IPinImpl_QueryId,
684 IPinImpl_QueryAccept,
685 AVIDec_Output_EnumMediaTypes,
686 IPinImpl_QueryInternalConnections,
687 OutputPin_EndOfStream,
688 OutputPin_BeginFlush,
689 OutputPin_EndFlush,
690 OutputPin_NewSegment
693 static const IMemInputPinVtbl MemInputPin_Vtbl =
695 MemInputPin_QueryInterface,
696 MemInputPin_AddRef,
697 MemInputPin_Release,
698 MemInputPin_GetAllocator,
699 MemInputPin_NotifyAllocator,
700 MemInputPin_GetAllocatorRequirements,
701 MemInputPin_Receive,
702 MemInputPin_ReceiveMultiple,
703 MemInputPin_ReceiveCanBlock