Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
e78ea286
Commit
e78ea286
authored
Dec 02, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Make some functions and variables static.
parent
c42130f0
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
32 additions
and
84 deletions
+32
-84
filtermapper.c
dlls/quartz/filtermapper.c
+1
-1
main.c
dlls/quartz/main.c
+0
-20
memallocator.c
dlls/quartz/memallocator.c
+30
-28
parser.c
dlls/quartz/parser.c
+1
-1
quartz_private.h
dlls/quartz/quartz_private.h
+0
-34
No files found.
dlls/quartz/filtermapper.c
View file @
e78ea286
...
...
@@ -81,7 +81,7 @@ struct IAMFilterData
{
const
IAMFilterDataVtbl
*
lpVtbl
;
};
const
GUID
IID_IAMFilterData
=
{
static
const
GUID
IID_IAMFilterData
=
{
0x97f7c4d4
,
0x547b
,
0x4a5f
,
{
0x83
,
0x32
,
0x53
,
0x64
,
0x30
,
0xad
,
0x2e
,
0x4d
}
};
...
...
dlls/quartz/main.c
View file @
e78ea286
...
...
@@ -241,26 +241,6 @@ const char * qzdebugstr_guid( const GUID * id )
return
debugstr_guid
(
id
);
}
/***********************************************************************
* qzdebugstr_State (internal)
*
* Gives a text version of the FILTER_STATE enumeration
*/
const
char
*
qzdebugstr_State
(
FILTER_STATE
state
)
{
switch
(
state
)
{
case
State_Stopped
:
return
"State_Stopped"
;
case
State_Running
:
return
"State_Running"
;
case
State_Paused
:
return
"State_Paused"
;
default:
return
"State_Unknown"
;
}
}
LONG
WINAPI
AmpFactorToDB
(
LONG
ampfactor
)
{
FIXME
(
"(%d) Stub!
\n
"
,
ampfactor
);
...
...
dlls/quartz/memallocator.c
View file @
e78ea286
...
...
@@ -31,24 +31,26 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
quartz
);
void
dump_AM_SAMPLE2_PROPERTIES
(
const
AM_SAMPLE2_PROPERTIES
*
pProps
)
{
if
(
!
pProps
)
{
TRACE
(
"AM_SAMPLE2_PROPERTIES: (null)
\n
"
);
return
;
}
TRACE
(
"
\t
cbData: %d
\n
"
,
pProps
->
cbData
);
TRACE
(
"
\t
dwTypeSpecificFlags: 0x%8x
\n
"
,
pProps
->
dwTypeSpecificFlags
);
TRACE
(
"
\t
dwSampleFlags: 0x%8x
\n
"
,
pProps
->
dwSampleFlags
);
TRACE
(
"
\t
lActual: %d
\n
"
,
pProps
->
lActual
);
TRACE
(
"
\t
tStart: %x%08x%s
\n
"
,
(
LONG
)(
pProps
->
tStart
>>
32
),
(
LONG
)
pProps
->
tStart
,
pProps
->
dwSampleFlags
&
AM_SAMPLE_TIMEVALID
?
""
:
" (not valid)"
);
TRACE
(
"
\t
tStop: %x%08x%s
\n
"
,
(
LONG
)(
pProps
->
tStop
>>
32
),
(
LONG
)
pProps
->
tStop
,
pProps
->
dwSampleFlags
&
AM_SAMPLE_STOPVALID
?
""
:
" (not valid)"
);
TRACE
(
"
\t
dwStreamId: 0x%x
\n
"
,
pProps
->
dwStreamId
);
TRACE
(
"
\t
pMediaType: %p
\n
"
,
pProps
->
pMediaType
);
TRACE
(
"
\t
pbBuffer: %p
\n
"
,
pProps
->
pbBuffer
);
TRACE
(
"
\t
cbBuffer: %d
\n
"
,
pProps
->
cbBuffer
);
}
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
;
static
const
IMemAllocatorVtbl
BaseMemAllocator_VTable
;
static
const
IMediaSample2Vtbl
StdMediaSample2_VTable
;
...
...
@@ -57,14 +59,14 @@ static const IMediaSample2Vtbl StdMediaSample2_VTable;
#define INVALID_MEDIA_TIME (((ULONGLONG)0x7fffffff << 32) | 0xffffffff)
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
)
static
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
)
{
assert
(
fnAlloc
&&
fnFree
&&
fnDestroyed
);
...
...
@@ -399,7 +401,7 @@ static const IMemAllocatorVtbl BaseMemAllocator_VTable =
BaseMemAllocator_ReleaseBuffer
};
HRESULT
StdMediaSample2_Construct
(
BYTE
*
pbBuffer
,
LONG
cbBuffer
,
IMemAllocator
*
pParent
,
StdMediaSample2
**
ppSample
)
static
HRESULT
StdMediaSample2_Construct
(
BYTE
*
pbBuffer
,
LONG
cbBuffer
,
IMemAllocator
*
pParent
,
StdMediaSample2
**
ppSample
)
{
assert
(
pbBuffer
&&
pParent
&&
(
cbBuffer
>
0
));
...
...
@@ -423,7 +425,7 @@ HRESULT StdMediaSample2_Construct(BYTE * pbBuffer, LONG cbBuffer, IMemAllocator
return
S_OK
;
}
void
StdMediaSample2_Delete
(
StdMediaSample2
*
This
)
static
void
StdMediaSample2_Delete
(
StdMediaSample2
*
This
)
{
/* NOTE: does not remove itself from the list it belongs to */
CoTaskMemFree
(
This
);
...
...
dlls/quartz/parser.c
View file @
e78ea286
...
...
@@ -747,7 +747,7 @@ static HRESULT WINAPI Parser_PullPin_Disconnect(IPin * iface)
return
hr
;
}
HRESULT
WINAPI
Parser_PullPin_ReceiveConnection
(
IPin
*
iface
,
IPin
*
pReceivePin
,
const
AM_MEDIA_TYPE
*
pmt
)
static
HRESULT
WINAPI
Parser_PullPin_ReceiveConnection
(
IPin
*
iface
,
IPin
*
pReceivePin
,
const
AM_MEDIA_TYPE
*
pmt
)
{
HRESULT
hr
;
...
...
dlls/quartz/quartz_private.h
View file @
e78ea286
...
...
@@ -76,7 +76,6 @@ HRESULT IEnumRegFiltersImpl_Construct(REGFILTER * pInRegFilters, const ULONG siz
HRESULT
IEnumFiltersImpl_Construct
(
IBaseFilter
**
ppFilters
,
ULONG
nFilters
,
IEnumFilters
**
ppEnum
);
extern
const
char
*
qzdebugstr_guid
(
const
GUID
*
id
);
extern
const
char
*
qzdebugstr_State
(
FILTER_STATE
state
);
HRESULT
CopyMediaType
(
AM_MEDIA_TYPE
*
pDest
,
const
AM_MEDIA_TYPE
*
pSrc
);
void
FreeMediaType
(
AM_MEDIA_TYPE
*
pmt
);
...
...
@@ -97,37 +96,4 @@ typedef struct StdMediaSample2
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