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 const IBasicVideoVtbl IBasicVideo_VTable;
50 static const IVideoWindowVtbl IVideoWindow_VTable;
51 static const IPinVtbl VideoRenderer_InputPin_Vtbl;
53 typedef struct VideoRendererImpl
55 const IBaseFilterVtbl * lpVtbl;
56 const IBasicVideoVtbl * IBasicVideo_vtbl;
57 const 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, GetDesktopWindow(), DDSCL_NORMAL);
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]);
301 hr = VideoRenderer_CreatePrimarySurface(iface);
304 ERR("Unable to create primary surface\n");
310 VideoRenderer_SendSampleData(This, pbSrcStream, cbSrcStream);
315 static HRESULT VideoRenderer_QueryAccept(LPVOID iface, const AM_MEDIA_TYPE * pmt)
317 if ((IsEqualIID(&pmt->majortype, &MEDIATYPE_Video) && IsEqualIID(&pmt->subtype, &MEDIASUBTYPE_RGB32)) ||
318 (IsEqualIID(&pmt->majortype, &MEDIATYPE_Video) && IsEqualIID(&pmt->subtype, &MEDIASUBTYPE_RGB24)) ||
319 (IsEqualIID(&pmt->majortype, &MEDIATYPE_Video) && IsEqualIID(&pmt->subtype, &MEDIASUBTYPE_RGB565)) ||
320 (IsEqualIID(&pmt->majortype, &MEDIATYPE_Video) && IsEqualIID(&pmt->subtype, &MEDIASUBTYPE_RGB8)))
325 HRESULT VideoRenderer_create(IUnknown * pUnkOuter, LPVOID * ppv)
329 VideoRendererImpl * pVideoRenderer;
331 TRACE("(%p, %p)\n", pUnkOuter, ppv);
336 return CLASS_E_NOAGGREGATION;
338 pVideoRenderer = CoTaskMemAlloc(sizeof(VideoRendererImpl));
340 pVideoRenderer->lpVtbl = &VideoRenderer_Vtbl;
341 pVideoRenderer->IBasicVideo_vtbl = &IBasicVideo_VTable;
342 pVideoRenderer->IVideoWindow_vtbl = &IVideoWindow_VTable;
344 pVideoRenderer->refCount = 1;
345 InitializeCriticalSection(&pVideoRenderer->csFilter);
346 pVideoRenderer->state = State_Stopped;
347 pVideoRenderer->pClock = NULL;
348 pVideoRenderer->init = 0;
349 ZeroMemory(&pVideoRenderer->filterInfo, sizeof(FILTER_INFO));
351 pVideoRenderer->ppPins = CoTaskMemAlloc(1 * sizeof(IPin *));
353 /* construct input pin */
354 piInput.dir = PINDIR_INPUT;
355 piInput.pFilter = (IBaseFilter *)pVideoRenderer;
356 lstrcpynW(piInput.achName, wcsInputPinName, sizeof(piInput.achName) / sizeof(piInput.achName[0]));
358 hr = VideoRenderer_InputPin_Construct(&piInput, VideoRenderer_Sample, (LPVOID)pVideoRenderer, VideoRenderer_QueryAccept, &pVideoRenderer->csFilter, (IPin **)&pVideoRenderer->pInputPin);
362 pVideoRenderer->ppPins[0] = (IPin *)pVideoRenderer->pInputPin;
363 *ppv = (LPVOID)pVideoRenderer;
367 CoTaskMemFree(pVideoRenderer->ppPins);
368 DeleteCriticalSection(&pVideoRenderer->csFilter);
369 CoTaskMemFree(pVideoRenderer);
375 static HRESULT WINAPI VideoRenderer_QueryInterface(IBaseFilter * iface, REFIID riid, LPVOID * ppv)
377 VideoRendererImpl *This = (VideoRendererImpl *)iface;
378 TRACE("(%p/%p)->(%s, %p)\n", This, iface, qzdebugstr_guid(riid), ppv);
382 if (IsEqualIID(riid, &IID_IUnknown))
384 else if (IsEqualIID(riid, &IID_IPersist))
386 else if (IsEqualIID(riid, &IID_IMediaFilter))
388 else if (IsEqualIID(riid, &IID_IBaseFilter))
390 else if (IsEqualIID(riid, &IID_IBasicVideo))
391 *ppv = (LPVOID)&(This->IBasicVideo_vtbl);
392 else if (IsEqualIID(riid, &IID_IVideoWindow))
393 *ppv = (LPVOID)&(This->IVideoWindow_vtbl);
397 IUnknown_AddRef((IUnknown *)(*ppv));
401 FIXME("No interface for %s!\n", qzdebugstr_guid(riid));
403 return E_NOINTERFACE;
406 static ULONG WINAPI VideoRenderer_AddRef(IBaseFilter * iface)
408 VideoRendererImpl *This = (VideoRendererImpl *)iface;
409 ULONG refCount = InterlockedIncrement(&This->refCount);
411 TRACE("(%p/%p)->() AddRef from %ld\n", This, iface, refCount - 1);
416 static ULONG WINAPI VideoRenderer_Release(IBaseFilter * iface)
418 VideoRendererImpl *This = (VideoRendererImpl *)iface;
419 ULONG refCount = InterlockedDecrement(&This->refCount);
421 TRACE("(%p/%p)->() Release from %ld\n", This, iface, refCount + 1);
425 DeleteCriticalSection(&This->csFilter);
428 IReferenceClock_Release(This->pClock);
430 IPin_Release(This->ppPins[0]);
432 HeapFree(GetProcessHeap(), 0, This->ppPins);
435 TRACE("Destroying Video Renderer\n");
444 /** IPersist methods **/
446 static HRESULT WINAPI VideoRenderer_GetClassID(IBaseFilter * iface, CLSID * pClsid)
448 VideoRendererImpl *This = (VideoRendererImpl *)iface;
450 TRACE("(%p/%p)->(%p)\n", This, iface, pClsid);
452 *pClsid = CLSID_VideoRenderer;
457 /** IMediaFilter methods **/
459 static HRESULT WINAPI VideoRenderer_Stop(IBaseFilter * iface)
461 VideoRendererImpl *This = (VideoRendererImpl *)iface;
463 TRACE("(%p/%p)->()\n", This, iface);
465 EnterCriticalSection(&This->csFilter);
467 This->state = State_Stopped;
469 LeaveCriticalSection(&This->csFilter);
474 static HRESULT WINAPI VideoRenderer_Pause(IBaseFilter * iface)
476 VideoRendererImpl *This = (VideoRendererImpl *)iface;
478 TRACE("(%p/%p)->()\n", This, iface);
480 EnterCriticalSection(&This->csFilter);
482 This->state = State_Paused;
484 LeaveCriticalSection(&This->csFilter);
489 static HRESULT WINAPI VideoRenderer_Run(IBaseFilter * iface, REFERENCE_TIME tStart)
491 VideoRendererImpl *This = (VideoRendererImpl *)iface;
493 TRACE("(%p/%p)->(%s)\n", This, iface, wine_dbgstr_longlong(tStart));
495 EnterCriticalSection(&This->csFilter);
497 This->rtStreamStart = tStart;
498 This->state = State_Running;
500 LeaveCriticalSection(&This->csFilter);
505 static HRESULT WINAPI VideoRenderer_GetState(IBaseFilter * iface, DWORD dwMilliSecsTimeout, FILTER_STATE *pState)
507 VideoRendererImpl *This = (VideoRendererImpl *)iface;
509 TRACE("(%p/%p)->(%ld, %p)\n", This, iface, dwMilliSecsTimeout, pState);
511 EnterCriticalSection(&This->csFilter);
513 *pState = This->state;
515 LeaveCriticalSection(&This->csFilter);
520 static HRESULT WINAPI VideoRenderer_SetSyncSource(IBaseFilter * iface, IReferenceClock *pClock)
522 VideoRendererImpl *This = (VideoRendererImpl *)iface;
524 TRACE("(%p/%p)->(%p)\n", This, iface, pClock);
526 EnterCriticalSection(&This->csFilter);
529 IReferenceClock_Release(This->pClock);
530 This->pClock = pClock;
532 IReferenceClock_AddRef(This->pClock);
534 LeaveCriticalSection(&This->csFilter);
539 static HRESULT WINAPI VideoRenderer_GetSyncSource(IBaseFilter * iface, IReferenceClock **ppClock)
541 VideoRendererImpl *This = (VideoRendererImpl *)iface;
543 TRACE("(%p/%p)->(%p)\n", This, iface, ppClock);
545 EnterCriticalSection(&This->csFilter);
547 *ppClock = This->pClock;
548 IReferenceClock_AddRef(This->pClock);
550 LeaveCriticalSection(&This->csFilter);
555 /** IBaseFilter implementation **/
557 static HRESULT WINAPI VideoRenderer_EnumPins(IBaseFilter * iface, IEnumPins **ppEnum)
560 VideoRendererImpl *This = (VideoRendererImpl *)iface;
562 TRACE("(%p/%p)->(%p)\n", This, iface, ppEnum);
564 epd.cPins = 1; /* input pin */
565 epd.ppPins = This->ppPins;
566 return IEnumPinsImpl_Construct(&epd, ppEnum);
569 static HRESULT WINAPI VideoRenderer_FindPin(IBaseFilter * iface, LPCWSTR Id, IPin **ppPin)
571 VideoRendererImpl *This = (VideoRendererImpl *)iface;
573 TRACE("(%p/%p)->(%p,%p)\n", This, iface, debugstr_w(Id), ppPin);
575 FIXME("VideoRenderer::FindPin(...)\n");
577 /* FIXME: critical section */
582 static HRESULT WINAPI VideoRenderer_QueryFilterInfo(IBaseFilter * iface, FILTER_INFO *pInfo)
584 VideoRendererImpl *This = (VideoRendererImpl *)iface;
586 TRACE("(%p/%p)->(%p)\n", This, iface, pInfo);
588 strcpyW(pInfo->achName, This->filterInfo.achName);
589 pInfo->pGraph = This->filterInfo.pGraph;
592 IFilterGraph_AddRef(pInfo->pGraph);
597 static HRESULT WINAPI VideoRenderer_JoinFilterGraph(IBaseFilter * iface, IFilterGraph *pGraph, LPCWSTR pName)
599 VideoRendererImpl *This = (VideoRendererImpl *)iface;
601 TRACE("(%p/%p)->(%p, %s)\n", This, iface, pGraph, debugstr_w(pName));
603 EnterCriticalSection(&This->csFilter);
606 strcpyW(This->filterInfo.achName, pName);
608 *This->filterInfo.achName = '\0';
609 This->filterInfo.pGraph = pGraph; /* NOTE: do NOT increase ref. count */
611 LeaveCriticalSection(&This->csFilter);
616 static HRESULT WINAPI VideoRenderer_QueryVendorInfo(IBaseFilter * iface, LPWSTR *pVendorInfo)
618 VideoRendererImpl *This = (VideoRendererImpl *)iface;
619 TRACE("(%p/%p)->(%p)\n", This, iface, pVendorInfo);
623 static const IBaseFilterVtbl VideoRenderer_Vtbl =
625 VideoRenderer_QueryInterface,
626 VideoRenderer_AddRef,
627 VideoRenderer_Release,
628 VideoRenderer_GetClassID,
632 VideoRenderer_GetState,
633 VideoRenderer_SetSyncSource,
634 VideoRenderer_GetSyncSource,
635 VideoRenderer_EnumPins,
636 VideoRenderer_FindPin,
637 VideoRenderer_QueryFilterInfo,
638 VideoRenderer_JoinFilterGraph,
639 VideoRenderer_QueryVendorInfo
642 static HRESULT WINAPI VideoRenderer_InputPin_EndOfStream(IPin * iface)
644 InputPin* This = (InputPin*)iface;
645 IMediaEventSink* pEventSink;
648 TRACE("(%p/%p)->()\n", This, iface);
650 hr = IFilterGraph_QueryInterface(((VideoRendererImpl*)This->pin.pinInfo.pFilter)->filterInfo.pGraph, &IID_IMediaEventSink, (LPVOID*)&pEventSink);
653 hr = IMediaEventSink_Notify(pEventSink, EC_COMPLETE, S_OK, 0);
654 IMediaEventSink_Release(pEventSink);
660 static const IPinVtbl VideoRenderer_InputPin_Vtbl =
662 InputPin_QueryInterface,
666 InputPin_ReceiveConnection,
668 IPinImpl_ConnectedTo,
669 IPinImpl_ConnectionMediaType,
670 IPinImpl_QueryPinInfo,
671 IPinImpl_QueryDirection,
673 IPinImpl_QueryAccept,
674 IPinImpl_EnumMediaTypes,
675 IPinImpl_QueryInternalConnections,
676 VideoRenderer_InputPin_EndOfStream,
682 /*** IUnknown methods ***/
683 static HRESULT WINAPI Basicvideo_QueryInterface(IBasicVideo *iface,
686 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
688 TRACE("(%p/%p)->(%s (%p), %p)\n", This, iface, debugstr_guid(riid), riid, ppvObj);
690 return VideoRenderer_QueryInterface((IBaseFilter*)This, riid, ppvObj);
693 static ULONG WINAPI Basicvideo_AddRef(IBasicVideo *iface) {
694 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
696 TRACE("(%p/%p)->()\n", This, iface);
698 return VideoRenderer_AddRef((IBaseFilter*)This);
701 static ULONG WINAPI Basicvideo_Release(IBasicVideo *iface) {
702 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
704 TRACE("(%p/%p)->()\n", This, iface);
706 return VideoRenderer_Release((IBaseFilter*)This);
709 /*** IDispatch methods ***/
710 static HRESULT WINAPI Basicvideo_GetTypeInfoCount(IBasicVideo *iface,
712 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
714 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, pctinfo);
719 static HRESULT WINAPI Basicvideo_GetTypeInfo(IBasicVideo *iface,
722 ITypeInfo**ppTInfo) {
723 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
725 TRACE("(%p/%p)->(%d, %ld, %p): stub !!!\n", This, iface, iTInfo, lcid, ppTInfo);
730 static HRESULT WINAPI Basicvideo_GetIDsOfNames(IBasicVideo *iface,
736 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
738 TRACE("(%p/%p)->(%s (%p), %p, %d, %ld, %p): stub !!!\n", This, iface, debugstr_guid(riid), riid, rgszNames, cNames, lcid, rgDispId);
743 static HRESULT WINAPI Basicvideo_Invoke(IBasicVideo *iface,
748 DISPPARAMS*pDispParams,
752 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
754 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);
759 /*** IBasicVideo methods ***/
760 static HRESULT WINAPI Basicvideo_get_AvgTimePerFrame(IBasicVideo *iface,
761 REFTIME *pAvgTimePerFrame) {
762 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
764 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, pAvgTimePerFrame);
769 static HRESULT WINAPI Basicvideo_get_BitRate(IBasicVideo *iface,
771 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
773 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, pBitRate);
778 static HRESULT WINAPI Basicvideo_get_BitErrorRate(IBasicVideo *iface,
779 long *pBitErrorRate) {
780 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
782 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, pBitErrorRate);
787 static HRESULT WINAPI Basicvideo_get_VideoWidth(IBasicVideo *iface,
789 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
791 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, pVideoWidth);
796 static HRESULT WINAPI Basicvideo_get_VideoHeight(IBasicVideo *iface,
797 long *pVideoHeight) {
798 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
800 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, pVideoHeight);
805 static HRESULT WINAPI Basicvideo_put_SourceLeft(IBasicVideo *iface,
807 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
809 TRACE("(%p/%p)->(%ld): stub !!!\n", This, iface, SourceLeft);
814 static HRESULT WINAPI Basicvideo_get_SourceLeft(IBasicVideo *iface,
816 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
818 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, pSourceLeft);
823 static HRESULT WINAPI Basicvideo_put_SourceWidth(IBasicVideo *iface,
825 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
827 TRACE("(%p/%p)->(%ld): stub !!!\n", This, iface, SourceWidth);
832 static HRESULT WINAPI Basicvideo_get_SourceWidth(IBasicVideo *iface,
833 long *pSourceWidth) {
834 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
836 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, pSourceWidth);
841 static HRESULT WINAPI Basicvideo_put_SourceTop(IBasicVideo *iface,
843 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
845 TRACE("(%p/%p)->(%ld): stub !!!\n", This, iface, SourceTop);
850 static HRESULT WINAPI Basicvideo_get_SourceTop(IBasicVideo *iface,
852 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
854 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, pSourceTop);
859 static HRESULT WINAPI Basicvideo_put_SourceHeight(IBasicVideo *iface,
861 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
863 TRACE("(%p/%p)->(%ld): stub !!!\n", This, iface, SourceHeight);
868 static HRESULT WINAPI Basicvideo_get_SourceHeight(IBasicVideo *iface,
869 long *pSourceHeight) {
870 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
872 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, pSourceHeight);
877 static HRESULT WINAPI Basicvideo_put_DestinationLeft(IBasicVideo *iface,
878 long DestinationLeft) {
879 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
881 TRACE("(%p/%p)->(%ld): stub !!!\n", This, iface, DestinationLeft);
886 static HRESULT WINAPI Basicvideo_get_DestinationLeft(IBasicVideo *iface,
887 long *pDestinationLeft) {
888 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
890 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, pDestinationLeft);
895 static HRESULT WINAPI Basicvideo_put_DestinationWidth(IBasicVideo *iface,
896 long DestinationWidth) {
897 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
899 TRACE("(%p/%p)->(%ld): stub !!!\n", This, iface, DestinationWidth);
904 static HRESULT WINAPI Basicvideo_get_DestinationWidth(IBasicVideo *iface,
905 long *pDestinationWidth) {
906 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
908 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, pDestinationWidth);
913 static HRESULT WINAPI Basicvideo_put_DestinationTop(IBasicVideo *iface,
914 long DestinationTop) {
915 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
917 TRACE("(%p/%p)->(%ld): stub !!!\n", This, iface, DestinationTop);
922 static HRESULT WINAPI Basicvideo_get_DestinationTop(IBasicVideo *iface,
923 long *pDestinationTop) {
924 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
926 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, pDestinationTop);
931 static HRESULT WINAPI Basicvideo_put_DestinationHeight(IBasicVideo *iface,
932 long DestinationHeight) {
933 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
935 TRACE("(%p/%p)->(%ld): stub !!!\n", This, iface, DestinationHeight);
940 static HRESULT WINAPI Basicvideo_get_DestinationHeight(IBasicVideo *iface,
941 long *pDestinationHeight) {
942 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
944 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, pDestinationHeight);
949 static HRESULT WINAPI Basicvideo_SetSourcePosition(IBasicVideo *iface,
954 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
956 TRACE("(%p/%p)->(%ld, %ld, %ld, %ld): stub !!!\n", This, iface, Left, Top, Width, Height);
961 static HRESULT WINAPI Basicvideo_GetSourcePosition(IBasicVideo *iface,
966 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
968 TRACE("(%p/%p)->(%p, %p, %p, %p): stub !!!\n", This, iface, pLeft, pTop, pWidth, pHeight);
973 static HRESULT WINAPI Basicvideo_SetDefaultSourcePosition(IBasicVideo *iface) {
974 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
976 TRACE("(%p/%p)->(): stub !!!\n", This, iface);
981 static HRESULT WINAPI Basicvideo_SetDestinationPosition(IBasicVideo *iface,
986 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
988 TRACE("(%p/%p)->(%ld, %ld, %ld, %ld): stub !!!\n", This, iface, Left, Top, Width, Height);
993 static HRESULT WINAPI Basicvideo_GetDestinationPosition(IBasicVideo *iface,
998 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
1000 TRACE("(%p/%p)->(%p, %p, %p, %p): stub !!!\n", This, iface, pLeft, pTop, pWidth, pHeight);
1005 static HRESULT WINAPI Basicvideo_SetDefaultDestinationPosition(IBasicVideo *iface) {
1006 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
1008 TRACE("(%p/%p)->(): stub !!!\n", This, iface);
1013 static HRESULT WINAPI Basicvideo_GetVideoSize(IBasicVideo *iface,
1016 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
1018 TRACE("(%p/%p)->(%p, %p): stub !!!\n", This, iface, pWidth, pHeight);
1023 static HRESULT WINAPI Basicvideo_GetVideoPaletteEntries(IBasicVideo *iface,
1028 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
1030 TRACE("(%p/%p)->(%ld, %ld, %p, %p): stub !!!\n", This, iface, StartIndex, Entries, pRetrieved, pPalette);
1035 static HRESULT WINAPI Basicvideo_GetCurrentImage(IBasicVideo *iface,
1038 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
1040 TRACE("(%p/%p)->(%p, %p): stub !!!\n", This, iface, pBufferSize, pDIBImage);
1045 static HRESULT WINAPI Basicvideo_IsUsingDefaultSource(IBasicVideo *iface) {
1046 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
1048 TRACE("(%p/%p)->(): stub !!!\n", This, iface);
1053 static HRESULT WINAPI Basicvideo_IsUsingDefaultDestination(IBasicVideo *iface) {
1054 ICOM_THIS_MULTI(VideoRendererImpl, IBasicVideo_vtbl, iface);
1056 TRACE("(%p/%p)->(): stub !!!\n", This, iface);
1062 static const IBasicVideoVtbl IBasicVideo_VTable =
1064 Basicvideo_QueryInterface,
1067 Basicvideo_GetTypeInfoCount,
1068 Basicvideo_GetTypeInfo,
1069 Basicvideo_GetIDsOfNames,
1071 Basicvideo_get_AvgTimePerFrame,
1072 Basicvideo_get_BitRate,
1073 Basicvideo_get_BitErrorRate,
1074 Basicvideo_get_VideoWidth,
1075 Basicvideo_get_VideoHeight,
1076 Basicvideo_put_SourceLeft,
1077 Basicvideo_get_SourceLeft,
1078 Basicvideo_put_SourceWidth,
1079 Basicvideo_get_SourceWidth,
1080 Basicvideo_put_SourceTop,
1081 Basicvideo_get_SourceTop,
1082 Basicvideo_put_SourceHeight,
1083 Basicvideo_get_SourceHeight,
1084 Basicvideo_put_DestinationLeft,
1085 Basicvideo_get_DestinationLeft,
1086 Basicvideo_put_DestinationWidth,
1087 Basicvideo_get_DestinationWidth,
1088 Basicvideo_put_DestinationTop,
1089 Basicvideo_get_DestinationTop,
1090 Basicvideo_put_DestinationHeight,
1091 Basicvideo_get_DestinationHeight,
1092 Basicvideo_SetSourcePosition,
1093 Basicvideo_GetSourcePosition,
1094 Basicvideo_SetDefaultSourcePosition,
1095 Basicvideo_SetDestinationPosition,
1096 Basicvideo_GetDestinationPosition,
1097 Basicvideo_SetDefaultDestinationPosition,
1098 Basicvideo_GetVideoSize,
1099 Basicvideo_GetVideoPaletteEntries,
1100 Basicvideo_GetCurrentImage,
1101 Basicvideo_IsUsingDefaultSource,
1102 Basicvideo_IsUsingDefaultDestination
1106 /*** IUnknown methods ***/
1107 static HRESULT WINAPI Videowindow_QueryInterface(IVideoWindow *iface,
1110 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1112 TRACE("(%p/%p)->(%s (%p), %p)\n", This, iface, debugstr_guid(riid), riid, ppvObj);
1114 return VideoRenderer_QueryInterface((IBaseFilter*)This, riid, ppvObj);
1117 static ULONG WINAPI Videowindow_AddRef(IVideoWindow *iface) {
1118 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1120 TRACE("(%p/%p)->()\n", This, iface);
1122 return VideoRenderer_AddRef((IBaseFilter*)This);
1125 static ULONG WINAPI Videowindow_Release(IVideoWindow *iface) {
1126 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1128 TRACE("(%p/%p)->()\n", This, iface);
1130 return VideoRenderer_Release((IBaseFilter*)This);
1133 /*** IDispatch methods ***/
1134 static HRESULT WINAPI Videowindow_GetTypeInfoCount(IVideoWindow *iface,
1136 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1138 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, pctinfo);
1143 static HRESULT WINAPI Videowindow_GetTypeInfo(IVideoWindow *iface,
1146 ITypeInfo**ppTInfo) {
1147 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1149 TRACE("(%p/%p)->(%d, %ld, %p): stub !!!\n", This, iface, iTInfo, lcid, ppTInfo);
1154 static HRESULT WINAPI Videowindow_GetIDsOfNames(IVideoWindow *iface,
1160 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1162 TRACE("(%p/%p)->(%s (%p), %p, %d, %ld, %p): stub !!!\n", This, iface, debugstr_guid(riid), riid, rgszNames, cNames, lcid, rgDispId);
1167 static HRESULT WINAPI Videowindow_Invoke(IVideoWindow *iface,
1168 DISPID dispIdMember,
1172 DISPPARAMS*pDispParams,
1174 EXCEPINFO*pExepInfo,
1176 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1178 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);
1183 /*** IVideoWindow methods ***/
1184 static HRESULT WINAPI Videowindow_put_Caption(IVideoWindow *iface,
1186 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1188 TRACE("(%p/%p)->(%s (%p)): stub !!!\n", This, iface, debugstr_w(strCaption), strCaption);
1193 static HRESULT WINAPI Videowindow_get_Caption(IVideoWindow *iface,
1195 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1197 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, strCaption);
1202 static HRESULT WINAPI Videowindow_put_WindowStyle(IVideoWindow *iface,
1204 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1206 TRACE("(%p/%p)->(%ld): stub !!!\n", This, iface, WindowStyle);
1211 static HRESULT WINAPI Videowindow_get_WindowStyle(IVideoWindow *iface,
1212 long *WindowStyle) {
1213 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1215 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, WindowStyle);
1220 static HRESULT WINAPI Videowindow_put_WindowStyleEx(IVideoWindow *iface,
1221 long WindowStyleEx) {
1222 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1224 TRACE("(%p/%p)->(%ld): stub !!!\n", This, iface, WindowStyleEx);
1229 static HRESULT WINAPI Videowindow_get_WindowStyleEx(IVideoWindow *iface,
1230 long *WindowStyleEx) {
1231 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1233 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, WindowStyleEx);
1238 static HRESULT WINAPI Videowindow_put_AutoShow(IVideoWindow *iface,
1240 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1242 TRACE("(%p/%p)->(%ld): stub !!!\n", This, iface, AutoShow);
1247 static HRESULT WINAPI Videowindow_get_AutoShow(IVideoWindow *iface,
1249 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1251 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, AutoShow);
1256 static HRESULT WINAPI Videowindow_put_WindowState(IVideoWindow *iface,
1258 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1260 TRACE("(%p/%p)->(%ld): stub !!!\n", This, iface, WindowState);
1265 static HRESULT WINAPI Videowindow_get_WindowState(IVideoWindow *iface,
1266 long *WindowState) {
1267 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1269 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, WindowState);
1274 static HRESULT WINAPI Videowindow_put_BackgroundPalette(IVideoWindow *iface,
1275 long BackgroundPalette) {
1276 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1278 TRACE("(%p/%p)->(%ld): stub !!!\n", This, iface, BackgroundPalette);
1283 static HRESULT WINAPI Videowindow_get_BackgroundPalette(IVideoWindow *iface,
1284 long *pBackgroundPalette) {
1285 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1287 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, pBackgroundPalette);
1292 static HRESULT WINAPI Videowindow_put_Visible(IVideoWindow *iface,
1294 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1296 TRACE("(%p/%p)->(%ld): stub !!!\n", This, iface, Visible);
1301 static HRESULT WINAPI Videowindow_get_Visible(IVideoWindow *iface,
1303 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1305 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, pVisible);
1310 static HRESULT WINAPI Videowindow_put_Left(IVideoWindow *iface,
1312 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1314 TRACE("(%p/%p)->(%ld): stub !!!\n", This, iface, Left);
1319 static HRESULT WINAPI Videowindow_get_Left(IVideoWindow *iface,
1321 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1323 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, pLeft);
1328 static HRESULT WINAPI Videowindow_put_Width(IVideoWindow *iface,
1330 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1332 TRACE("(%p/%p)->(%ld): stub !!!\n", This, iface, Width);
1337 static HRESULT WINAPI Videowindow_get_Width(IVideoWindow *iface,
1339 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1341 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, pWidth);
1346 static HRESULT WINAPI Videowindow_put_Top(IVideoWindow *iface,
1348 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1350 TRACE("(%p/%p)->(%ld): stub !!!\n", This, iface, Top);
1355 static HRESULT WINAPI Videowindow_get_Top(IVideoWindow *iface,
1357 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1359 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, pTop);
1364 static HRESULT WINAPI Videowindow_put_Height(IVideoWindow *iface,
1366 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1368 TRACE("(%p/%p)->(%ld): stub !!!\n", This, iface, Height);
1373 static HRESULT WINAPI Videowindow_get_Height(IVideoWindow *iface,
1375 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1377 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, pHeight);
1382 static HRESULT WINAPI Videowindow_put_Owner(IVideoWindow *iface,
1384 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1386 TRACE("(%p/%p)->(%08lx): stub !!!\n", This, iface, (DWORD) Owner);
1391 static HRESULT WINAPI Videowindow_get_Owner(IVideoWindow *iface,
1393 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1395 TRACE("(%p/%p)->(%08lx): stub !!!\n", This, iface, (DWORD) Owner);
1400 static HRESULT WINAPI Videowindow_put_MessageDrain(IVideoWindow *iface,
1402 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1404 TRACE("(%p/%p)->(%08lx): stub !!!\n", This, iface, (DWORD) Drain);
1409 static HRESULT WINAPI Videowindow_get_MessageDrain(IVideoWindow *iface,
1411 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1413 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, Drain);
1418 static HRESULT WINAPI Videowindow_get_BorderColor(IVideoWindow *iface,
1420 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1422 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, Color);
1427 static HRESULT WINAPI Videowindow_put_BorderColor(IVideoWindow *iface,
1429 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1431 TRACE("(%p/%p)->(%ld): stub !!!\n", This, iface, Color);
1436 static HRESULT WINAPI Videowindow_get_FullScreenMode(IVideoWindow *iface,
1437 long *FullScreenMode) {
1438 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1440 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, FullScreenMode);
1445 static HRESULT WINAPI Videowindow_put_FullScreenMode(IVideoWindow *iface,
1446 long FullScreenMode) {
1447 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1449 TRACE("(%p/%p)->(%ld): stub !!!\n", This, iface, FullScreenMode);
1454 static HRESULT WINAPI Videowindow_SetWindowForeground(IVideoWindow *iface,
1456 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1458 TRACE("(%p/%p)->(%ld): stub !!!\n", This, iface, Focus);
1463 static HRESULT WINAPI Videowindow_NotifyOwnerMessage(IVideoWindow *iface,
1468 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1470 TRACE("(%p/%p)->(%08lx, %ld, %08lx, %08lx): stub !!!\n", This, iface, (DWORD) hwnd, uMsg, wParam, lParam);
1475 static HRESULT WINAPI Videowindow_SetWindowPosition(IVideoWindow *iface,
1480 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1482 TRACE("(%p/%p)->(%ld, %ld, %ld, %ld): stub !!!\n", This, iface, Left, Top, Width, Height);
1487 static HRESULT WINAPI Videowindow_GetWindowPosition(IVideoWindow *iface,
1492 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1494 TRACE("(%p/%p)->(%p, %p, %p, %p): stub !!!\n", This, iface, pLeft, pTop, pWidth, pHeight);
1499 static HRESULT WINAPI Videowindow_GetMinIdealImageSize(IVideoWindow *iface,
1502 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1504 TRACE("(%p/%p)->(%p, %p): stub !!!\n", This, iface, pWidth, pHeight);
1509 static HRESULT WINAPI Videowindow_GetMaxIdealImageSize(IVideoWindow *iface,
1512 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1514 TRACE("(%p/%p)->(%p, %p): stub !!!\n", This, iface, pWidth, pHeight);
1519 static HRESULT WINAPI Videowindow_GetRestorePosition(IVideoWindow *iface,
1524 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1526 TRACE("(%p/%p)->(%p, %p, %p, %p): stub !!!\n", This, iface, pLeft, pTop, pWidth, pHeight);
1531 static HRESULT WINAPI Videowindow_HideCursor(IVideoWindow *iface,
1533 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1535 TRACE("(%p/%p)->(%ld): stub !!!\n", This, iface, HideCursor);
1540 static HRESULT WINAPI Videowindow_IsCursorHidden(IVideoWindow *iface,
1541 long *CursorHidden) {
1542 ICOM_THIS_MULTI(VideoRendererImpl, IVideoWindow_vtbl, iface);
1544 TRACE("(%p/%p)->(%p): stub !!!\n", This, iface, CursorHidden);
1549 static const IVideoWindowVtbl IVideoWindow_VTable =
1551 Videowindow_QueryInterface,
1553 Videowindow_Release,
1554 Videowindow_GetTypeInfoCount,
1555 Videowindow_GetTypeInfo,
1556 Videowindow_GetIDsOfNames,
1558 Videowindow_put_Caption,
1559 Videowindow_get_Caption,
1560 Videowindow_put_WindowStyle,
1561 Videowindow_get_WindowStyle,
1562 Videowindow_put_WindowStyleEx,
1563 Videowindow_get_WindowStyleEx,
1564 Videowindow_put_AutoShow,
1565 Videowindow_get_AutoShow,
1566 Videowindow_put_WindowState,
1567 Videowindow_get_WindowState,
1568 Videowindow_put_BackgroundPalette,
1569 Videowindow_get_BackgroundPalette,
1570 Videowindow_put_Visible,
1571 Videowindow_get_Visible,
1572 Videowindow_put_Left,
1573 Videowindow_get_Left,
1574 Videowindow_put_Width,
1575 Videowindow_get_Width,
1576 Videowindow_put_Top,
1577 Videowindow_get_Top,
1578 Videowindow_put_Height,
1579 Videowindow_get_Height,
1580 Videowindow_put_Owner,
1581 Videowindow_get_Owner,
1582 Videowindow_put_MessageDrain,
1583 Videowindow_get_MessageDrain,
1584 Videowindow_get_BorderColor,
1585 Videowindow_put_BorderColor,
1586 Videowindow_get_FullScreenMode,
1587 Videowindow_put_FullScreenMode,
1588 Videowindow_SetWindowForeground,
1589 Videowindow_NotifyOwnerMessage,
1590 Videowindow_SetWindowPosition,
1591 Videowindow_GetWindowPosition,
1592 Videowindow_GetMinIdealImageSize,
1593 Videowindow_GetMaxIdealImageSize,
1594 Videowindow_GetRestorePosition,
1595 Videowindow_HideCursor,
1596 Videowindow_IsCursorHidden