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
365bbe83
Commit
365bbe83
authored
Jun 10, 2008
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Jun 21, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Expose some methods so that a custom allocator can be created.
parent
3a9040c1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
0 deletions
+46
-0
memallocator.c
dlls/quartz/memallocator.c
+0
-0
quartz_private.h
dlls/quartz/quartz_private.h
+46
-0
No files found.
dlls/quartz/memallocator.c
View file @
365bbe83
This diff is collapsed.
Click to expand it.
dlls/quartz/quartz_private.h
View file @
365bbe83
...
...
@@ -33,6 +33,7 @@
#include "wingdi.h"
#include "winuser.h"
#include "dshow.h"
#include "wine/list.h"
#define MEDIATIME_FROM_BYTES(x) ((LONGLONG)(x) * 10000000)
#define SEC_FROM_MEDIATIME(time) ((time) / 10000000)
...
...
@@ -84,4 +85,49 @@ BOOL CompareMediaTypes(const AM_MEDIA_TYPE * pmt1, const AM_MEDIA_TYPE * pmt2, B
void
dump_AM_MEDIA_TYPE
(
const
AM_MEDIA_TYPE
*
pmt
);
HRESULT
updatehres
(
HRESULT
original
,
HRESULT
new
);
typedef
struct
StdMediaSample2
{
const
IMediaSample2Vtbl
*
lpvtbl
;
LONG
ref
;
AM_SAMPLE2_PROPERTIES
props
;
IMemAllocator
*
pParent
;
struct
list
listentry
;
LONGLONG
tMediaStart
;
LONGLONG
tMediaEnd
;
}
StdMediaSample2
;
typedef
struct
BaseMemAllocator
{
const
IMemAllocatorVtbl
*
lpVtbl
;
LONG
ref
;
ALLOCATOR_PROPERTIES
props
;
HRESULT
(
*
fnAlloc
)
(
IMemAllocator
*
);
HRESULT
(
*
fnFree
)(
IMemAllocator
*
);
HRESULT
(
*
fnVerify
)(
IMemAllocator
*
,
ALLOCATOR_PROPERTIES
*
);
HRESULT
(
*
fnBufferPrepare
)(
IMemAllocator
*
,
StdMediaSample2
*
,
DWORD
flags
);
HRESULT
(
*
fnBufferReleased
)(
IMemAllocator
*
,
StdMediaSample2
*
);
void
(
*
fnDestroyed
)(
IMemAllocator
*
);
HANDLE
hSemWaiting
;
BOOL
bDecommitQueued
;
BOOL
bCommitted
;
LONG
lWaiting
;
struct
list
free_list
;
struct
list
used_list
;
CRITICAL_SECTION
*
pCritSect
;
}
BaseMemAllocator
;
HRESULT
BaseMemAllocator_Init
(
HRESULT
(
*
fnAlloc
)(
IMemAllocator
*
),
HRESULT
(
*
fnFree
)(
IMemAllocator
*
),
HRESULT
(
*
fnVerify
)(
IMemAllocator
*
,
ALLOCATOR_PROPERTIES
*
),
HRESULT
(
*
fnBufferPrepare
)(
IMemAllocator
*
,
StdMediaSample2
*
,
DWORD
),
HRESULT
(
*
fnBufferReleased
)(
IMemAllocator
*
,
StdMediaSample2
*
),
void
(
*
fnDestroyed
)(
IMemAllocator
*
),
CRITICAL_SECTION
*
pCritSect
,
BaseMemAllocator
*
pMemAlloc
);
HRESULT
StdMediaSample2_Construct
(
BYTE
*
pbBuffer
,
LONG
cbBuffer
,
IMemAllocator
*
pParent
,
StdMediaSample2
**
ppSample
);
void
StdMediaSample2_Delete
(
StdMediaSample2
*
This
);
#endif
/* __QUARTZ_PRIVATE_INCLUDED__ */
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