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
c713b295
Commit
c713b295
authored
Mar 26, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
Mar 26, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: Support FORMAT_VideoInfo2 in strmbase_dump_media_type().
Signed-off-by:
Zebediah Figura
<
zfigura@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5814d193
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
3 deletions
+29
-3
mediatype.c
dlls/strmbase/mediatype.c
+29
-3
No files found.
dlls/strmbase/mediatype.c
View file @
c713b295
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
*/
*/
#include "strmbase_private.h"
#include "strmbase_private.h"
#include "dvdmedia.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
strmbase
);
WINE_DEFAULT_DEBUG_CHANNEL
(
strmbase
);
...
@@ -103,9 +104,34 @@ void strmbase_dump_media_type(const AM_MEDIA_TYPE *mt)
...
@@ -103,9 +104,34 @@ void strmbase_dump_media_type(const AM_MEDIA_TYPE *mt)
{
{
VIDEOINFOHEADER
*
vih
=
(
VIDEOINFOHEADER
*
)
mt
->
pbFormat
;
VIDEOINFOHEADER
*
vih
=
(
VIDEOINFOHEADER
*
)
mt
->
pbFormat
;
TRACE
(
"source %s, target %s, bitrate %u, error rate %u, %s sec/frame, "
,
if
(
!
IsRectEmpty
(
&
vih
->
rcSource
))
TRACE
(
"source %s, "
,
wine_dbgstr_rect
(
&
vih
->
rcSource
));
wine_dbgstr_rect
(
&
vih
->
rcSource
),
wine_dbgstr_rect
(
&
vih
->
rcTarget
),
if
(
!
IsRectEmpty
(
&
vih
->
rcTarget
))
TRACE
(
"target %s, "
,
wine_dbgstr_rect
(
&
vih
->
rcTarget
));
vih
->
dwBitRate
,
vih
->
dwBitErrorRate
,
debugstr_time
(
vih
->
AvgTimePerFrame
));
if
(
vih
->
dwBitRate
)
TRACE
(
"bitrate %u, "
,
vih
->
dwBitRate
);
if
(
vih
->
dwBitErrorRate
)
TRACE
(
"error rate %u, "
,
vih
->
dwBitErrorRate
);
TRACE
(
"%s sec/frame, "
,
debugstr_time
(
vih
->
AvgTimePerFrame
));
TRACE
(
"size %dx%d, %u planes, %u bpp, compression %s, image size %u"
,
vih
->
bmiHeader
.
biWidth
,
vih
->
bmiHeader
.
biHeight
,
vih
->
bmiHeader
.
biPlanes
,
vih
->
bmiHeader
.
biBitCount
,
debugstr_fourcc
(
vih
->
bmiHeader
.
biCompression
),
vih
->
bmiHeader
.
biSizeImage
);
if
(
vih
->
bmiHeader
.
biXPelsPerMeter
||
vih
->
bmiHeader
.
biYPelsPerMeter
)
TRACE
(
", resolution %dx%d"
,
vih
->
bmiHeader
.
biXPelsPerMeter
,
vih
->
bmiHeader
.
biYPelsPerMeter
);
if
(
vih
->
bmiHeader
.
biClrUsed
)
TRACE
(
", %d colours"
,
vih
->
bmiHeader
.
biClrUsed
);
if
(
vih
->
bmiHeader
.
biClrImportant
)
TRACE
(
", %d important colours"
,
vih
->
bmiHeader
.
biClrImportant
);
TRACE
(
".
\n
"
);
}
else
if
(
IsEqualGUID
(
&
mt
->
formattype
,
&
FORMAT_VideoInfo2
)
&&
mt
->
cbFormat
>=
sizeof
(
VIDEOINFOHEADER2
))
{
VIDEOINFOHEADER2
*
vih
=
(
VIDEOINFOHEADER2
*
)
mt
->
pbFormat
;
if
(
!
IsRectEmpty
(
&
vih
->
rcSource
))
TRACE
(
"source %s, "
,
wine_dbgstr_rect
(
&
vih
->
rcSource
));
if
(
!
IsRectEmpty
(
&
vih
->
rcTarget
))
TRACE
(
"target %s, "
,
wine_dbgstr_rect
(
&
vih
->
rcTarget
));
if
(
vih
->
dwBitRate
)
TRACE
(
"bitrate %u, "
,
vih
->
dwBitRate
);
if
(
vih
->
dwBitErrorRate
)
TRACE
(
"error rate %u, "
,
vih
->
dwBitErrorRate
);
TRACE
(
"%s sec/frame, "
,
debugstr_time
(
vih
->
AvgTimePerFrame
));
if
(
vih
->
dwInterlaceFlags
)
TRACE
(
"interlace flags %#x, "
,
vih
->
dwInterlaceFlags
);
if
(
vih
->
dwCopyProtectFlags
)
TRACE
(
"copy-protection flags %#x, "
,
vih
->
dwCopyProtectFlags
);
TRACE
(
"aspect ratio %u/%u, "
,
vih
->
dwPictAspectRatioX
,
vih
->
dwPictAspectRatioY
);
if
(
vih
->
u
.
dwControlFlags
)
TRACE
(
"control flags %#x, "
,
vih
->
u
.
dwControlFlags
);
TRACE
(
"size %dx%d, %u planes, %u bpp, compression %s, image size %u"
,
TRACE
(
"size %dx%d, %u planes, %u bpp, compression %s, image size %u"
,
vih
->
bmiHeader
.
biWidth
,
vih
->
bmiHeader
.
biHeight
,
vih
->
bmiHeader
.
biPlanes
,
vih
->
bmiHeader
.
biWidth
,
vih
->
bmiHeader
.
biHeight
,
vih
->
bmiHeader
.
biPlanes
,
vih
->
bmiHeader
.
biBitCount
,
debugstr_fourcc
(
vih
->
bmiHeader
.
biCompression
),
vih
->
bmiHeader
.
biBitCount
,
debugstr_fourcc
(
vih
->
bmiHeader
.
biCompression
),
...
...
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