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
deff1303
Commit
deff1303
authored
Oct 13, 2023
by
Paul Gofman
Committed by
Alexandre Julliard
Oct 17, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Add AVDecVideoAcceleration_H264 attribute for h264 decoder MFT.
parent
98403282
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
0 deletions
+12
-0
transform.c
dlls/mf/tests/transform.c
+3
-0
h264_decoder.c
dlls/winegstreamer/h264_decoder.c
+7
-0
codecapi.h
include/codecapi.h
+2
-0
No files found.
dlls/mf/tests/transform.c
View file @
deff1303
...
...
@@ -45,6 +45,8 @@
#include "initguid.h"
#include "codecapi.h"
#include "d3d11_4.h"
DEFINE_GUID
(
DMOVideoFormat_RGB24
,
D3DFMT_R8G8B8
,
0x524f
,
0x11ce
,
0x9f
,
0x53
,
0x00
,
0x20
,
0xaf
,
0x0b
,
0xa7
,
0x70
);
...
...
@@ -3933,6 +3935,7 @@ static void test_h264_decoder(void)
ATTR_UINT32
(
MF_SA_D3D11_AWARE
,
1
),
ATTR_UINT32
(
MFT_DECODER_EXPOSE_OUTPUT_TYPES_IN_NATIVE_ORDER
,
0
,
.
todo
=
TRUE
),
/* more H264 decoder specific attributes from CODECAPI */
ATTR_UINT32
(
AVDecVideoAcceleration_H264
,
1
),
{
0
},
};
static
const
DWORD
input_width
=
120
,
input_height
=
248
;
...
...
dlls/winegstreamer/h264_decoder.c
View file @
deff1303
...
...
@@ -26,6 +26,10 @@
#include "wine/debug.h"
#include "initguid.h"
#include "codecapi.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
mfplat
);
WINE_DECLARE_DEBUG_CHANNEL
(
winediag
);
...
...
@@ -881,6 +885,9 @@ HRESULT h264_decoder_create(REFIID riid, void **ret)
goto
failed
;
if
(
FAILED
(
hr
=
IMFAttributes_SetUINT32
(
decoder
->
attributes
,
&
MF_SA_D3D11_AWARE
,
TRUE
)))
goto
failed
;
if
(
FAILED
(
hr
=
IMFAttributes_SetUINT32
(
decoder
->
attributes
,
&
AVDecVideoAcceleration_H264
,
TRUE
)))
goto
failed
;
if
(
FAILED
(
hr
=
MFCreateAttributes
(
&
decoder
->
output_attributes
,
0
)))
goto
failed
;
if
(
FAILED
(
hr
=
wg_sample_queue_create
(
&
decoder
->
wg_sample_queue
)))
...
...
include/codecapi.h
View file @
deff1303
...
...
@@ -61,4 +61,6 @@ enum eAVEncH264VLevel
eAVEncH264VLevel5_2
=
52
};
DEFINE_GUID
(
AVDecVideoAcceleration_H264
,
0xf7db8a2f
,
0x4f48
,
0x4ee8
,
0xae
,
0x31
,
0x8b
,
0x6e
,
0xbe
,
0x55
,
0x8a
,
0xe2
);
#endif
/* __CODECAPI_H */
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