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
8e538a3d
Commit
8e538a3d
authored
Sep 11, 2003
by
Robert Shearman
Committed by
Alexandre Julliard
Sep 11, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented IMemAllocator and IMediaSample.
parent
ef5f6c7f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
3 deletions
+23
-3
Makefile.in
dlls/quartz/Makefile.in
+1
-0
enummedia.c
dlls/quartz/enummedia.c
+18
-2
main.c
dlls/quartz/main.c
+1
-0
memallocator.c
dlls/quartz/memallocator.c
+0
-0
quartz_private.h
dlls/quartz/quartz_private.h
+3
-1
No files found.
dlls/quartz/Makefile.in
View file @
8e538a3d
...
...
@@ -17,6 +17,7 @@ C_SRCS = \
filtergraph.c
\
filtermapper.c
\
main.c
\
memallocator.c
\
pin.c
\
regsvr.c
...
...
dlls/quartz/enummedia.c
View file @
8e538a3d
...
...
@@ -24,11 +24,27 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
quartz
);
void
CopyMediaType
(
AM_MEDIA_TYPE
*
pDest
,
const
AM_MEDIA_TYPE
*
pSrc
)
HRESULT
CopyMediaType
(
AM_MEDIA_TYPE
*
pDest
,
const
AM_MEDIA_TYPE
*
pSrc
)
{
memcpy
(
pDest
,
pSrc
,
sizeof
(
AM_MEDIA_TYPE
));
pDest
->
pbFormat
=
CoTaskMemAlloc
(
pSrc
->
cbFormat
);
if
(
!
(
pDest
->
pbFormat
=
CoTaskMemAlloc
(
pSrc
->
cbFormat
)))
return
E_OUTOFMEMORY
;
memcpy
(
pDest
->
pbFormat
,
pSrc
->
pbFormat
,
pSrc
->
cbFormat
);
return
S_OK
;
}
void
DeleteMediaType
(
AM_MEDIA_TYPE
*
pMediaType
)
{
if
(
pMediaType
->
pbFormat
)
{
CoTaskMemFree
(
pMediaType
->
pbFormat
);
pMediaType
->
pbFormat
=
NULL
;
}
if
(
pMediaType
->
pUnk
)
{
IUnknown_Release
(
pMediaType
->
pUnk
);
pMediaType
->
pUnk
=
NULL
;
}
}
BOOL
CompareMediaTypes
(
const
AM_MEDIA_TYPE
*
pmt1
,
const
AM_MEDIA_TYPE
*
pmt2
,
BOOL
bWildcards
)
...
...
dlls/quartz/main.c
View file @
8e538a3d
...
...
@@ -64,6 +64,7 @@ static const struct object_creation_info object_creation[] =
{
&
CLSID_FilterMapper
,
FilterMapper2_create
},
{
&
CLSID_FilterMapper2
,
FilterMapper2_create
},
{
&
CLSID_AsyncReader
,
AsyncReader_create
},
{
&
CLSID_MemoryAllocator
,
StdMemAllocator_create
},
};
static
HRESULT
WINAPI
...
...
dlls/quartz/memallocator.c
0 → 100644
View file @
8e538a3d
This diff is collapsed.
Click to expand it.
dlls/quartz/quartz_private.h
View file @
8e538a3d
...
...
@@ -35,6 +35,7 @@
HRESULT
FILTERGRAPH_create
(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppObj
)
;
HRESULT
FilterMapper2_create
(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppObj
);
HRESULT
AsyncReader_create
(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppv
);
HRESULT
StdMemAllocator_create
(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppv
);
HRESULT
EnumMonikerImpl_Create
(
IMoniker
**
ppMoniker
,
ULONG
nMonikerCount
,
IEnumMoniker
**
ppEnum
);
...
...
@@ -56,7 +57,8 @@ HRESULT IEnumMediaTypesImpl_Construct(const ENUMMEDIADETAILS * pDetails, IEnumMe
extern
const
char
*
qzdebugstr_guid
(
const
GUID
*
id
);
extern
const
char
*
qzdebugstr_State
(
FILTER_STATE
state
);
void
CopyMediaType
(
AM_MEDIA_TYPE
*
pDest
,
const
AM_MEDIA_TYPE
*
pSrc
);
HRESULT
CopyMediaType
(
AM_MEDIA_TYPE
*
pDest
,
const
AM_MEDIA_TYPE
*
pSrc
);
void
DeleteMediaType
(
AM_MEDIA_TYPE
*
pmt
);
BOOL
CompareMediaTypes
(
const
AM_MEDIA_TYPE
*
pmt1
,
const
AM_MEDIA_TYPE
*
pmt2
,
BOOL
bWildcards
);
void
dump_AM_MEDIA_TYPE
(
const
AM_MEDIA_TYPE
*
pmt
);
...
...
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