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
2803a220
Commit
2803a220
authored
Jan 24, 2023
by
Zebediah Figura
Committed by
Alexandre Julliard
Feb 09, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Separate a mf_video_format_to_wg() helper.
parent
98c266c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
10 deletions
+14
-10
mfplat.c
dlls/winegstreamer/mfplat.c
+14
-10
No files found.
dlls/winegstreamer/mfplat.c
View file @
2803a220
...
...
@@ -667,11 +667,23 @@ static void mf_media_type_to_wg_format_audio_mpeg4(IMFMediaType *type, struct wg
memcpy
(
format
->
u
.
audio_mpeg4
.
codec_data
,
user_data
->
pbAudioSpecificConfig
,
codec_data_size
);
}
static
enum
wg_video_format
mf_video_format_to_wg
(
const
GUID
*
subtype
)
{
unsigned
int
i
;
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
video_formats
);
++
i
)
{
if
(
IsEqualGUID
(
subtype
,
video_formats
[
i
].
subtype
))
return
video_formats
[
i
].
format
;
}
FIXME
(
"Unrecognized video subtype %s.
\n
"
,
debugstr_guid
(
subtype
));
return
WG_VIDEO_FORMAT_UNKNOWN
;
}
static
void
mf_media_type_to_wg_format_video
(
IMFMediaType
*
type
,
const
GUID
*
subtype
,
struct
wg_format
*
format
)
{
UINT64
frame_rate
,
frame_size
;
MFVideoArea
aperture
;
unsigned
int
i
;
UINT32
size
;
if
(
FAILED
(
IMFMediaType_GetUINT64
(
type
,
&
MF_MT_FRAME_SIZE
,
&
frame_size
)))
...
...
@@ -701,15 +713,7 @@ static void mf_media_type_to_wg_format_video(IMFMediaType *type, const GUID *sub
format
->
u
.
video
.
fps_d
=
(
UINT32
)
frame_rate
;
}
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
video_formats
);
++
i
)
{
if
(
IsEqualGUID
(
subtype
,
video_formats
[
i
].
subtype
))
{
format
->
u
.
video
.
format
=
video_formats
[
i
].
format
;
return
;
}
}
FIXME
(
"Unrecognized video subtype %s.
\n
"
,
debugstr_guid
(
subtype
));
format
->
u
.
video
.
format
=
mf_video_format_to_wg
(
subtype
);
}
static
void
mf_media_type_to_wg_format_audio_wma
(
IMFMediaType
*
type
,
const
GUID
*
subtype
,
struct
wg_format
*
format
)
...
...
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