Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
4031786f
Commit
4031786f
authored
Aug 01, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Aug 08, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf/tests: Add topology loader tests with video formats.
parent
366e3f84
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
0 deletions
+42
-0
mf.c
dlls/mf/tests/mf.c
+42
-0
No files found.
dlls/mf/tests/mf.c
View file @
4031786f
...
...
@@ -2121,6 +2121,29 @@ 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
video_i420_1280
=
{
ATTR_GUID
(
MF_MT_MAJOR_TYPE
,
MFMediaType_Video
),
ATTR_GUID
(
MF_MT_SUBTYPE
,
MFVideoFormat_I420
),
ATTR_RATIO
(
MF_MT_FRAME_SIZE
,
1280
,
720
),
};
static
const
media_type_desc
video_color_convert_1280_rgb32
=
{
ATTR_GUID
(
MF_MT_MAJOR_TYPE
,
MFMediaType_Video
),
ATTR_GUID
(
MF_MT_SUBTYPE
,
DMOVideoFormat_RGB32
),
ATTR_RATIO
(
MF_MT_FRAME_SIZE
,
1280
,
720
),
};
static
const
media_type_desc
video_video_processor_1280_rgb32
=
{
ATTR_GUID
(
MF_MT_MAJOR_TYPE
,
MFMediaType_Video
),
ATTR_GUID
(
MF_MT_SUBTYPE
,
MFVideoFormat_RGB32
),
ATTR_RATIO
(
MF_MT_FRAME_SIZE
,
1280
,
720
),
};
static
const
media_type_desc
video_video_processor_rgb32
=
{
ATTR_GUID
(
MF_MT_MAJOR_TYPE
,
MFMediaType_Video
),
ATTR_GUID
(
MF_MT_SUBTYPE
,
MFVideoFormat_RGB32
),
};
const
struct
loader_test
{
...
...
@@ -2243,6 +2266,25 @@ static void test_topology_loader(void)
.
expected_result
=
S_OK
,
.
flags
=
LOADER_EXPECTED_DECODER
|
LOADER_TODO
,
},
{
/* I420 -> RGB32, Color Convert media type */
.
input_type
=
&
video_i420_1280
,
.
output_type
=
&
video_color_convert_1280_rgb32
,
.
sink_method
=
-
1
,
.
source_method
=
-
1
,
.
expected_result
=
MF_E_TOPO_CODEC_NOT_FOUND
,
.
flags
=
LOADER_NEEDS_VIDEO_PROCESSOR
|
LOADER_EXPECTED_CONVERTER
|
LOADER_TODO
,
},
{
/* I420 -> RGB32, Video Processor media type */
.
input_type
=
&
video_i420_1280
,
.
output_type
=
&
video_video_processor_1280_rgb32
,
.
sink_method
=
-
1
,
.
source_method
=
-
1
,
.
expected_result
=
S_OK
,
.
flags
=
LOADER_NEEDS_VIDEO_PROCESSOR
|
LOADER_EXPECTED_CONVERTER
|
LOADER_TODO
,
},
{
/* I420 -> RGB32, Video Processor media type without frame size */
.
input_type
=
&
video_i420_1280
,
.
output_type
=
&
video_video_processor_rgb32
,
.
sink_method
=
-
1
,
.
source_method
=
-
1
,
.
expected_result
=
S_OK
,
.
flags
=
LOADER_NEEDS_VIDEO_PROCESSOR
|
LOADER_EXPECTED_CONVERTER
|
LOADER_TODO
,
},
};
IMFSampleGrabberSinkCallback
test_grabber_callback
=
{
&
test_grabber_callback_vtbl
};
...
...
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