2 * Video Renderer (Fullscreen and Windowed using Direct Draw)
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
23 #define NONAMELESSSTRUCT
24 #define NONAMELESSUNION
25 #include "quartz_private.h"
26 #include "control_private.h"
41 #include "wine/unicode.h"
42 #include "wine/debug.h"
44 WINE_DEFAULT_DEBUG_CHANNEL(quartz);
46 static const WCHAR wcsInputPinName[] = {'i','n','p','u','t',' ','p','i','n',0};
48 static const IBaseFilterVtbl VideoRenderer_Vtbl;
49 static IBasicVideoVtbl IBasicVideo_VTable;
50 static IVideoWindowVtbl IVideoWindow_VTable;
51 static const IPinVtbl VideoRenderer_InputPin_Vtbl;
53 typedef struct VideoRendererImpl
55 const IBaseFilterVtbl * lpVtbl;
56 IBasicVideoVtbl * IBasicVideo_vtbl;
57 IVideoWindowVtbl * IVideoWindow_vtbl;
60 CRITICAL_SECTION csFilter;
62 REFERENCE_TIME rtStreamStart;
63 IReferenceClock * pClock;
64 FILTER_INFO filterInfo;
70 LPDIRECTDRAWSURFACE surface;
71 LPDIRECTDRAWSURFACE backbuffer;
75 static const IMemInputPinVtbl MemInputPin_Vtbl =
77 MemInputPin_QueryInterface,
80 MemInputPin_GetAllocator,
81 MemInputPin_NotifyAllocator,
82 MemInputPin_GetAllocatorRequirements,
84 MemInputPin_ReceiveMultiple,
85 MemInputPin_ReceiveCanBlock
88 static HRESULT VideoRenderer_InputPin_Construct(const PIN_INFO * pPinInfo, SAMPLEPROC pSampleProc, LPVOID pUserData, QUERYACCEPTPROC pQueryAccept, LPCRITICAL_SECTION pCritSec, IPin ** ppPin)
94 if (pPinInfo->dir != PINDIR_INPUT)
96 ERR("Pin direction(%x) != PINDIR_INPUT\n", pPinInfo->dir);
100 pPinImpl = CoTaskMemAlloc(sizeof(*pPinImpl));
103 return E_OUTOFMEMORY;
105 if (SUCCEEDED(InputPin_Init(pPinInfo, pSampleProc, pUserData, pQueryAccept, pCritSec, pPinImpl)))
107 pPinImpl->pin.lpVtbl = &VideoRenderer_InputPin_Vtbl;
108 pPinImpl->lpVtblMemInput = &MemInputPin_Vtbl;
110 *ppPin = (IPin *)(&pPinImpl->pin.lpVtbl);
116 static HRESULT VideoRenderer_CreatePrimarySurface(IBaseFilter * iface)
121 VideoRendererImpl *This = (VideoRendererImpl *)iface;
123 hr = DirectDrawCreate(NULL, &This->ddraw, NULL);
126 ERR("Cannot create Direct Draw object\n");
130 hr = IDirectDraw_SetCooperativeLevel(This->ddraw, NULL, DDSCL_FULLSCREEN|DDSCL_EXCLUSIVE);
132 ERR("Cannot set fulscreen mode\n");
136 sdesc.dwSize = sizeof(sdesc);
137 sdesc.dwFlags = DDSD_CAPS | DDSD_BACKBUFFERCOUNT;
138 sdesc.ddsCaps.dwCaps = DDSCAPS_PRIMARYSURFACE | DDSCAPS_COMPLEX | DDSCAPS_FLIP;
139 sdesc.dwBackBufferCount = 1;
141 hr = IDirectDraw_CreateSurface(This->ddraw, &sdesc, &This->surface, NULL);
143 ERR("Cannot create surface\n");
147 hr = IDirectDrawSurface_GetSurfaceDesc(This->surface, &sdesc);
149 ERR("Cannot get surface information\n");
152 TRACE("Width = %ld\n", sdesc.dwWidth);
153 TRACE("Height = %ld\n", sdesc.dwHeight);
154 TRACE("Pitch = %ld\n", sdesc.u1.lPitch);
155 TRACE("Depth = %ld\n", sdesc.ddpfPixelFormat.u1.dwRGBBitCount);
157 ddscaps.dwCaps = DDSCAPS_BACKBUFFER;
158 hr = IDirectDrawSurface_GetAttachedSurface(This->surface, &ddscaps, &This->backbuffer);
160 ERR("Cannot get backbuffer\n");
167 static DWORD VideoRenderer_SendSampleData(VideoRendererImpl* This, LPBYTE data, DWORD size)
169 VIDEOINFOHEADER* format;
178 LPBYTE palette = NULL;
180 TRACE("%p %p %ld\n", This, data, size);
182 sdesc.dwSize = sizeof(sdesc);
183 hr = IPin_ConnectionMediaType(This->ppPins[0], &amt);
185 ERR("Unable to retrieve media type\n");
188 format = (VIDEOINFOHEADER*)amt.pbFormat;
190 TRACE("biSize = %ld\n", format->bmiHeader.biSize);
191 TRACE("biWidth = %ld\n", format->bmiHeader.biWidth);
192 TRACE("biHeigth = %ld\n", format->bmiHeader.biHeight);
193 TRACE("biPlanes = %d\n", format->bmiHeader.biPlanes);
194 TRACE("biBitCount = %d\n", format->bmiHeader.biBitCount);
195 TRACE("biCompression = %s\n", debugstr_an((LPSTR)&(format->bmiHeader.biCompression), 4));
196 TRACE("biSizeImage = %ld\n", format->bmiHeader.biSizeImage);
198 width = format->bmiHeader.biWidth;
199 height = format->bmiHeader.biHeight;
200 palette = ((LPBYTE)&format->bmiHeader) + format->bmiHeader.biSize;
202 hr = IDirectDrawSurface_Lock(This->backbuffer, NULL, &sdesc, DDLOCK_WRITEONLY, NULL);
204 ERR("Cannot lock backbuffer\n");
208 ptr = sdesc.lpSurface;
210 /* FIXME: We may use Direct Draw services to do the conversion for us */
211 if ((sdesc.ddpfPixelFormat.u1.dwRGBBitCount == 24) || (sdesc.ddpfPixelFormat.u1.dwRGBBitCount == 32))
213 if (format->bmiHeader.biBitCount == 8)
215 int psz = sdesc.ddpfPixelFormat.u1.dwRGBBitCount == 32 ? 4 : 3;
216 for (j = 0; j < height; j++)
217 for (i = 0; i < width; i++)
219 *(ptr + i*psz + 0 + j * sdesc.u1.lPitch) = palette[*(data + i + 0 + (height-1-j) * width)*4 + 0];
220 *(ptr + i*psz + 1 + j * sdesc.u1.lPitch) = palette[*(data + i + 0 + (height-1-j) * width)*4 + 1];
221 *(ptr + i*psz + 2 + j * sdesc.u1.lPitch) = palette[*(data + i + 0 + (height-1-j) * width)*4 + 2];
223 *(ptr + i*psz + 3 + j * sdesc.u1.lPitch) = 0xFF;
226 else if ((format->bmiHeader.biBitCount == 24) || (format->bmiHeader.biBitCount == 32))
228 int dpsz = sdesc.ddpfPixelFormat.u1.dwRGBBitCount == 32 ? 4 : 3;
229 int spsz = format->bmiHeader.biBitCount == 32 ? 4 : 3;
230 for (j = 0; j < height; j++)
231 for (i = 0; i < width; i++)
233 *(ptr + i*dpsz + 0 + j * sdesc.u1.lPitch) = *(data + (i + 0 + (height-1-j) * width)*spsz + 0);
234 *(ptr + i*dpsz + 1 + j * sdesc.u1.lPitch) = *(data + (i + 0 + (height-1-j) * width)*spsz + 1);
235 *(ptr + i*dpsz + 2 + j * sdesc.u1.lPitch) = *(data + (i + 0 + (height-1-j) * width)*spsz + 2);
237 *(ptr + i*dpsz + 3 + j * sdesc.u1.lPitch) = 0xFF;
241 FIXME("Source size with a depths other than 8 (paletted), 24 or 32 bits are not yet supported\n");
244 FIXME("Destination depths with a depth other than 24 or 32 bits are not yet supported\n");
246 hr = IDirectDrawSurface_Unlock(This->backbuffer, NULL);
248 ERR("Cannot unlock backbuffer\n");
252 hr = IDirectDrawSurface_Flip(This->surface, NULL, DDFLIP_WAIT);
254 ERR("Cannot unlock backbuffer\n");
261 static HRESULT VideoRenderer_Sample(LPVOID iface, IMediaSample * pSample)
263 VideoRendererImpl *This = (VideoRendererImpl *)iface;
264 LPBYTE pbSrcStream = NULL;
265 long cbSrcStream = 0;
266 REFERENCE_TIME tStart, tStop;
269 TRACE("%p %p\n", iface, pSample);
271 hr = IMediaSample_GetPointer(pSample, &pbSrcStream);
274 ERR("Cannot get pointer to sample data (%lx)\n", hr);
278 hr = IMediaSample_GetTime(pSample, &tStart, &tStop);
280 ERR("Cannot get sample time (%lx)\n", hr);
282 cbSrcStream = IMediaSample_GetActualDataLength(pSample);
284 TRACE("val %p %ld\n", pbSrcStream, cbSrcStream);
286 #if 0 /* For debugging purpose */
289 for(i = 0; i < cbSrcStream; i++)
291 if ((i!=0) && !(i%16))
293 DPRINTF("%02x ", pbSrcStream[i]);
302 hr = VideoRenderer_CreatePrimarySurface(iface);
305 ERR("Unable to create primary surface\n");
309 VideoRenderer_SendSampleData(This, pbSrcStream, cbSrcStream);
314 static HRESULT VideoRenderer_QueryAccept(LPVOID iface, const AM_MEDIA_TYPE * pmt)
316 if ((IsEqualIID(&pmt->majortype, &MEDIATYPE_Video) && IsEqualIID(&pmt->subtype, &MEDIASUBTYPE_RGB32)) ||
317 (IsEqualIID(&pmt->majortype, &MEDIATYPE_Video) && IsEqualIID(&pmt->subtype, &MEDIASUBTYPE_RGB24)) ||
318 (IsEqualIID(&pmt->majortype, &MEDIATYPE_Video) && IsEqualIID(&pmt->subtype, &MEDIASUBTYPE_RGB565)) ||
319 (IsEqualIID(&pmt->majortype, &MEDIATYPE_Video) && IsEqualIID(&pmt->subtype, &MEDIASUBTYPE_RGB8)))
324 HRESULT VideoRenderer_create(IUnknown * pUnkOuter, LPVOID * ppv)
328 VideoRendererImpl * pVideoRenderer;
330 TRACE("(%p, %p)\n", pUnkOuter, ppv);
335 return CLASS_E_NOAGGREGATION;
337 pVideoRenderer = CoTaskMemAlloc(sizeof(VideoRendererImpl));
339 pVideoRenderer->lpVtbl = &VideoRenderer_Vtbl;
340 pVideoRenderer->IBasicVideo_vtbl = &IBasicVideo_VTable;
341 pVideoRenderer->IVideoWindow_vtbl = &IVideoWindow_VTable;
343 pVideoRenderer->refCount = 1;
344 InitializeCriticalSection(&pVideoRenderer->csFilter);
345 pVideoRenderer->state = State_Stopped;
346 pVideoRenderer->pClock = NULL;
347 pVideoRenderer->init = 0;
348 ZeroMemory(&pVideoRenderer->filterInfo, sizeof(FILTER_INFO));
350 pVideoRenderer->ppPins = CoTaskMemAlloc(1 * sizeof(IPin *));
352 /* construct input pin */
353 piInput.dir = PINDIR_INPUT;
354 piInput.pFilter = (IBaseFilter *)pVideoRenderer;
355 lstrcpynW(piInput.achName, wcsInputPinName, sizeof(piInput.achName) / sizeof(piInput.achName[0]));
357 hr = VideoRenderer_InputPin_Construct(&piInput, VideoRenderer_Sample, (LPVOID)pVideoRenderer, VideoRenderer_QueryAccept, &pVideoRenderer->csFilter, (IPin **)&pVideoRenderer->pInputPin);
361 pVideoRenderer->ppPins[0] = (IPin *)pVideoRenderer->pInputPin;
362 *ppv = (LPVOID)pVideoRenderer;
366 CoTaskMemFree(pVideoRenderer->ppPins);
367 DeleteCriticalSection(&pVideoRenderer->csFilter);
368 CoTaskMemFree(pVideoRenderer);
374 static HRESULT WINAPI VideoRenderer_QueryInterface(IBaseFilter * iface, REFIID riid, LPVOID * ppv)
376 VideoRendererImpl *This = (VideoRendererImpl *)iface;
377 TRACE("(%p/%p)->(%s, %p)\n", This, iface, qzdebugstr_guid(riid), ppv);
381 if (IsEqualIID(riid, &IID_IUnknown))
383 else if (IsEqualIID(riid, &IID_IPersist))
385 else if (IsEqualIID(riid, &IID_IMediaFilter))
387 else if (IsEqualIID(riid, &IID_IBaseFilter))
389 else if (IsEqualIID(riid, &IID_IBasicVideo))
390 *ppv = (LPVOID)&(This->IBasicVideo_vtbl);
391 else if (IsEqualIID(riid, &IID_IVideoWindow))
392 *ppv = (LPVOID)&(This->IVideoWindow_vtbl);
396 IUnknown_AddRef((IUnknown *)(*ppv));
400 FIXME("No interface for %s!\n", qzdebugstr_guid(riid));
402 return E_NOINTERFACE;
405 static ULONG WINAPI VideoRenderer_AddRef(IBaseFilter * iface)
407 VideoRendererImpl *This = (VideoRendererImpl *)iface;
408 ULONG refCount = InterlockedIncrement(&This->refCount);
410 TRACE("(%p/%p)->() AddRef from %ld\n", This, iface, refCount - 1);
415 static ULONG WINAPI VideoRenderer_Release(IBaseFilter * iface)
417 VideoRendererImpl *This = (VideoRendererImpl *)iface;
418 ULONG refCount = InterlockedDecrement(&This->refCount);
420 TRACE("(%p/%p)->() Release from %ld\n", This, iface, refCount + 1);
424 DeleteCriticalSection(&This->csFilter);
427 IReferenceClock_Release(This->pClock);
429 IPin_Release(This->ppPins[0]);
431 HeapFree(GetProcessHeap(), 0, This->ppPins);
434 TRACE("Destroying Video Renderer\n");
443 /** IPersist methods **/
445 static HRESULT WINAPI VideoRenderer_GetClassID(IBaseFilter * iface, CLSID * pClsid)
447 VideoRendererImpl *This = (VideoRendererImpl *)iface;
449 TRACE("(%p/%p)->(%p)\n", This, iface, pClsid);
451 *pClsid = CLSID_VideoRenderer;
456 /** IMediaFilter methods **/
458 static HRESULT WINAPI VideoRenderer_Stop(IBaseFilter * iface)
460 VideoRendererImpl *This = (VideoRendererImpl *)iface;
462 TRACE("(%p/%p)->()\n", This, iface);
464 EnterCriticalSection(&This->csFilter);
466 This->state = State_Stopped;
468 LeaveCriticalSection(&This->csFilter);
473 static HRESULT WINAPI VideoRenderer_Pause(IBaseFilter * iface)
475 VideoRendererImpl *This = (VideoRendererImpl *)iface;
477 TRACE("(%p/%p)->()\n", This, iface);
479 EnterCriticalSection(&This->csFilter);
481 This->state = State_Paused;
483 LeaveCriticalSection(&This->csFilter);
488 static HRESULT WINAPI VideoRenderer_Run(IBaseFilter * iface, REFERENCE_TIME tStart)
490 VideoRendererImpl *This = (VideoRendererImpl *)iface;
492 TRACE("(%p/%p)->(%s)\n", This, iface, wine_dbgstr_longlong(tStart));
494 EnterCriticalSection(&This->csFilter);
496 This->rtStreamStart = tStart;
497 This->state = State_Running;
499 LeaveCriticalSection(&This->csFilter);
504 static HRESULT WINAPI VideoRenderer_GetState(IBaseFilter * iface, DWORD dwMilliSecsTimeout, FILTER_STATE *pState)
506 VideoRendererImpl *This = (VideoRendererImpl *)iface;
508 TRACE("(%p/%p)->(%ld, %p)\n", This, iface, dwMilliSecsTimeout, pState);
510 EnterCriticalSection(&This->csFilter);
512 *pState = This->state;
514 LeaveCriticalSection(&This->csFilter);
519 static HRESULT WINAPI VideoRenderer_SetSyncSource(IBaseFilter * iface, IReferenceClock *pClock)
521 VideoRendererImpl *This = (VideoRendererImpl *)iface;
523 TRACE("(%p/%p)->(%p)\n", This, iface, pClock);
525 EnterCriticalSection(&This->csFilter);
528 IReferenceClock_Release(This->pClock);
529 This->pClock = pClock;
531 IReferenceClock_AddRef(This->pClock);
533 LeaveCriticalSection(&This->csFilter);
538 static HRESULT WINAPI VideoRenderer_GetSyncSource(IBaseFilter * iface, IReferenceClock **ppClock)
540 VideoRendererImpl *This = (VideoRendererImpl *)iface;
542 TRACE("(%p/%p)->(%p)\n", This, iface, ppClock);
544 EnterCriticalSection(&This->csFilter);
546 *ppClock = This->pClock;
547 IReferenceClock_AddRef(This->pClock);
549 LeaveCriticalSection(&This->csFilter);
554 /** IBaseFilter implementation **/
556 static HRESULT WINAPI VideoRenderer_EnumPins(IBaseFilter * iface, IEnumPins **ppEnum)
559 VideoRendererImpl *This = (VideoRendererImpl *)iface;
561 TRACE("(%p/%p)->(%p)\n", This, iface, ppEnum);
563 epd.cPins = 1; /* input pin */
564 epd.ppPins = This->ppPins;
565 return IEnumPinsImpl_Construct(&epd, ppEnum);
568 static HRESULT WINAPI VideoRenderer_FindPin(IBaseFilter * iface, LPCWSTR Id, IPin **ppPin)
570 VideoRendererImpl *This = (VideoRendererImpl *)iface;
572 TRACE("(%p/%p)->(%p,%p)\n", This, iface, debugstr_w(Id), ppPin);
574 FIXME("VideoRenderer::FindPin(...)\n");
576 /* FIXME: critical section */
581 static HRESULT WINAPI VideoRenderer_QueryFilterInfo(IBaseFilter * iface, FILTER_INFO *pInfo)
583 VideoRendererImpl *This = (VideoRendererImpl *)iface;
585 TRACE("(%p/%p)->(%p)\n", This, iface, pInfo);
587 strcpyW(pInfo->achName, This->filterInfo.achName);
588 pInfo->pGraph = This->filterInfo.pGraph;
591 IFilterGraph_AddRef(pInfo->pGraph);
596 static HRESULT WINAPI VideoRenderer_JoinFilterGraph(IBaseFilter * iface, IFilterGraph *pGraph, LPCWSTR pName)
598 VideoRendererImpl *This = (VideoRendererImpl *)iface;
600 TRACE("(%p/%p)->(%p, %s)\n", This, iface, pGraph, debugstr_w(pName));
602 EnterCriticalSection(&This->csFilter);
605 strcpyW(This->filterInfo.achName, pName);
607 *This->filterInfo.achName = '\0';
608 This->filterInfo.pGraph = pGraph; /* NOTE: do NOT increase ref. count */
610 LeaveCriticalSection(&This->csFilter);
615 static HRESULT WINAPI VideoRenderer_QueryVendorInfo(IBaseFilter * iface, LPWSTR *pVendorInfo)
617 VideoRendererImpl *This = (VideoRendererImpl *)iface;
618 TRACE("(%p/%p)->(%p)\n", This, iface, pVendorInfo);
622 static const IBaseFilterVtbl VideoRenderer_Vtbl =
624 VideoRenderer_QueryInterface,
625 VideoRenderer_AddRef,
626 VideoRenderer_Release,
627 VideoRenderer_GetClassID,
631 VideoRenderer_GetState,
632 VideoRenderer_SetSyncSource,
633 VideoRenderer_GetSyncSource,
634 VideoRenderer_EnumPins,
635 VideoRenderer_FindPin,
636 VideoRenderer_QueryFilterInfo,
637 VideoRenderer_JoinFilterGraph,
638 VideoRenderer_QueryVendorInfo
641 static HRESULT WINAPI VideoRenderer_InputPin_EndOfStream(IPin * iface)
643 InputPin* This = (InputPin*)iface;
644 IMediaEventSink* pEventSink;
647 TRACE("(%p/%p)->()\n", This, iface);
649 hr = IFilterGraph_QueryInterface(((VideoRendererImpl*)This->pin.pinInfo.pFilter)->filterInfo.pGraph, &IID_IMediaEventSink, (LPVOID*)&pEventSink);
652 hr = IMediaEventSink_Notify(pEventSink, EC_COMPLETE, S_OK, 0);
653 IMediaEventSink_Release(pEventSink);
659 static const IPinVtbl VideoRenderer_InputPin_Vtbl =
661 InputPin_QueryInterface,
665 InputPin_ReceiveConnection,
667 IPinImpl_ConnectedTo,
668 IPinImpl_ConnectionMediaType,
669 IPinImpl_QueryPinInfo,
670 IPinImpl_QueryDirection,
672 IPinImpl_QueryAccept,
673 IPinImpl_EnumMediaTypes,
674 IPinImpl_QueryInternalConnections,
675 VideoRenderer_InputPin_EndOfStream,
681 /*** IUnknown methods ***/
682 static HRESULT WINAPI Basicvideo_QueryInterface(IBasicVideo *iface,
685 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
687 TRACE("(%p/%p)->(%s (%p), %p)\n", This, iface, debugstr_guid(riid), riid, ppvObj);
689 return VideoRenderer_QueryInterface((IBaseFilter*)This, riid, ppvObj);
692 static ULONG WINAPI Basicvideo_AddRef(IBasicVideo *iface) {
693 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
695 TRACE("(%p/%p)->()\n", This, iface);
697 return VideoRenderer_AddRef((IBaseFilter*)This);
700 static ULONG WINAPI Basicvideo_Release(IBasicVideo *iface) {
701 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
703 TRACE("(%p/%p)->()\n", This, iface);
705 return VideoRenderer_Release((IBaseFilter*)This);
708 /*** IDispatch methods ***/
709 static HRESULT WINAPI Basicvideo_GetTypeInfoCount(IBasicVideo *iface,
711 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
713 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, pctinfo);
718 static HRESULT WINAPI Basicvideo_GetTypeInfo(IBasicVideo *iface,
721 ITypeInfo**ppTInfo) {
722 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
724 TRACE("(%p/%p)->(%d, %ld, %p): stub !!!\n", This, iface, iTInfo, lcid, ppTInfo);
729 static HRESULT WINAPI Basicvideo_GetIDsOfNames(IBasicVideo *iface,
735 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
737 TRACE("(%p/%p)->(%s (%p), %p, %d, %ld, %p): stub !!!\n", This, iface, debugstr_guid(riid), riid, rgszNames, cNames, lcid, rgDispId);
742 static HRESULT WINAPI Basicvideo_Invoke(IBasicVideo *iface,
747 DISPPARAMS*pDispParams,
751 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
753 TRACE("(%p/%p)->(%ld, %s (%p), %ld, %04x, %p, %p, %p, %p): stub !!!\n", This, iface, dispIdMember, debugstr_guid(riid), riid, lcid, wFlags, pDispParams, pVarResult, pExepInfo, puArgErr);
758 /*** IBasicVideo methods ***/
759 static HRESULT WINAPI Basicvideo_get_AvgTimePerFrame(IBasicVideo *iface,
760 REFTIME *pAvgTimePerFrame) {
761 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
763 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, pAvgTimePerFrame);
768 static HRESULT WINAPI Basicvideo_get_BitRate(IBasicVideo *iface,
770 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
772 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, pBitRate);
777 static HRESULT WINAPI Basicvideo_get_BitErrorRate(IBasicVideo *iface,
778 long *pBitErrorRate) {
779 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
781 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, pBitErrorRate);
786 static HRESULT WINAPI Basicvideo_get_VideoWidth(IBasicVideo *iface,
788 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
790 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, pVideoWidth);
795 static HRESULT WINAPI Basicvideo_get_VideoHeight(IBasicVideo *iface,
796 long *pVideoHeight) {
797 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
799 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, pVideoHeight);
804 static HRESULT WINAPI Basicvideo_put_SourceLeft(IBasicVideo *iface,
806 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
808 TRACE("(%p/%p)->(%ld): stub !!!\n", This, iface, SourceLeft);
813 static HRESULT WINAPI Basicvideo_get_SourceLeft(IBasicVideo *iface,
815 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
817 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, pSourceLeft);
822 static HRESULT WINAPI Basicvideo_put_SourceWidth(IBasicVideo *iface,
824 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
826 TRACE("(%p/%p)->(%ld): stub !!!\n", This, iface, SourceWidth);
831 static HRESULT WINAPI Basicvideo_get_SourceWidth(IBasicVideo *iface,
832 long *pSourceWidth) {
833 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
835 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, pSourceWidth);
840 static HRESULT WINAPI Basicvideo_put_SourceTop(IBasicVideo *iface,
842 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
844 TRACE("(%p/%p)->(%ld): stub !!!\n", This, iface, SourceTop);
849 static HRESULT WINAPI Basicvideo_get_SourceTop(IBasicVideo *iface,
851 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
853 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, pSourceTop);
858 static HRESULT WINAPI Basicvideo_put_SourceHeight(IBasicVideo *iface,
860 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
862 TRACE("(%p/%p)->(%ld): stub !!!\n", This, iface, SourceHeight);
867 static HRESULT WINAPI Basicvideo_get_SourceHeight(IBasicVideo *iface,
868 long *pSourceHeight) {
869 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
871 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, pSourceHeight);
876 static HRESULT WINAPI Basicvideo_put_DestinationLeft(IBasicVideo *iface,
877 long DestinationLeft) {
878 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
880 TRACE("(%p/%p)->(%ld): stub !!!\n", This, iface, DestinationLeft);
885 static HRESULT WINAPI Basicvideo_get_DestinationLeft(IBasicVideo *iface,
886 long *pDestinationLeft) {
887 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
889 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, pDestinationLeft);
894 static HRESULT WINAPI Basicvideo_put_DestinationWidth(IBasicVideo *iface,
895 long DestinationWidth) {
896 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
898 TRACE("(%p/%p)->(%ld): stub !!!\n", This, iface, DestinationWidth);
903 static HRESULT WINAPI Basicvideo_get_DestinationWidth(IBasicVideo *iface,
904 long *pDestinationWidth) {
905 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
907 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, pDestinationWidth);
912 static HRESULT WINAPI Basicvideo_put_DestinationTop(IBasicVideo *iface,
913 long DestinationTop) {
914 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
916 TRACE("(%p/%p)->(%ld): stub !!!\n", This, iface, DestinationTop);
921 static HRESULT WINAPI Basicvideo_get_DestinationTop(IBasicVideo *iface,
922 long *pDestinationTop) {
923 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
925 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, pDestinationTop);
930 static HRESULT WINAPI Basicvideo_put_DestinationHeight(IBasicVideo *iface,
931 long DestinationHeight) {
932 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
934 TRACE("(%p/%p)->(%ld): stub !!!\n", This, iface, DestinationHeight);
939 static HRESULT WINAPI Basicvideo_get_DestinationHeight(IBasicVideo *iface,
940 long *pDestinationHeight) {
941 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
943 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, pDestinationHeight);
948 static HRESULT WINAPI Basicvideo_SetSourcePosition(IBasicVideo *iface,
953 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
955 TRACE("(%p/%p)->(%ld, %ld, %ld, %ld): stub !!!\n", This, iface, Left, Top, Width, Height);
960 static HRESULT WINAPI Basicvideo_GetSourcePosition(IBasicVideo *iface,
965 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
967 TRACE("(%p/%p)->(%p, %p, %p, %p): stub !!!\n", This, iface, pLeft, pTop, pWidth, pHeight);
972 static HRESULT WINAPI Basicvideo_SetDefaultSourcePosition(IBasicVideo *iface) {
973 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
975 TRACE("(%p/%p)->(): stub !!!\n", This, iface);
980 static HRESULT WINAPI Basicvideo_SetDestinationPosition(IBasicVideo *iface,
985 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
987 TRACE("(%p/%p)->(%ld, %ld, %ld, %ld): stub !!!\n", This, iface, Left, Top, Width, Height);
992 static HRESULT WINAPI Basicvideo_GetDestinationPosition(IBasicVideo *iface,
997 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
999 TRACE("(%p/%p)->(%p, %p, %p, %p): stub !!!\n", This, iface, pLeft, pTop, pWidth, pHeight);
1004 static HRESULT WINAPI Basicvideo_SetDefaultDestinationPosition(IBasicVideo *iface) {
1005 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
1007 TRACE("(%p/%p)->(): stub !!!\n", This, iface);
1012 static HRESULT WINAPI Basicvideo_GetVideoSize(IBasicVideo *iface,
1015 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
1017 TRACE("(%p/%p)->(%p, %p): stub !!!\n", This, iface, pWidth, pHeight);
1022 static HRESULT WINAPI Basicvideo_GetVideoPaletteEntries(IBasicVideo *iface,
1027 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
1029 TRACE("(%p/%p)->(%ld, %ld, %p, %p): stub !!!\n", This, iface, StartIndex, Entries, pRetrieved, pPalette);
1034 static HRESULT WINAPI Basicvideo_GetCurrentImage(IBasicVideo *iface,
1037 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
1039 TRACE("(%p/%p)->(%p, %p): stub !!!\n", This, iface, pBufferSize, pDIBImage);
1044 static HRESULT WINAPI Basicvideo_IsUsingDefaultSource(IBasicVideo *iface) {
1045 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
1047 TRACE("(%p/%p)->(): stub !!!\n", This, iface);
1052 static HRESULT WINAPI Basicvideo_IsUsingDefaultDestination(IBasicVideo *iface) {
1053 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
1055 TRACE("(%p/%p)->(): stub !!!\n", This, iface);
1061 static IBasicVideoVtbl IBasicVideo_VTable =
1063 Basicvideo_QueryInterface,
1066 Basicvideo_GetTypeInfoCount,
1067 Basicvideo_GetTypeInfo,
1068 Basicvideo_GetIDsOfNames,
1070 Basicvideo_get_AvgTimePerFrame,
1071 Basicvideo_get_BitRate,
1072 Basicvideo_get_BitErrorRate,
1073 Basicvideo_get_VideoWidth,
1074 Basicvideo_get_VideoHeight,
1075 Basicvideo_put_SourceLeft,
1076 Basicvideo_get_SourceLeft,
1077 Basicvideo_put_SourceWidth,
1078 Basicvideo_get_SourceWidth,
1079 Basicvideo_put_SourceTop,
1080 Basicvideo_get_SourceTop,
1081 Basicvideo_put_SourceHeight,
1082 Basicvideo_get_SourceHeight,
1083 Basicvideo_put_DestinationLeft,
1084 Basicvideo_get_DestinationLeft,
1085 Basicvideo_put_DestinationWidth,
1086 Basicvideo_get_DestinationWidth,
1087 Basicvideo_put_DestinationTop,
1088 Basicvideo_get_DestinationTop,
1089 Basicvideo_put_DestinationHeight,
1090 Basicvideo_get_DestinationHeight,
1091 Basicvideo_SetSourcePosition,
1092 Basicvideo_GetSourcePosition,
1093 Basicvideo_SetDefaultSourcePosition,
1094 Basicvideo_SetDestinationPosition,
1095 Basicvideo_GetDestinationPosition,
1096 Basicvideo_SetDefaultDestinationPosition,
1097 Basicvideo_GetVideoSize,
1098 Basicvideo_GetVideoPaletteEntries,
1099 Basicvideo_GetCurrentImage,
1100 Basicvideo_IsUsingDefaultSource,
1101 Basicvideo_IsUsingDefaultDestination
1105 /*** IUnknown methods ***/
1106 static HRESULT WINAPI Videowindow_QueryInterface(IVideoWindow *iface,
1109 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1111 TRACE("(%p/%p)->(%s (%p), %p)\n", This, iface, debugstr_guid(riid), riid, ppvObj);
1113 return VideoRenderer_QueryInterface((IBaseFilter*)This, riid, ppvObj);
1116 static ULONG WINAPI Videowindow_AddRef(IVideoWindow *iface) {
1117 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1119 TRACE("(%p/%p)->()\n", This, iface);
1121 return VideoRenderer_AddRef((IBaseFilter*)This);
1124 static ULONG WINAPI Videowindow_Release(IVideoWindow *iface) {
1125 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1127 TRACE("(%p/%p)->()\n", This, iface);
1129 return VideoRenderer_Release((IBaseFilter*)This);
1132 /*** IDispatch methods ***/
1133 static HRESULT WINAPI Videowindow_GetTypeInfoCount(IVideoWindow *iface,
1135 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1137 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, pctinfo);
1142 static HRESULT WINAPI Videowindow_GetTypeInfo(IVideoWindow *iface,
1145 ITypeInfo**ppTInfo) {
1146 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1148 TRACE("(%p/%p)->(%d, %ld, %p): stub !!!\n", This, iface, iTInfo, lcid, ppTInfo);
1153 static HRESULT WINAPI Videowindow_GetIDsOfNames(IVideoWindow *iface,
1159 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1161 TRACE("(%p/%p)->(%s (%p), %p, %d, %ld, %p): stub !!!\n", This, iface, debugstr_guid(riid), riid, rgszNames, cNames, lcid, rgDispId);
1166 static HRESULT WINAPI Videowindow_Invoke(IVideoWindow *iface,
1167 DISPID dispIdMember,
1171 DISPPARAMS*pDispParams,
1173 EXCEPINFO*pExepInfo,
1175 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1177 TRACE("(%p/%p)->(%ld, %s (%p), %ld, %04x, %p, %p, %p, %p): stub !!!\n", This, iface, dispIdMember, debugstr_guid(riid), riid, lcid, wFlags, pDispParams, pVarResult, pExepInfo, puArgErr);
1182 /*** IVideoWindow methods ***/
1183 static HRESULT WINAPI Videowindow_put_Caption(IVideoWindow *iface,
1185 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1187 TRACE("(%p/%p)->(%s (%p)): stub !!!\n", This, iface, debugstr_w(strCaption), strCaption);
1192 static HRESULT WINAPI Videowindow_get_Caption(IVideoWindow *iface,
1194 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1196 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, strCaption);
1201 static HRESULT WINAPI Videowindow_put_WindowStyle(IVideoWindow *iface,
1203 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1205 TRACE("(%p/%p)->(%ld): stub !!!\n", This, iface, WindowStyle);
1210 static HRESULT WINAPI Videowindow_get_WindowStyle(IVideoWindow *iface,
1211 long *WindowStyle) {
1212 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1214 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, WindowStyle);
1219 static HRESULT WINAPI Videowindow_put_WindowStyleEx(IVideoWindow *iface,
1220 long WindowStyleEx) {
1221 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1223 TRACE("(%p/%p)->(%ld): stub !!!\n", This, iface, WindowStyleEx);
1228 static HRESULT WINAPI Videowindow_get_WindowStyleEx(IVideoWindow *iface,
1229 long *WindowStyleEx) {
1230 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1232 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, WindowStyleEx);
1237 static HRESULT WINAPI Videowindow_put_AutoShow(IVideoWindow *iface,
1239 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1241 TRACE("(%p/%p)->(%ld): stub !!!\n", This, iface, AutoShow);
1246 static HRESULT WINAPI Videowindow_get_AutoShow(IVideoWindow *iface,
1248 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1250 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, AutoShow);
1255 static HRESULT WINAPI Videowindow_put_WindowState(IVideoWindow *iface,
1257 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1259 TRACE("(%p/%p)->(%ld): stub !!!\n", This, iface, WindowState);
1264 static HRESULT WINAPI Videowindow_get_WindowState(IVideoWindow *iface,
1265 long *WindowState) {
1266 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1268 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, WindowState);
1273 static HRESULT WINAPI Videowindow_put_BackgroundPalette(IVideoWindow *iface,
1274 long BackgroundPalette) {
1275 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1277 TRACE("(%p/%p)->(%ld): stub !!!\n", This, iface, BackgroundPalette);
1282 static HRESULT WINAPI Videowindow_get_BackgroundPalette(IVideoWindow *iface,
1283 long *pBackgroundPalette) {
1284 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1286 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, pBackgroundPalette);
1291 static HRESULT WINAPI Videowindow_put_Visible(IVideoWindow *iface,
1293 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1295 TRACE("(%p/%p)->(%ld): stub !!!\n", This, iface, Visible);
1300 static HRESULT WINAPI Videowindow_get_Visible(IVideoWindow *iface,
1302 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1304 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, pVisible);
1309 static HRESULT WINAPI Videowindow_put_Left(IVideoWindow *iface,
1311 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1313 TRACE("(%p/%p)->(%ld): stub !!!\n", This, iface, Left);
1318 static HRESULT WINAPI Videowindow_get_Left(IVideoWindow *iface,
1320 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1322 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, pLeft);
1327 static HRESULT WINAPI Videowindow_put_Width(IVideoWindow *iface,
1329 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1331 TRACE("(%p/%p)->(%ld): stub !!!\n", This, iface, Width);
1336 static HRESULT WINAPI Videowindow_get_Width(IVideoWindow *iface,
1338 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1340 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, pWidth);
1345 static HRESULT WINAPI Videowindow_put_Top(IVideoWindow *iface,
1347 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1349 TRACE("(%p/%p)->(%ld): stub !!!\n", This, iface, Top);
1354 static HRESULT WINAPI Videowindow_get_Top(IVideoWindow *iface,
1356 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1358 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, pTop);
1363 static HRESULT WINAPI Videowindow_put_Height(IVideoWindow *iface,
1365 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1367 TRACE("(%p/%p)->(%ld): stub !!!\n", This, iface, Height);
1372 static HRESULT WINAPI Videowindow_get_Height(IVideoWindow *iface,
1374 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1376 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, pHeight);
1381 static HRESULT WINAPI Videowindow_put_Owner(IVideoWindow *iface,
1383 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1385 TRACE("(%p/%p)->(%08lx): stub !!!\n", This, iface, (DWORD) Owner);
1390 static HRESULT WINAPI Videowindow_get_Owner(IVideoWindow *iface,
1392 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1394 TRACE("(%p/%p)->(%08lx): stub !!!\n", This, iface, (DWORD) Owner);
1399 static HRESULT WINAPI Videowindow_put_MessageDrain(IVideoWindow *iface,
1401 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1403 TRACE("(%p/%p)->(%08lx): stub !!!\n", This, iface, (DWORD) Drain);
1408 static HRESULT WINAPI Videowindow_get_MessageDrain(IVideoWindow *iface,
1410 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1412 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, Drain);
1417 static HRESULT WINAPI Videowindow_get_BorderColor(IVideoWindow *iface,
1419 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1421 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, Color);
1426 static HRESULT WINAPI Videowindow_put_BorderColor(IVideoWindow *iface,
1428 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1430 TRACE("(%p/%p)->(%ld): stub !!!\n", This, iface, Color);
1435 static HRESULT WINAPI Videowindow_get_FullScreenMode(IVideoWindow *iface,
1436 long *FullScreenMode) {
1437 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1439 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, FullScreenMode);
1444 static HRESULT WINAPI Videowindow_put_FullScreenMode(IVideoWindow *iface,
1445 long FullScreenMode) {
1446 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1448 TRACE("(%p/%p)->(%ld): stub !!!\n", This, iface, FullScreenMode);
1453 static HRESULT WINAPI Videowindow_SetWindowForeground(IVideoWindow *iface,
1455 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1457 TRACE("(%p/%p)->(%ld): stub !!!\n", This, iface, Focus);
1462 static HRESULT WINAPI Videowindow_NotifyOwnerMessage(IVideoWindow *iface,
1467 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1469 TRACE("(%p/%p)->(%08lx, %ld, %08lx, %08lx): stub !!!\n", This, iface, (DWORD) hwnd, uMsg, wParam, lParam);
1474 static HRESULT WINAPI Videowindow_SetWindowPosition(IVideoWindow *iface,
1479 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1481 TRACE("(%p/%p)->(%ld, %ld, %ld, %ld): stub !!!\n", This, iface, Left, Top, Width, Height);
1486 static HRESULT WINAPI Videowindow_GetWindowPosition(IVideoWindow *iface,
1491 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1493 TRACE("(%p/%p)->(%p, %p, %p, %p): stub !!!\n", This, iface, pLeft, pTop, pWidth, pHeight);
1498 static HRESULT WINAPI Videowindow_GetMinIdealImageSize(IVideoWindow *iface,
1501 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1503 TRACE("(%p/%p)->(%p, %p): stub !!!\n", This, iface, pWidth, pHeight);
1508 static HRESULT WINAPI Videowindow_GetMaxIdealImageSize(IVideoWindow *iface,
1511 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1513 TRACE("(%p/%p)->(%p, %p): stub !!!\n", This, iface, pWidth, pHeight);
1518 static HRESULT WINAPI Videowindow_GetRestorePosition(IVideoWindow *iface,
1523 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1525 TRACE("(%p/%p)->(%p, %p, %p, %p): stub !!!\n", This, iface, pLeft, pTop, pWidth, pHeight);
1530 static HRESULT WINAPI Videowindow_HideCursor(IVideoWindow *iface,
1532 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1534 TRACE("(%p/%p)->(%ld): stub !!!\n", This, iface, HideCursor);
1539 static HRESULT WINAPI Videowindow_IsCursorHidden(IVideoWindow *iface,
1540 long *CursorHidden) {
1541 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1543 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, CursorHidden);
1548 static IVideoWindowVtbl IVideoWindow_VTable =
1550 Videowindow_QueryInterface,
1552 Videowindow_Release,
1553 Videowindow_GetTypeInfoCount,
1554 Videowindow_GetTypeInfo,
1555 Videowindow_GetIDsOfNames,
1557 Videowindow_put_Caption,
1558 Videowindow_get_Caption,
1559 Videowindow_put_WindowStyle,
1560 Videowindow_get_WindowStyle,
1561 Videowindow_put_WindowStyleEx,
1562 Videowindow_get_WindowStyleEx,
1563 Videowindow_put_AutoShow,
1564 Videowindow_get_AutoShow,
1565 Videowindow_put_WindowState,
1566 Videowindow_get_WindowState,
1567 Videowindow_put_BackgroundPalette,
1568 Videowindow_get_BackgroundPalette,
1569 Videowindow_put_Visible,
1570 Videowindow_get_Visible,
1571 Videowindow_put_Left,
1572 Videowindow_get_Left,
1573 Videowindow_put_Width,
1574 Videowindow_get_Width,
1575 Videowindow_put_Top,
1576 Videowindow_get_Top,
1577 Videowindow_put_Height,
1578 Videowindow_get_Height,
1579 Videowindow_put_Owner,
1580 Videowindow_get_Owner,
1581 Videowindow_put_MessageDrain,
1582 Videowindow_get_MessageDrain,
1583 Videowindow_get_BorderColor,
1584 Videowindow_put_BorderColor,
1585 Videowindow_get_FullScreenMode,
1586 Videowindow_put_FullScreenMode,
1587 Videowindow_SetWindowForeground,
1588 Videowindow_NotifyOwnerMessage,
1589 Videowindow_SetWindowPosition,
1590 Videowindow_GetWindowPosition,
1591 Videowindow_GetMinIdealImageSize,
1592 Videowindow_GetMaxIdealImageSize,
1593 Videowindow_GetRestorePosition,
1594 Videowindow_HideCursor,
1595 Videowindow_IsCursorHidden