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
aba87e0f
Commit
aba87e0f
authored
Aug 16, 2011
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Aug 22, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
amstream: Basic COM cleanup for the IDirectDrawMediaStream iface.
parent
ea47c12e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
18 deletions
+30
-18
mediastream.c
dlls/amstream/mediastream.c
+30
-18
No files found.
dlls/amstream/mediastream.c
View file @
aba87e0f
...
...
@@ -44,7 +44,7 @@ typedef struct {
}
IMediaStreamImpl
;
typedef
struct
{
const
IDirectDrawMediaStreamVtbl
*
lpVtbl
;
IDirectDrawMediaStream
IDirectDrawMediaStream_iface
;
LONG
ref
;
IMultiMediaStream
*
Parent
;
MSPID
PurposeId
;
...
...
@@ -207,77 +207,89 @@ HRESULT DirectDrawMediaStream_create(IMultiMediaStream* Parent, const MSPID* pPu
return
E_OUTOFMEMORY
;
}
object
->
lpVtbl
=
&
DirectDrawMediaStream_Vtbl
;
object
->
IDirectDrawMediaStream_iface
.
lpVtbl
=
&
DirectDrawMediaStream_Vtbl
;
object
->
ref
=
1
;
object
->
Parent
=
Parent
;
object
->
PurposeId
=
*
pPurposeId
;
object
->
StreamType
=
StreamType
;
*
ppMediaStream
=
(
IMediaStream
*
)
object
;
*
ppMediaStream
=
(
IMediaStream
*
)
&
object
->
IDirectDrawMediaStream_iface
;
return
S_OK
;
}
static
HRESULT
WINAPI
IDirectDrawMediaStreamImpl_QueryInterface
(
IDirectDrawMediaStream
*
iface
,
REFIID
riid
,
void
**
ppvObject
)
static
inline
IDirectDrawMediaStreamImpl
*
impl_from_IDirectDrawMediaStream
(
IDirectDrawMediaStream
*
iface
)
{
IMediaStreamImpl
*
This
=
(
IMediaStreamImpl
*
)
iface
;
return
CONTAINING_RECORD
(
iface
,
IDirectDrawMediaStreamImpl
,
IDirectDrawMediaStream_iface
);
}
TRACE
(
"(%p/%p)->(%s,%p)
\n
"
,
iface
,
This
,
debugstr_guid
(
riid
),
ppvObject
);
static
HRESULT
WINAPI
IDirectDrawMediaStreamImpl_QueryInterface
(
IDirectDrawMediaStream
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
IDirectDrawMediaStreamImpl
*
This
=
impl_from_IDirectDrawMediaStream
(
iface
);
TRACE
(
"(%p/%p)->(%s,%p)
\n
"
,
iface
,
This
,
debugstr_guid
(
riid
),
ppv
);
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_IMediaStream
)
||
IsEqualGUID
(
riid
,
&
IID_IDirectDrawMediaStream
))
{
IUnknown_AddRef
(
iface
);
*
ppv
Object
=
This
;
*
ppv
=
This
;
return
S_OK
;
}
ERR
(
"(%p)->(%s,%p),not found
\n
"
,
This
,
debugstr_guid
(
riid
),
ppvObject
);
ERR
(
"(%p)->(%s,%p),not found
\n
"
,
This
,
debugstr_guid
(
riid
),
ppv
);
return
E_NOINTERFACE
;
}
static
HRESULT
WINAPI
IDirectDrawMediaStreamImpl_GetFormat
(
IDirectDrawMediaStream
*
iface
,
DDSURFACEDESC
*
pDDSDCurrent
,
IDirectDrawPalette
**
ppDirectDrawPalette
,
DDSURFACEDESC
*
pDDSDDesired
,
DWORD
*
pdwFlags
)
static
HRESULT
WINAPI
IDirectDrawMediaStreamImpl_GetFormat
(
IDirectDrawMediaStream
*
iface
,
DDSURFACEDESC
*
pDDSDCurrent
,
IDirectDrawPalette
**
ppDirectDrawPalette
,
DDSURFACEDESC
*
pDDSDDesired
,
DWORD
*
pdwFlags
)
{
FIXME
(
"(%p)->(%p,%p,%p,%p) stub!
\n
"
,
iface
,
pDDSDCurrent
,
ppDirectDrawPalette
,
pDDSDDesired
,
pdwFlags
);
FIXME
(
"(%p)->(%p,%p,%p,%p) stub!
\n
"
,
iface
,
pDDSDCurrent
,
ppDirectDrawPalette
,
pDDSDDesired
,
pdwFlags
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IDirectDrawMediaStreamImpl_SetFormat
(
IDirectDrawMediaStream
*
iface
,
const
DDSURFACEDESC
*
pDDSurfaceDesc
,
IDirectDrawPalette
*
pDirectDrawPalette
)
static
HRESULT
WINAPI
IDirectDrawMediaStreamImpl_SetFormat
(
IDirectDrawMediaStream
*
iface
,
const
DDSURFACEDESC
*
pDDSurfaceDesc
,
IDirectDrawPalette
*
pDirectDrawPalette
)
{
FIXME
(
"(%p)->(%p,%p) stub!
\n
"
,
iface
,
pDDSurfaceDesc
,
pDirectDrawPalette
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IDirectDrawMediaStreamImpl_GetDirectDraw
(
IDirectDrawMediaStream
*
iface
,
IDirectDraw
**
ppDirectDraw
)
static
HRESULT
WINAPI
IDirectDrawMediaStreamImpl_GetDirectDraw
(
IDirectDrawMediaStream
*
iface
,
IDirectDraw
**
ppDirectDraw
)
{
FIXME
(
"(%p)->(%p) stub!
\n
"
,
iface
,
ppDirectDraw
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IDirectDrawMediaStreamImpl_SetDirectDraw
(
IDirectDrawMediaStream
*
iface
,
IDirectDraw
*
pDirectDraw
)
static
HRESULT
WINAPI
IDirectDrawMediaStreamImpl_SetDirectDraw
(
IDirectDrawMediaStream
*
iface
,
IDirectDraw
*
pDirectDraw
)
{
FIXME
(
"(%p)->(%p) stub!
\n
"
,
iface
,
pDirectDraw
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IDirectDrawMediaStreamImpl_CreateSample
(
IDirectDrawMediaStream
*
iface
,
IDirectDrawSurface
*
pSurface
,
const
RECT
*
pRect
,
DWORD
dwFlags
,
IDirectDrawStreamSample
**
ppSample
)
static
HRESULT
WINAPI
IDirectDrawMediaStreamImpl_CreateSample
(
IDirectDrawMediaStream
*
iface
,
IDirectDrawSurface
*
pSurface
,
const
RECT
*
pRect
,
DWORD
dwFlags
,
IDirectDrawStreamSample
**
ppSample
)
{
FIXME
(
"(%p)->(%p,%p,%x,%p) stub!
\n
"
,
iface
,
pSurface
,
pRect
,
dwFlags
,
ppSample
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IDirectDrawMediaStreamImpl_GetTimePerFrame
(
IDirectDrawMediaStream
*
iface
,
STREAM_TIME
*
pFrameTime
)
static
HRESULT
WINAPI
IDirectDrawMediaStreamImpl_GetTimePerFrame
(
IDirectDrawMediaStream
*
iface
,
STREAM_TIME
*
pFrameTime
)
{
FIXME
(
"(%p)->(%p) stub!
\n
"
,
iface
,
pFrameTime
);
...
...
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