quartz/vmr9: Use TRACE for some implemented methods.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2020-05-27 11:47:33 -05:00 committed by Alexandre Julliard
parent dc93d5f856
commit f020fe051b
1 changed files with 32 additions and 27 deletions

View File

@ -1699,17 +1699,18 @@ static HRESULT WINAPI VMR9WindowlessControl_SetVideoPosition(IVMRWindowlessContr
return S_OK; return S_OK;
} }
static HRESULT WINAPI VMR9WindowlessControl_GetVideoPosition(IVMRWindowlessControl9 *iface, RECT *source, RECT *dest) static HRESULT WINAPI VMR9WindowlessControl_GetVideoPosition(IVMRWindowlessControl9 *iface, RECT *src, RECT *dst)
{ {
struct quartz_vmr *This = impl_from_IVMRWindowlessControl9(iface); struct quartz_vmr *filter = impl_from_IVMRWindowlessControl9(iface);
if (source) TRACE("filter %p, src %p, dst %p.\n", filter, src, dst);
*source = This->window.src;
if (dest) if (src)
*dest = This->window.dst; *src = filter->window.src;
if (dst)
*dst = filter->window.dst;
FIXME("(%p/%p)->(%p/%p) stub\n", iface, This, source, dest);
return S_OK; return S_OK;
} }
@ -1955,42 +1956,46 @@ static ULONG WINAPI VMR9SurfaceAllocatorNotify_Release(IVMRSurfaceAllocatorNotif
return refcount; return refcount;
} }
static HRESULT WINAPI VMR9SurfaceAllocatorNotify_AdviseSurfaceAllocator(IVMRSurfaceAllocatorNotify9 *iface, DWORD_PTR id, IVMRSurfaceAllocator9 *alloc) static HRESULT WINAPI VMR9SurfaceAllocatorNotify_AdviseSurfaceAllocator(
IVMRSurfaceAllocatorNotify9 *iface, DWORD_PTR cookie, IVMRSurfaceAllocator9 *allocator)
{ {
struct quartz_vmr *This = impl_from_IVMRSurfaceAllocatorNotify9(iface); struct quartz_vmr *filter = impl_from_IVMRSurfaceAllocatorNotify9(iface);
/* FIXME: This code is not tested!!! */ TRACE("filter %p, cookie %#Ix, allocator %p.\n", filter, cookie, allocator);
FIXME("(%p/%p)->(...) stub\n", iface, This);
This->cookie = id;
if (This->presenter) filter->cookie = cookie;
if (filter->presenter)
return VFW_E_WRONG_STATE; return VFW_E_WRONG_STATE;
if (FAILED(IVMRSurfaceAllocator9_QueryInterface(alloc, &IID_IVMRImagePresenter9, (void **)&This->presenter))) if (FAILED(IVMRSurfaceAllocator9_QueryInterface(allocator, &IID_IVMRImagePresenter9, (void **)&filter->presenter)))
return E_NOINTERFACE; return E_NOINTERFACE;
if (SUCCEEDED(IVMRSurfaceAllocator9_QueryInterface(alloc, &IID_IVMRSurfaceAllocatorEx9, (void **)&This->allocator))) if (SUCCEEDED(IVMRSurfaceAllocator9_QueryInterface(allocator,
This->allocator_is_ex = 1; &IID_IVMRSurfaceAllocatorEx9, (void **)&filter->allocator)))
filter->allocator_is_ex = 1;
else else
{ {
This->allocator = (IVMRSurfaceAllocatorEx9 *)alloc; filter->allocator = (IVMRSurfaceAllocatorEx9 *)allocator;
IVMRSurfaceAllocator9_AddRef(alloc); IVMRSurfaceAllocator9_AddRef(allocator);
This->allocator_is_ex = 0; filter->allocator_is_ex = 0;
} }
return S_OK; return S_OK;
} }
static HRESULT WINAPI VMR9SurfaceAllocatorNotify_SetD3DDevice(IVMRSurfaceAllocatorNotify9 *iface, IDirect3DDevice9 *device, HMONITOR monitor) static HRESULT WINAPI VMR9SurfaceAllocatorNotify_SetD3DDevice(IVMRSurfaceAllocatorNotify9 *iface,
IDirect3DDevice9 *device, HMONITOR monitor)
{ {
struct quartz_vmr *This = impl_from_IVMRSurfaceAllocatorNotify9(iface); struct quartz_vmr *filter = impl_from_IVMRSurfaceAllocatorNotify9(iface);
FIXME("(%p/%p)->(...) semi-stub\n", iface, This); TRACE("filter %p, device %p, monitor %p.\n", filter, device, monitor);
if (This->allocator_d3d9_dev)
IDirect3DDevice9_Release(This->allocator_d3d9_dev); if (filter->allocator_d3d9_dev)
This->allocator_d3d9_dev = device; IDirect3DDevice9_Release(filter->allocator_d3d9_dev);
IDirect3DDevice9_AddRef(This->allocator_d3d9_dev); filter->allocator_d3d9_dev = device;
This->allocator_mon = monitor; IDirect3DDevice9_AddRef(device);
filter->allocator_mon = monitor;
return S_OK; return S_OK;
} }