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
245ac9b4
Commit
245ac9b4
authored
Aug 11, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Aug 16, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf/tests: Add more topology loader converter and enumeration tests.
parent
5b7a3aaf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
mf.c
dlls/mf/tests/mf.c
+24
-0
No files found.
dlls/mf/tests/mf.c
View file @
245ac9b4
...
...
@@ -2210,6 +2210,16 @@ static void test_topology_loader(void)
ATTR_UINT32
(
MF_MT_AUDIO_BLOCK_ALIGNMENT
,
1
),
ATTR_UINT32
(
MF_MT_AUDIO_BITS_PER_SAMPLE
,
8
),
};
static
const
media_type_desc
audio_float_48000
=
{
ATTR_GUID
(
MF_MT_MAJOR_TYPE
,
MFMediaType_Audio
),
ATTR_GUID
(
MF_MT_SUBTYPE
,
MFAudioFormat_Float
),
ATTR_UINT32
(
MF_MT_AUDIO_NUM_CHANNELS
,
2
),
ATTR_UINT32
(
MF_MT_AUDIO_SAMPLES_PER_SECOND
,
48000
),
ATTR_UINT32
(
MF_MT_AUDIO_AVG_BYTES_PER_SECOND
,
8
*
48000
),
ATTR_UINT32
(
MF_MT_AUDIO_BLOCK_ALIGNMENT
,
8
),
ATTR_UINT32
(
MF_MT_AUDIO_BITS_PER_SAMPLE
,
32
),
};
static
const
media_type_desc
audio_mp3_44100
=
{
ATTR_GUID
(
MF_MT_MAJOR_TYPE
,
MFMediaType_Audio
),
...
...
@@ -2333,6 +2343,13 @@ static void test_topology_loader(void)
.
flags
=
LOADER_EXPECTED_CONVERTER
,
},
{
/* PCM -> PCM, different enumerated bps, same current type, sink allow converter, force enumerate */
.
input_type
=
&
audio_pcm_44100
,
.
output_type
=
&
audio_pcm_48000
,
.
sink_method
=
MF_CONNECT_ALLOW_CONVERTER
,
.
source_method
=
-
1
,
.
current_input
=
&
audio_pcm_48000
,
.
expected_result
=
S_OK
,
.
flags
=
LOADER_EXPECTED_CONVERTER
|
LOADER_SET_ENUMERATE_SOURCE_TYPES
|
LOADER_TODO
,
},
{
/* PCM -> PCM, different enumerated bps, no current type, sink allow decoder */
.
input_type
=
&
audio_pcm_44100
,
.
output_type
=
&
audio_pcm_48000
,
.
sink_method
=
MF_CONNECT_ALLOW_DECODER
,
.
source_method
=
MF_CONNECT_DIRECT
,
.
expected_result
=
S_OK
,
...
...
@@ -2377,6 +2394,13 @@ static void test_topology_loader(void)
.
expected_result
=
S_OK
,
.
flags
=
LOADER_EXPECTED_DECODER
|
LOADER_TODO
,
},
{
/* MP3 -> PCM, need both decoder and converter */
.
input_type
=
&
audio_mp3_44100
,
.
output_type
=
&
audio_float_48000
,
.
sink_method
=
MF_CONNECT_ALLOW_DECODER
,
.
source_method
=
-
1
,
.
current_input
=
&
audio_mp3_44100
,
.
expected_result
=
S_OK
,
.
flags
=
LOADER_EXPECTED_DECODER
|
LOADER_EXPECTED_CONVERTER
|
LOADER_TODO
,
},
{
/* I420 -> RGB32, Color Convert media type */
...
...
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