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
cf44bec5
Commit
cf44bec5
authored
Dec 07, 2023
by
Zebediah Figura
Committed by
Alexandre Julliard
Dec 07, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Stub CLSID_AllocPresenter.
parent
bc708371
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
132 additions
and
0 deletions
+132
-0
Makefile.in
dlls/quartz/Makefile.in
+1
-0
main.c
dlls/quartz/main.c
+1
-0
quartz_private.h
dlls/quartz/quartz_private.h
+1
-0
quartz_strmif.idl
dlls/quartz/quartz_strmif.idl
+6
-0
vmr7_presenter.c
dlls/quartz/vmr7_presenter.c
+123
-0
No files found.
dlls/quartz/Makefile.in
View file @
cf44bec5
...
...
@@ -19,6 +19,7 @@ SOURCES = \
systemclock.c
\
videorenderer.c
\
vmr7.c
\
vmr7_presenter.c
\
vmr9.c
\
window.c
...
...
dlls/quartz/main.c
View file @
cf44bec5
...
...
@@ -59,6 +59,7 @@ struct object_creation_info
static
const
struct
object_creation_info
object_creation
[]
=
{
{
&
CLSID_ACMWrapper
,
acm_wrapper_create
},
{
&
CLSID_AllocPresenter
,
vmr7_presenter_create
},
{
&
CLSID_AsyncReader
,
async_reader_create
},
{
&
CLSID_AudioRender
,
dsound_render_create
},
{
&
CLSID_AVIDec
,
avi_dec_create
},
...
...
dlls/quartz/quartz_private.h
View file @
cf44bec5
...
...
@@ -81,6 +81,7 @@ HRESULT system_clock_create(IUnknown *outer, IUnknown **out);
HRESULT
seeking_passthrough_create
(
IUnknown
*
outer
,
IUnknown
**
out
);
HRESULT
video_renderer_create
(
IUnknown
*
outer
,
IUnknown
**
out
);
HRESULT
video_renderer_default_create
(
IUnknown
*
outer
,
IUnknown
**
out
);
HRESULT
vmr7_presenter_create
(
IUnknown
*
outer
,
IUnknown
**
out
);
HRESULT
vmr7_create
(
IUnknown
*
outer
,
IUnknown
**
out
);
HRESULT
vmr9_create
(
IUnknown
*
outer
,
IUnknown
**
out
);
...
...
dlls/quartz/quartz_strmif.idl
View file @
cf44bec5
...
...
@@ -139,3 +139,9 @@ coclass VideoMixingRenderer { interface IBaseFilter; }
uuid
(
51b4
abf3
-
748
f
-
4
e3b
-
a276
-
c828330e926a
)
]
coclass
VideoMixingRenderer9
{
interface
IBaseFilter
; }
[
threading
(
both
),
uuid
(
99
d54f63
-
1
a69
-
41
ae
-
aa4d
-
c976eb3f0713
)
]
coclass
AllocPresenter
{}
dlls/quartz/vmr7_presenter.c
0 → 100644
View file @
cf44bec5
/*
* Default allocator-presenter for the VMR7
*
* Copyright 2023 Zebediah Figura for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "quartz_private.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
quartz
);
struct
vmr7_presenter
{
IVMRImagePresenter
IVMRImagePresenter_iface
;
LONG
refcount
;
};
static
struct
vmr7_presenter
*
impl_from_IVMRImagePresenter
(
IVMRImagePresenter
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
vmr7_presenter
,
IVMRImagePresenter_iface
);
}
static
HRESULT
WINAPI
image_presenter_QueryInterface
(
IVMRImagePresenter
*
iface
,
REFIID
iid
,
void
**
out
)
{
struct
vmr7_presenter
*
presenter
=
impl_from_IVMRImagePresenter
(
iface
);
TRACE
(
"presenter %p, iid %s, out %p.
\n
"
,
presenter
,
debugstr_guid
(
iid
),
out
);
if
(
IsEqualGUID
(
iid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
iid
,
&
IID_IVMRImagePresenter
))
*
out
=
iface
;
else
{
*
out
=
NULL
;
WARN
(
"%s not implemented, returning E_NOINTERFACE.
\n
"
,
debugstr_guid
(
iid
));
return
E_NOINTERFACE
;
}
IUnknown_AddRef
((
IUnknown
*
)
*
out
);
return
S_OK
;
}
static
ULONG
WINAPI
image_presenter_AddRef
(
IVMRImagePresenter
*
iface
)
{
struct
vmr7_presenter
*
presenter
=
impl_from_IVMRImagePresenter
(
iface
);
ULONG
refcount
=
InterlockedIncrement
(
&
presenter
->
refcount
);
TRACE
(
"%p increasing refcount to %lu.
\n
"
,
presenter
,
refcount
);
return
refcount
;
}
static
ULONG
WINAPI
image_presenter_Release
(
IVMRImagePresenter
*
iface
)
{
struct
vmr7_presenter
*
presenter
=
impl_from_IVMRImagePresenter
(
iface
);
ULONG
refcount
=
InterlockedDecrement
(
&
presenter
->
refcount
);
TRACE
(
"%p decreasing refcount to %lu.
\n
"
,
presenter
,
refcount
);
if
(
!
refcount
)
free
(
presenter
);
return
refcount
;
}
static
HRESULT
WINAPI
image_presenter_StartPresenting
(
IVMRImagePresenter
*
iface
,
DWORD_PTR
cookie
)
{
FIXME
(
"iface %p, cookie %#Ix, stub!
\n
"
,
iface
,
cookie
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
image_presenter_StopPresenting
(
IVMRImagePresenter
*
iface
,
DWORD_PTR
cookie
)
{
FIXME
(
"iface %p, cookie %#Ix, stub!
\n
"
,
iface
,
cookie
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
image_presenter_PresentImage
(
IVMRImagePresenter
*
iface
,
DWORD_PTR
cookie
,
VMRPRESENTATIONINFO
*
info
)
{
FIXME
(
"iface %p, cookie %#Ix, info %p, stub!
\n
"
,
iface
,
cookie
,
info
);
return
E_NOTIMPL
;
}
static
const
IVMRImagePresenterVtbl
image_presenter_vtbl
=
{
image_presenter_QueryInterface
,
image_presenter_AddRef
,
image_presenter_Release
,
image_presenter_StartPresenting
,
image_presenter_StopPresenting
,
image_presenter_PresentImage
,
};
HRESULT
vmr7_presenter_create
(
IUnknown
*
outer
,
IUnknown
**
out
)
{
struct
vmr7_presenter
*
object
;
TRACE
(
"outer %p, out %p.
\n
"
,
outer
,
out
);
if
(
outer
)
FIXME
(
"Ignoring outer %p.
\n
"
,
outer
);
if
(
!
(
object
=
calloc
(
1
,
sizeof
(
*
object
))))
return
E_OUTOFMEMORY
;
object
->
IVMRImagePresenter_iface
.
lpVtbl
=
&
image_presenter_vtbl
;
object
->
refcount
=
1
;
TRACE
(
"Created VMR7 default presenter %p.
\n
"
,
object
);
*
out
=
(
IUnknown
*
)
&
object
->
IVMRSurfaceAllocator_iface
;
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