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
6979a9f0
Commit
6979a9f0
authored
Jan 30, 2024
by
Rémi Bernon
Committed by
Alexandre Julliard
Feb 05, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Allow wg_transform size changes with an explicit attribute.
parent
98b8ab9b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
12 deletions
+6
-12
h264_decoder.c
dlls/winegstreamer/h264_decoder.c
+1
-12
unixlib.h
dlls/winegstreamer/unixlib.h
+1
-0
wg_transform.c
dlls/winegstreamer/wg_transform.c
+4
-0
No files found.
dlls/winegstreamer/h264_decoder.c
View file @
6979a9f0
...
...
@@ -89,6 +89,7 @@ static HRESULT try_create_wg_transform(struct h264_decoder *decoder)
{
.
output_plane_align
=
15
,
.
input_queue_length
=
15
,
.
allow_size_change
=
TRUE
,
};
struct
wg_format
input_format
;
struct
wg_format
output_format
;
...
...
@@ -106,12 +107,6 @@ static HRESULT try_create_wg_transform(struct h264_decoder *decoder)
if
(
output_format
.
major_type
==
WG_MAJOR_TYPE_UNKNOWN
)
return
MF_E_INVALIDMEDIATYPE
;
/* Don't force any specific size, H264 streams already have the metadata for it
* and will generate a MF_E_TRANSFORM_STREAM_CHANGE result later.
*/
output_format
.
u
.
video
.
width
=
0
;
output_format
.
u
.
video
.
height
=
0
;
if
(
SUCCEEDED
(
IMFAttributes_GetUINT32
(
decoder
->
attributes
,
&
MF_LOW_LATENCY
,
&
low_latency
)))
attrs
.
low_latency
=
!!
low_latency
;
...
...
@@ -545,12 +540,6 @@ static HRESULT WINAPI transform_SetOutputType(IMFTransform *iface, DWORD id, IMF
struct
wg_format
output_format
;
mf_media_type_to_wg_format
(
decoder
->
output_type
,
&
output_format
);
/* Don't force any specific size, H264 streams already have the metadata for it
* and will generate a MF_E_TRANSFORM_STREAM_CHANGE result later.
*/
output_format
.
u
.
video
.
width
=
0
;
output_format
.
u
.
video
.
height
=
0
;
if
(
output_format
.
major_type
==
WG_MAJOR_TYPE_UNKNOWN
||
!
wg_transform_set_output_format
(
decoder
->
wg_transform
,
&
output_format
))
{
...
...
dlls/winegstreamer/unixlib.h
View file @
6979a9f0
...
...
@@ -336,6 +336,7 @@ struct wg_transform_attrs
{
UINT32
output_plane_align
;
UINT32
input_queue_length
;
BOOL
allow_size_change
;
BOOL
low_latency
;
};
...
...
dlls/winegstreamer/wg_transform.c
View file @
6979a9f0
...
...
@@ -193,7 +193,11 @@ static GstCaps *transform_format_to_caps(struct wg_transform *transform, const s
struct
wg_format
copy
=
*
format
;
if
(
format
->
major_type
==
WG_MAJOR_TYPE_VIDEO
)
{
if
(
transform
->
attrs
.
allow_size_change
)
copy
.
u
.
video
.
width
=
copy
.
u
.
video
.
height
=
0
;
copy
.
u
.
video
.
fps_n
=
copy
.
u
.
video
.
fps_d
=
0
;
}
return
wg_format_to_caps
(
&
copy
);
}
...
...
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