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
e1812906
Commit
e1812906
authored
Apr 01, 2008
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Apr 02, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Implement seeking stubs for transform filters.
parent
9faf7e35
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
97 additions
and
6 deletions
+97
-6
acmwrapper.c
dlls/quartz/acmwrapper.c
+1
-1
avidec.c
dlls/quartz/avidec.c
+1
-1
control_private.h
dlls/quartz/control_private.h
+5
-0
transform.c
dlls/quartz/transform.c
+86
-3
transform.h
dlls/quartz/transform.h
+4
-1
No files found.
dlls/quartz/acmwrapper.c
View file @
e1812906
...
...
@@ -261,7 +261,7 @@ HRESULT ACMWrapper_create(IUnknown * pUnkOuter, LPVOID * ppv)
This
->
reinit_codec
=
TRUE
;
hr
=
TransformFilter_Create
(
&
(
This
->
tf
),
&
CLSID_ACMWrapper
,
&
ACMWrapper_FuncsTable
);
hr
=
TransformFilter_Create
(
&
(
This
->
tf
),
&
CLSID_ACMWrapper
,
&
ACMWrapper_FuncsTable
,
NULL
,
NULL
,
NULL
);
if
(
FAILED
(
hr
))
return
hr
;
...
...
dlls/quartz/avidec.c
View file @
e1812906
...
...
@@ -291,7 +291,7 @@ HRESULT AVIDec_create(IUnknown * pUnkOuter, LPVOID * ppv)
This
->
pBihIn
=
NULL
;
This
->
pBihOut
=
NULL
;
hr
=
TransformFilter_Create
(
&
(
This
->
tf
),
&
CLSID_AVIDec
,
&
AVIDec_FuncsTable
);
hr
=
TransformFilter_Create
(
&
(
This
->
tf
),
&
CLSID_AVIDec
,
&
AVIDec_FuncsTable
,
NULL
,
NULL
,
NULL
);
if
(
FAILED
(
hr
))
return
hr
;
...
...
dlls/quartz/control_private.h
View file @
e1812906
...
...
@@ -18,6 +18,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef QUARTZ_CONTROL_H
#define QUARTZ_CONTROL_H
typedef
HRESULT
(
*
CHANGEPROC
)(
IBaseFilter
*
pUserData
);
typedef
struct
MediaSeekingImpl
...
...
@@ -55,3 +58,5 @@ HRESULT WINAPI MediaSeekingImpl_GetAvailable(IMediaSeeking * iface, LONGLONG * p
HRESULT
WINAPI
MediaSeekingImpl_SetRate
(
IMediaSeeking
*
iface
,
double
dRate
);
HRESULT
WINAPI
MediaSeekingImpl_GetRate
(
IMediaSeeking
*
iface
,
double
*
dRate
);
HRESULT
WINAPI
MediaSeekingImpl_GetPreroll
(
IMediaSeeking
*
iface
,
LONGLONG
*
pPreroll
);
#endif
/*QUARTZ_CONTROL_H*/
dlls/quartz/transform.c
View file @
e1812906
...
...
@@ -143,7 +143,76 @@ static HRESULT TransformFilter_OutputPin_Construct(const PIN_INFO * pPinInfo, co
return
E_FAIL
;
}
HRESULT
TransformFilter_Create
(
TransformFilterImpl
*
pTransformFilter
,
const
CLSID
*
pClsid
,
const
TransformFuncsTable
*
pFuncsTable
)
static
inline
TransformFilterImpl
*
impl_from_IMediaSeeking
(
IMediaSeeking
*
iface
)
{
return
(
TransformFilterImpl
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
TransformFilterImpl
,
mediaSeeking
.
lpVtbl
));
}
static
HRESULT
WINAPI
TransformFilter_Seeking_QueryInterface
(
IMediaSeeking
*
iface
,
REFIID
riid
,
LPVOID
*
ppv
)
{
TransformFilterImpl
*
This
=
impl_from_IMediaSeeking
(
iface
);
return
IUnknown_QueryInterface
((
IUnknown
*
)
This
,
riid
,
ppv
);
}
static
ULONG
WINAPI
TransformFilter_Seeking_AddRef
(
IMediaSeeking
*
iface
)
{
TransformFilterImpl
*
This
=
impl_from_IMediaSeeking
(
iface
);
return
IUnknown_AddRef
((
IUnknown
*
)
This
);
}
static
ULONG
WINAPI
TransformFilter_Seeking_Release
(
IMediaSeeking
*
iface
)
{
TransformFilterImpl
*
This
=
impl_from_IMediaSeeking
(
iface
);
return
IUnknown_Release
((
IUnknown
*
)
This
);
}
static
const
IMediaSeekingVtbl
TransformFilter_Seeking_Vtbl
=
{
TransformFilter_Seeking_QueryInterface
,
TransformFilter_Seeking_AddRef
,
TransformFilter_Seeking_Release
,
MediaSeekingImpl_GetCapabilities
,
MediaSeekingImpl_CheckCapabilities
,
MediaSeekingImpl_IsFormatSupported
,
MediaSeekingImpl_QueryPreferredFormat
,
MediaSeekingImpl_GetTimeFormat
,
MediaSeekingImpl_IsUsingTimeFormat
,
MediaSeekingImpl_SetTimeFormat
,
MediaSeekingImpl_GetDuration
,
MediaSeekingImpl_GetStopPosition
,
MediaSeekingImpl_GetCurrentPosition
,
MediaSeekingImpl_ConvertTimeFormat
,
MediaSeekingImpl_SetPositions
,
MediaSeekingImpl_GetPositions
,
MediaSeekingImpl_GetAvailable
,
MediaSeekingImpl_SetRate
,
MediaSeekingImpl_GetRate
,
MediaSeekingImpl_GetPreroll
};
static
HRESULT
TransformFilter_ChangeCurrent
(
IBaseFilter
*
iface
)
{
FIXME
(
"(%p) filter hasn't implemented current position change!
\n
"
,
iface
);
return
S_OK
;
}
static
HRESULT
TransformFilter_ChangeStop
(
IBaseFilter
*
iface
)
{
FIXME
(
"(%p) filter hasn't implemented stop position change!
\n
"
,
iface
);
return
S_OK
;
}
static
HRESULT
TransformFilter_ChangeRate
(
IBaseFilter
*
iface
)
{
FIXME
(
"(%p) filter hasn't implemented rate change!
\n
"
,
iface
);
return
S_OK
;
}
HRESULT
TransformFilter_Create
(
TransformFilterImpl
*
pTransformFilter
,
const
CLSID
*
pClsid
,
const
TransformFuncsTable
*
pFuncsTable
,
CHANGEPROC
stop
,
CHANGEPROC
current
,
CHANGEPROC
rate
)
{
HRESULT
hr
;
PIN_INFO
piInput
;
...
...
@@ -184,8 +253,20 @@ HRESULT TransformFilter_Create(TransformFilterImpl* pTransformFilter, const CLSI
hr
=
TransformFilter_OutputPin_Construct
(
&
piOutput
,
&
props
,
pTransformFilter
,
TransformFilter_Output_QueryAccept
,
&
pTransformFilter
->
csFilter
,
&
pTransformFilter
->
ppPins
[
1
]);
if
(
FAILED
(
hr
))
ERR
(
"Cannot create output pin (%x)
\n
"
,
hr
);
if
(
FAILED
(
hr
))
ERR
(
"Cannot create output pin (%x)
\n
"
,
hr
);
else
{
if
(
!
stop
)
stop
=
TransformFilter_ChangeStop
;
if
(
!
current
)
current
=
TransformFilter_ChangeCurrent
;
if
(
!
rate
)
rate
=
TransformFilter_ChangeRate
;
MediaSeekingImpl_Init
((
IBaseFilter
*
)
pTransformFilter
,
stop
,
current
,
rate
,
&
pTransformFilter
->
mediaSeeking
,
&
pTransformFilter
->
csFilter
);
pTransformFilter
->
mediaSeeking
.
lpVtbl
=
&
TransformFilter_Seeking_Vtbl
;
}
}
else
{
...
...
@@ -213,6 +294,8 @@ static HRESULT WINAPI TransformFilter_QueryInterface(IBaseFilter * iface, REFIID
*
ppv
=
(
LPVOID
)
This
;
else
if
(
IsEqualIID
(
riid
,
&
IID_IBaseFilter
))
*
ppv
=
(
LPVOID
)
This
;
else
if
(
IsEqualIID
(
riid
,
&
IID_IMediaSeeking
))
*
ppv
=
&
This
->
mediaSeeking
;
if
(
*
ppv
)
{
...
...
dlls/quartz/transform.h
View file @
e1812906
...
...
@@ -18,6 +18,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "control_private.h"
typedef
struct
TransformFilterImpl
TransformFilterImpl
;
typedef
struct
TransformFuncsTable
{
...
...
@@ -40,10 +42,11 @@ struct TransformFilterImpl
IReferenceClock
*
pClock
;
FILTER_INFO
filterInfo
;
CLSID
clsid
;
struct
MediaSeekingImpl
mediaSeeking
;
IPin
**
ppPins
;
const
TransformFuncsTable
*
pFuncsTable
;
};
HRESULT
TransformFilter_Create
(
TransformFilterImpl
*
,
const
CLSID
*
,
const
TransformFuncsTable
*
pFuncsTable
);
HRESULT
TransformFilter_Create
(
TransformFilterImpl
*
,
const
CLSID
*
,
const
TransformFuncsTable
*
pFuncsTable
,
CHANGEPROC
stop
,
CHANGEPROC
current
,
CHANGEPROC
rate
);
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