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
2e9a57a0
Commit
2e9a57a0
authored
Feb 17, 2024
by
Alex Henrie
Committed by
Alexandre Julliard
Feb 22, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Add debugstr_time to wine/strmbase.h.
parent
d0eea217
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
105 deletions
+22
-105
evr_private.h
dlls/evr/evr_private.h
+0
-21
asfreader.c
dlls/qasf/asfreader.c
+0
-21
quartz_private.h
dlls/quartz/quartz_private.h
+0
-21
gst_private.h
dlls/winegstreamer/gst_private.h
+0
-21
strmbase.h
include/wine/strmbase.h
+22
-0
strmbase_private.h
libs/strmbase/strmbase_private.h
+0
-21
No files found.
dlls/evr/evr_private.h
View file @
2e9a57a0
...
...
@@ -24,27 +24,6 @@
#include "wine/strmbase.h"
#include "wine/debug.h"
static
inline
const
char
*
debugstr_time
(
LONGLONG
time
)
{
ULONGLONG
abstime
=
time
>=
0
?
time
:
-
time
;
unsigned
int
i
=
0
,
j
=
0
;
char
buffer
[
23
],
rev
[
23
];
while
(
abstime
||
i
<=
8
)
{
buffer
[
i
++
]
=
'0'
+
(
abstime
%
10
);
abstime
/=
10
;
if
(
i
==
7
)
buffer
[
i
++
]
=
'.'
;
}
if
(
time
<
0
)
buffer
[
i
++
]
=
'-'
;
while
(
i
--
)
rev
[
j
++
]
=
buffer
[
i
];
while
(
rev
[
j
-
1
]
==
'0'
&&
rev
[
j
-
2
]
!=
'.'
)
--
j
;
rev
[
j
]
=
0
;
return
wine_dbg_sprintf
(
"%s"
,
rev
);
}
static
inline
const
char
*
debugstr_normalized_rect
(
const
MFVideoNormalizedRect
*
rect
)
{
if
(
!
rect
)
return
"(null)"
;
...
...
dlls/qasf/asfreader.c
View file @
2e9a57a0
...
...
@@ -27,27 +27,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
quartz
);
static
inline
const
char
*
debugstr_time
(
REFERENCE_TIME
time
)
{
ULONGLONG
abstime
=
time
>=
0
?
time
:
-
time
;
unsigned
int
i
=
0
,
j
=
0
;
char
buffer
[
23
],
rev
[
23
];
while
(
abstime
||
i
<=
8
)
{
buffer
[
i
++
]
=
'0'
+
(
abstime
%
10
);
abstime
/=
10
;
if
(
i
==
7
)
buffer
[
i
++
]
=
'.'
;
}
if
(
time
<
0
)
buffer
[
i
++
]
=
'-'
;
while
(
i
--
)
rev
[
j
++
]
=
buffer
[
i
];
while
(
rev
[
j
-
1
]
==
'0'
&&
rev
[
j
-
2
]
!=
'.'
)
--
j
;
rev
[
j
]
=
0
;
return
wine_dbg_sprintf
(
"%s"
,
rev
);
}
struct
buffer
{
INSSBuffer
INSSBuffer_iface
;
...
...
dlls/quartz/quartz_private.h
View file @
2e9a57a0
...
...
@@ -44,27 +44,6 @@
0, 0, { (DWORD_PTR)(__FILE__ ": " # cs) }}; \
static CRITICAL_SECTION cs = { &cs##_debug, -1, 0, 0, 0, 0 };
static
inline
const
char
*
debugstr_time
(
REFERENCE_TIME
time
)
{
ULONGLONG
abstime
=
time
>=
0
?
time
:
-
time
;
unsigned
int
i
=
0
,
j
=
0
;
char
buffer
[
23
],
rev
[
23
];
while
(
abstime
||
i
<=
8
)
{
buffer
[
i
++
]
=
'0'
+
(
abstime
%
10
);
abstime
/=
10
;
if
(
i
==
7
)
buffer
[
i
++
]
=
'.'
;
}
if
(
time
<
0
)
buffer
[
i
++
]
=
'-'
;
while
(
i
--
)
rev
[
j
++
]
=
buffer
[
i
];
while
(
rev
[
j
-
1
]
==
'0'
&&
rev
[
j
-
2
]
!=
'.'
)
--
j
;
rev
[
j
]
=
0
;
return
wine_dbg_sprintf
(
"%s"
,
rev
);
}
/* see IAsyncReader::Request on MSDN for the explanation of this */
#define MEDIATIME_FROM_BYTES(x) ((LONGLONG)(x) * 10000000)
#define BYTES_FROM_MEDIATIME(time) ((time) / 10000000)
...
...
dlls/winegstreamer/gst_private.h
View file @
2e9a57a0
...
...
@@ -41,27 +41,6 @@
bool
array_reserve
(
void
**
elements
,
size_t
*
capacity
,
size_t
count
,
size_t
size
);
static
inline
const
char
*
debugstr_time
(
REFERENCE_TIME
time
)
{
ULONGLONG
abstime
=
time
>=
0
?
time
:
-
time
;
unsigned
int
i
=
0
,
j
=
0
;
char
buffer
[
23
],
rev
[
23
];
while
(
abstime
||
i
<=
8
)
{
buffer
[
i
++
]
=
'0'
+
(
abstime
%
10
);
abstime
/=
10
;
if
(
i
==
7
)
buffer
[
i
++
]
=
'.'
;
}
if
(
time
<
0
)
buffer
[
i
++
]
=
'-'
;
while
(
i
--
)
rev
[
j
++
]
=
buffer
[
i
];
while
(
rev
[
j
-
1
]
==
'0'
&&
rev
[
j
-
2
]
!=
'.'
)
--
j
;
rev
[
j
]
=
0
;
return
wine_dbg_sprintf
(
"%s"
,
rev
);
}
#define MEDIATIME_FROM_BYTES(x) ((LONGLONG)(x) * 10000000)
struct
wg_sample_queue
;
...
...
include/wine/strmbase.h
View file @
2e9a57a0
...
...
@@ -20,6 +20,7 @@
*/
#include "dshow.h"
#include "wine/debug.h"
HRESULT
WINAPI
CopyMediaType
(
AM_MEDIA_TYPE
*
pDest
,
const
AM_MEDIA_TYPE
*
pSrc
);
void
WINAPI
FreeMediaType
(
AM_MEDIA_TYPE
*
pMediaType
);
...
...
@@ -28,6 +29,27 @@ void WINAPI DeleteMediaType(AM_MEDIA_TYPE * pMediaType);
void
strmbase_dump_media_type
(
const
AM_MEDIA_TYPE
*
mt
);
static
inline
const
char
*
debugstr_time
(
REFERENCE_TIME
time
)
{
ULONGLONG
abstime
=
time
>=
0
?
time
:
-
time
;
unsigned
int
i
=
0
,
j
=
0
;
char
buffer
[
23
],
rev
[
23
];
while
(
abstime
||
i
<=
8
)
{
buffer
[
i
++
]
=
'0'
+
(
abstime
%
10
);
abstime
/=
10
;
if
(
i
==
7
)
buffer
[
i
++
]
=
'.'
;
}
if
(
time
<
0
)
buffer
[
i
++
]
=
'-'
;
while
(
i
--
)
rev
[
j
++
]
=
buffer
[
i
];
while
(
rev
[
j
-
1
]
==
'0'
&&
rev
[
j
-
2
]
!=
'.'
)
--
j
;
rev
[
j
]
=
0
;
return
wine_dbg_sprintf
(
"%s"
,
rev
);
}
/* Pin functions */
struct
strmbase_pin
...
...
libs/strmbase/strmbase_private.h
View file @
2e9a57a0
...
...
@@ -30,25 +30,4 @@
#include "wine/list.h"
#include "wine/strmbase.h"
static
inline
const
char
*
debugstr_time
(
REFERENCE_TIME
time
)
{
ULONGLONG
abstime
=
time
>=
0
?
time
:
-
time
;
unsigned
int
i
=
0
,
j
=
0
;
char
buffer
[
23
],
rev
[
23
];
while
(
abstime
||
i
<=
8
)
{
buffer
[
i
++
]
=
'0'
+
(
abstime
%
10
);
abstime
/=
10
;
if
(
i
==
7
)
buffer
[
i
++
]
=
'.'
;
}
if
(
time
<
0
)
buffer
[
i
++
]
=
'-'
;
while
(
i
--
)
rev
[
j
++
]
=
buffer
[
i
];
while
(
rev
[
j
-
1
]
==
'0'
&&
rev
[
j
-
2
]
!=
'.'
)
--
j
;
rev
[
j
]
=
0
;
return
wine_dbg_sprintf
(
"%s"
,
rev
);
}
#endif
/* __WINE_STRMBASE_PRIVATE_H */
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