Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
f020fe05
Commit
f020fe05
authored
May 27, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
May 27, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
>
parent
dc93d5f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
27 deletions
+32
-27
vmr9.c
dlls/quartz/vmr9.c
+32
-27
No files found.
dlls/quartz/vmr9.c
View file @
f020fe05
...
...
@@ -1699,17 +1699,18 @@ static HRESULT WINAPI VMR9WindowlessControl_SetVideoPosition(IVMRWindowlessContr
return
S_OK
;
}
static
HRESULT
WINAPI
VMR9WindowlessControl_GetVideoPosition
(
IVMRWindowlessControl9
*
iface
,
RECT
*
s
ource
,
RECT
*
de
st
)
static
HRESULT
WINAPI
VMR9WindowlessControl_GetVideoPosition
(
IVMRWindowlessControl9
*
iface
,
RECT
*
s
rc
,
RECT
*
d
st
)
{
struct
quartz_vmr
*
This
=
impl_from_IVMRWindowlessControl9
(
iface
);
struct
quartz_vmr
*
filter
=
impl_from_IVMRWindowlessControl9
(
iface
);
if
(
source
)
*
source
=
This
->
window
.
src
;
TRACE
(
"filter %p, src %p, dst %p.
\n
"
,
filter
,
src
,
dst
);
if
(
dest
)
*
dest
=
This
->
window
.
dst
;
if
(
src
)
*
src
=
filter
->
window
.
src
;
if
(
dst
)
*
dst
=
filter
->
window
.
dst
;
FIXME
(
"(%p/%p)->(%p/%p) stub
\n
"
,
iface
,
This
,
source
,
dest
);
return
S_OK
;
}
...
...
@@ -1955,42 +1956,46 @@ static ULONG WINAPI VMR9SurfaceAllocatorNotify_Release(IVMRSurfaceAllocatorNotif
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!!! */
FIXME
(
"(%p/%p)->(...) stub
\n
"
,
iface
,
This
);
This
->
cookie
=
id
;
TRACE
(
"filter %p, cookie %#Ix, allocator %p.
\n
"
,
filter
,
cookie
,
allocator
);
if
(
This
->
presenter
)
filter
->
cookie
=
cookie
;
if
(
filter
->
presenter
)
return
VFW_E_WRONG_STATE
;
if
(
FAILED
(
IVMRSurfaceAllocator9_QueryInterface
(
alloc
,
&
IID_IVMRImagePresenter9
,
(
void
**
)
&
This
->
presenter
)))
if
(
FAILED
(
IVMRSurfaceAllocator9_QueryInterface
(
alloc
ator
,
&
IID_IVMRImagePresenter9
,
(
void
**
)
&
filter
->
presenter
)))
return
E_NOINTERFACE
;
if
(
SUCCEEDED
(
IVMRSurfaceAllocator9_QueryInterface
(
alloc
,
&
IID_IVMRSurfaceAllocatorEx9
,
(
void
**
)
&
This
->
allocator
)))
This
->
allocator_is_ex
=
1
;
if
(
SUCCEEDED
(
IVMRSurfaceAllocator9_QueryInterface
(
allocator
,
&
IID_IVMRSurfaceAllocatorEx9
,
(
void
**
)
&
filter
->
allocator
)))
filter
->
allocator_is_ex
=
1
;
else
{
This
->
allocator
=
(
IVMRSurfaceAllocatorEx9
*
)
alloc
;
IVMRSurfaceAllocator9_AddRef
(
alloc
);
This
->
allocator_is_ex
=
0
;
filter
->
allocator
=
(
IVMRSurfaceAllocatorEx9
*
)
allocator
;
IVMRSurfaceAllocator9_AddRef
(
alloc
ator
);
filter
->
allocator_is_ex
=
0
;
}
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
);
if
(
This
->
allocator_d3d9_dev
)
IDirect3DDevice9_Release
(
This
->
allocator_d3d9_dev
);
This
->
allocator_d3d9_dev
=
device
;
IDirect3DDevice9_AddRef
(
This
->
allocator_d3d9_dev
);
This
->
allocator_mon
=
monitor
;
TRACE
(
"filter %p, device %p, monitor %p.
\n
"
,
filter
,
device
,
monitor
);
if
(
filter
->
allocator_d3d9_dev
)
IDirect3DDevice9_Release
(
filter
->
allocator_d3d9_dev
);
filter
->
allocator_d3d9_dev
=
device
;
IDirect3DDevice9_AddRef
(
device
);
filter
->
allocator_mon
=
monitor
;
return
S_OK
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment