Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
0a4ee681
Commit
0a4ee681
authored
Nov 05, 2010
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Nov 08, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: Add support for IQualityControl.
parent
120dd66e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
95 additions
and
0 deletions
+95
-0
Makefile.in
dlls/strmbase/Makefile.in
+1
-0
qualitycontrol.c
dlls/strmbase/qualitycontrol.c
+79
-0
strmbase.h
include/wine/strmbase.h
+15
-0
No files found.
dlls/strmbase/Makefile.in
View file @
0a4ee681
...
...
@@ -6,6 +6,7 @@ C_SRCS = \
filter.c
\
mediatype.c
\
pin.c
\
qualitycontrol.c
\
seeking.c
\
transform.c
...
...
dlls/strmbase/qualitycontrol.c
0 → 100644
View file @
0a4ee681
/*
* Quality Control Interfaces
*
* Copyright 2010 Maarten Lankhorst 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
*/
#define COBJMACROS
#include "dshow.h"
#include "wine/strmbase.h"
#include "uuids.h"
#include "wine/debug.h"
#include <assert.h>
WINE_DEFAULT_DEBUG_CHANNEL
(
strmbase
);
void
QualityControlImpl_init
(
QualityControlImpl
*
This
,
IPin
*
input
,
IBaseFilter
*
self
)
{
This
->
input
=
input
;
This
->
self
=
self
;
This
->
tonotify
=
NULL
;
}
HRESULT
WINAPI
QualityControlImpl_QueryInterface
(
IQualityControl
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
QualityControlImpl
*
This
=
(
QualityControlImpl
*
)
iface
;
return
IUnknown_QueryInterface
(
This
->
self
,
riid
,
ppv
);
}
ULONG
WINAPI
QualityControlImpl_AddRef
(
IQualityControl
*
iface
)
{
QualityControlImpl
*
This
=
(
QualityControlImpl
*
)
iface
;
return
IUnknown_AddRef
(
This
->
self
);
}
ULONG
WINAPI
QualityControlImpl_Release
(
IQualityControl
*
iface
)
{
QualityControlImpl
*
This
=
(
QualityControlImpl
*
)
iface
;
return
IUnknown_Release
(
This
->
self
);
}
HRESULT
WINAPI
QualityControlImpl_Notify
(
IQualityControl
*
iface
,
IBaseFilter
*
sender
,
Quality
qm
)
{
HRESULT
hr
=
S_FALSE
;
QualityControlImpl
*
This
=
(
QualityControlImpl
*
)
iface
;
if
(
This
->
tonotify
)
return
IQualityControl_Notify
(
This
->
tonotify
,
This
->
self
,
qm
);
if
(
This
->
input
)
{
IPin
*
to
=
NULL
;
IPin_ConnectedTo
(
This
->
input
,
&
to
);
if
(
to
)
{
IQualityControl
*
qc
=
NULL
;
IUnknown_QueryInterface
(
to
,
&
IID_IQualityControl
,
(
void
**
)
&
qc
);
if
(
qc
)
{
hr
=
IQualityControl_Notify
(
qc
,
This
->
self
,
qm
);
IQualityControl_Release
(
qc
);
}
IPin_Release
(
to
);
}
}
return
hr
;
}
HRESULT
WINAPI
QualityControlImpl_SetSink
(
IQualityControl
*
iface
,
IQualityControl
*
tonotify
)
{
QualityControlImpl
*
This
=
(
QualityControlImpl
*
)
iface
;
This
->
tonotify
=
tonotify
;
return
S_OK
;
}
include/wine/strmbase.h
View file @
0a4ee681
...
...
@@ -194,6 +194,21 @@ HRESULT WINAPI EnumMediaTypes_Construct(BasePin *iface, BasePin_GetMediaType enu
HRESULT
WINAPI
EnumPins_Construct
(
BaseFilter
*
base
,
BaseFilter_GetPin
receive_pin
,
BaseFilter_GetPinCount
receive_pincount
,
BaseFilter_GetPinVersion
receive_version
,
IEnumPins
**
ppEnum
);
/* Quality Control */
typedef
struct
QualityControlImpl
{
const
IQualityControlVtbl
*
lpVtbl
;
IPin
*
input
;
IBaseFilter
*
self
;
IQualityControl
*
tonotify
;
}
QualityControlImpl
;
void
QualityControlImpl_init
(
QualityControlImpl
*
This
,
IPin
*
input
,
IBaseFilter
*
self
);
HRESULT
WINAPI
QualityControlImpl_QueryInterface
(
IQualityControl
*
iface
,
REFIID
riid
,
void
**
ppv
);
ULONG
WINAPI
QualityControlImpl_AddRef
(
IQualityControl
*
iface
);
ULONG
WINAPI
QualityControlImpl_Release
(
IQualityControl
*
iface
);
HRESULT
WINAPI
QualityControlImpl_Notify
(
IQualityControl
*
iface
,
IBaseFilter
*
sender
,
Quality
qm
);
HRESULT
WINAPI
QualityControlImpl_SetSink
(
IQualityControl
*
iface
,
IQualityControl
*
tonotify
);
/* Transform Filter */
typedef
struct
TransformFilter
{
...
...
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