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
2d5ec709
Commit
2d5ec709
authored
Apr 12, 2024
by
Ziqing Hui
Committed by
Alexandre Julliard
Apr 29, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer/video_decoder: Set input/output infos in h264_decoder_create.
parent
a93bea3b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
video_decoder.c
dlls/winegstreamer/video_decoder.c
+9
-7
No files found.
dlls/winegstreamer/video_decoder.c
View file @
2d5ec709
...
@@ -831,13 +831,6 @@ static HRESULT video_decoder_create_with_types(const GUID *const *input_types, U
...
@@ -831,13 +831,6 @@ static HRESULT video_decoder_create_with_types(const GUID *const *input_types, U
decoder
->
output_type_count
=
output_type_count
;
decoder
->
output_type_count
=
output_type_count
;
decoder
->
output_types
=
output_types
;
decoder
->
output_types
=
output_types
;
decoder
->
input_info
.
dwFlags
=
MFT_INPUT_STREAM_WHOLE_SAMPLES
|
MFT_INPUT_STREAM_SINGLE_SAMPLE_PER_BUFFER
|
MFT_INPUT_STREAM_FIXED_SAMPLE_SIZE
;
decoder
->
input_info
.
cbSize
=
0x1000
;
decoder
->
output_info
.
dwFlags
=
MFT_OUTPUT_STREAM_WHOLE_SAMPLES
|
MFT_OUTPUT_STREAM_SINGLE_SAMPLE_PER_BUFFER
|
MFT_OUTPUT_STREAM_FIXED_SAMPLE_SIZE
;
decoder
->
output_info
.
cbSize
=
1920
*
1088
*
2
;
if
(
FAILED
(
hr
=
MFCreateMediaType
(
&
decoder
->
stream_type
)))
if
(
FAILED
(
hr
=
MFCreateMediaType
(
&
decoder
->
stream_type
)))
goto
failed
;
goto
failed
;
if
(
FAILED
(
hr
=
MFCreateAttributes
(
&
decoder
->
attributes
,
16
)))
if
(
FAILED
(
hr
=
MFCreateAttributes
(
&
decoder
->
attributes
,
16
)))
...
@@ -897,6 +890,7 @@ HRESULT h264_decoder_create(REFIID riid, void **out)
...
@@ -897,6 +890,7 @@ HRESULT h264_decoder_create(REFIID riid, void **out)
};
};
static
const
struct
wg_format
input_format
=
{.
major_type
=
WG_MAJOR_TYPE_VIDEO_H264
};
static
const
struct
wg_format
input_format
=
{.
major_type
=
WG_MAJOR_TYPE_VIDEO_H264
};
struct
wg_transform_attrs
attrs
=
{
0
};
struct
wg_transform_attrs
attrs
=
{
0
};
struct
video_decoder
*
decoder
;
wg_transform_t
transform
;
wg_transform_t
transform
;
IMFTransform
*
iface
;
IMFTransform
*
iface
;
HRESULT
hr
;
HRESULT
hr
;
...
@@ -913,6 +907,14 @@ HRESULT h264_decoder_create(REFIID riid, void **out)
...
@@ -913,6 +907,14 @@ HRESULT h264_decoder_create(REFIID riid, void **out)
if
(
FAILED
(
hr
=
video_decoder_create_with_types
(
h264_decoder_input_types
,
ARRAY_SIZE
(
h264_decoder_input_types
),
if
(
FAILED
(
hr
=
video_decoder_create_with_types
(
h264_decoder_input_types
,
ARRAY_SIZE
(
h264_decoder_input_types
),
video_decoder_output_types
,
ARRAY_SIZE
(
video_decoder_output_types
),
&
iface
)))
video_decoder_output_types
,
ARRAY_SIZE
(
video_decoder_output_types
),
&
iface
)))
return
hr
;
return
hr
;
decoder
=
impl_from_IMFTransform
(
iface
);
decoder
->
input_info
.
dwFlags
=
MFT_INPUT_STREAM_WHOLE_SAMPLES
|
MFT_INPUT_STREAM_SINGLE_SAMPLE_PER_BUFFER
|
MFT_INPUT_STREAM_FIXED_SAMPLE_SIZE
;
decoder
->
input_info
.
cbSize
=
0x1000
;
decoder
->
output_info
.
dwFlags
=
MFT_OUTPUT_STREAM_WHOLE_SAMPLES
|
MFT_OUTPUT_STREAM_SINGLE_SAMPLE_PER_BUFFER
|
MFT_OUTPUT_STREAM_FIXED_SAMPLE_SIZE
;
decoder
->
output_info
.
cbSize
=
1920
*
1088
*
2
;
hr
=
IMFTransform_QueryInterface
(
iface
,
riid
,
out
);
hr
=
IMFTransform_QueryInterface
(
iface
,
riid
,
out
);
IMFTransform_Release
(
iface
);
IMFTransform_Release
(
iface
);
...
...
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