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
e9248486
Commit
e9248486
authored
Feb 01, 2021
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 01, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mf/tests: Add some more tests for video processor transform.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2e64af01
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
125 additions
and
6 deletions
+125
-6
mf.c
dlls/mf/tests/mf.c
+19
-6
mfidl.idl
include/mfidl.idl
+106
-0
No files found.
dlls/mf/tests/mf.c
View file @
e9248486
...
...
@@ -3347,7 +3347,7 @@ static void test_video_processor(void)
IMFTransform
*
transform
;
IMFMediaBuffer
*
buffer
;
IMFMediaEvent
*
event
;
IUnknown
*
unk
;
unsigned
int
value
;
HRESULT
hr
;
GUID
guid
;
...
...
@@ -3362,15 +3362,28 @@ static void test_video_processor(void)
goto
failed
;
}
hr
=
IMFTransform_QueryInterface
(
transform
,
&
IID_IMFMediaEventGenerator
,
(
void
**
)
&
unk
);
ok
(
hr
==
E_NOINTERFACE
,
"Unexpected hr %#x.
\n
"
,
hr
);
hr
=
IMFTransform_QueryInterface
(
transform
,
&
IID_IMFShutdown
,
(
void
**
)
&
unk
);
ok
(
hr
==
E_NOINTERFACE
,
"Unexpected hr %#x.
\n
"
,
hr
);
todo_wine
check_interface
(
transform
,
&
IID_IMFVideoProcessorControl
,
TRUE
);
todo_wine
check_interface
(
transform
,
&
IID_IMFRealTimeClientEx
,
TRUE
);
check_interface
(
transform
,
&
IID_IMFMediaEventGenerator
,
FALSE
);
check_interface
(
transform
,
&
IID_IMFShutdown
,
FALSE
);
/* Transform global attributes. */
hr
=
IMFTransform_GetAttributes
(
transform
,
&
attributes
);
ok
(
hr
==
S_OK
,
"Failed to get attributes, hr %#x.
\n
"
,
hr
);
hr
=
IMFAttributes_GetCount
(
attributes
,
&
count
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
todo_wine
ok
(
!!
count
,
"Unexpected attribute count %u.
\n
"
,
count
);
value
=
0
;
hr
=
IMFAttributes_GetUINT32
(
attributes
,
&
MF_SA_D3D11_AWARE
,
&
value
);
todo_wine
{
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
ok
(
value
==
1
,
"Unexpected attribute value %u.
\n
"
,
value
);
}
hr
=
IMFTransform_GetAttributes
(
transform
,
&
attributes2
);
ok
(
hr
==
S_OK
,
"Failed to get attributes, hr %#x.
\n
"
,
hr
);
ok
(
attributes
==
attributes2
,
"Unexpected instance.
\n
"
);
...
...
include/mfidl.idl
View file @
e9248486
...
...
@@ -1163,6 +1163,112 @@ interface IMFVideoSampleAllocatorEx : IMFVideoSampleAllocator
)
;
}
typedef
enum
_MF_VIDEO_PROCESSOR_MIRROR
{
MIRROR_NONE
,
MIRROR_HORIZONTAL
,
MIRROR_VERTICAL
}
MF_VIDEO_PROCESSOR_MIRROR
;
typedef
enum
_MF_VIDEO_PROCESSOR_ROTATION
{
ROTATION_NONE
,
ROTATION_NORMAL
}
MF_VIDEO_PROCESSOR_ROTATION
;
[
object
,
uuid
(
a3f675d5
-
6119
-
4
f7f
-
a100
-
1
d8b280f0efb
),
local
,
pointer_default
(
unique
)
]
interface
IMFVideoProcessorControl
:
IUnknown
{
HRESULT
SetBorderColor
(
[
in
]
MFARGB
*
color
)
;
HRESULT
SetSourceRectangle
(
[
in
]
RECT
*
rect
)
;
HRESULT
SetDestinationRectangle
(
[
in
]
RECT
*
rect
)
;
HRESULT
SetMirror
(
[
in
]
MF_VIDEO_PROCESSOR_MIRROR
mirror
)
;
HRESULT
SetRotation
(
[
in
]
MF_VIDEO_PROCESSOR_ROTATION
rotation
)
;
HRESULT
SetConstrictionSize
(
[
in
]
SIZE
*
size
)
;
}
[
object
,
uuid
(
bde633d3
-
e1dc
-
4
a7f
-
a693
-
bbae399c4a20
),
local
,
pointer_default
(
unique
)
]
interface
IMFVideoProcessorControl2
:
IMFVideoProcessorControl
{
HRESULT
SetRotationOverride
(
[
in
]
UINT
rotation
)
;
HRESULT
EnableHardwareEffects
(
[
in
]
BOOL
enabled
)
;
HRESULT
GetSupportedHardwareEffects
(
[
out
,
retval
]
UINT
*
support
)
;
}
[
object
,
uuid
(
2347
d60b
-
3
fb5
-
480
c
-
8803
-
8
df3adcd3ef0
),
local
]
interface
IMFRealTimeClient
:
IUnknown
{
HRESULT
RegisterThreads
(
[
in
]
DWORD
task_index
,
[
in
]
LPCWSTR
classname
)
;
HRESULT
UnregisterThreads
()
;
HRESULT
SetWorkQueue
(
[
in
]
DWORD
queue_id
)
;
}
[
object
,
uuid
(
03910848
-
ab16
-
4611
-
b100
-
17b88
ae2f248
),
]
interface
IMFRealTimeClientEx
:
IUnknown
{
HRESULT
RegisterThreadsEx
(
[
in
,
out
]
DWORD
*
task_index
,
[
in
]
LPCWSTR
classname
,
[
in
]
LONG
basepriority
)
;
HRESULT
UnregisterThreads
(
)
;
HRESULT
SetWorkQueueEx
(
[
in
]
DWORD
mtqueue_id
,
[
in
]
LONG
base_priority
)
;
}
enum
{
MF_ACTIVATE_CUSTOM_MIXER_ALLOWFAIL
=
0
x00000001
,
...
...
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