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
73b6049c
Commit
73b6049c
authored
Apr 26, 2024
by
Rémi Bernon
Committed by
Alexandre Julliard
Apr 29, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Set other aperture attributes on video media types.
parent
393dcb5d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
10 deletions
+30
-10
transform.c
dlls/mf/tests/transform.c
+10
-10
mfplat.c
dlls/winegstreamer/mfplat.c
+4
-0
video_decoder.c
dlls/winegstreamer/video_decoder.c
+16
-0
No files found.
dlls/mf/tests/transform.c
View file @
73b6049c
...
...
@@ -4090,8 +4090,8 @@ static void test_h264_decoder(void)
ATTR_UINT32
(
MF_MT_FIXED_SIZE_SAMPLES
,
1
),
ATTR_UINT32
(
MF_MT_ALL_SAMPLES_INDEPENDENT
,
1
),
ATTR_BLOB
(
MF_MT_MINIMUM_DISPLAY_APERTURE
,
&
actual_aperture
,
16
),
ATTR_BLOB
(
MF_MT_GEOMETRIC_APERTURE
,
&
actual_aperture
,
16
,
.
todo
=
TRUE
),
ATTR_BLOB
(
MF_MT_PAN_SCAN_APERTURE
,
&
actual_aperture
,
16
,
.
todo
=
TRUE
),
ATTR_BLOB
(
MF_MT_GEOMETRIC_APERTURE
,
&
actual_aperture
,
16
),
ATTR_BLOB
(
MF_MT_PAN_SCAN_APERTURE
,
&
actual_aperture
,
16
),
},
{
ATTR_GUID
(
MF_MT_MAJOR_TYPE
,
MFMediaType_Video
),
...
...
@@ -4106,8 +4106,8 @@ static void test_h264_decoder(void)
ATTR_UINT32
(
MF_MT_FIXED_SIZE_SAMPLES
,
1
),
ATTR_UINT32
(
MF_MT_ALL_SAMPLES_INDEPENDENT
,
1
),
ATTR_BLOB
(
MF_MT_MINIMUM_DISPLAY_APERTURE
,
&
actual_aperture
,
16
),
ATTR_BLOB
(
MF_MT_GEOMETRIC_APERTURE
,
&
actual_aperture
,
16
,
.
todo
=
TRUE
),
ATTR_BLOB
(
MF_MT_PAN_SCAN_APERTURE
,
&
actual_aperture
,
16
,
.
todo
=
TRUE
),
ATTR_BLOB
(
MF_MT_GEOMETRIC_APERTURE
,
&
actual_aperture
,
16
),
ATTR_BLOB
(
MF_MT_PAN_SCAN_APERTURE
,
&
actual_aperture
,
16
),
},
{
ATTR_GUID
(
MF_MT_MAJOR_TYPE
,
MFMediaType_Video
),
...
...
@@ -4122,8 +4122,8 @@ static void test_h264_decoder(void)
ATTR_UINT32
(
MF_MT_FIXED_SIZE_SAMPLES
,
1
),
ATTR_UINT32
(
MF_MT_ALL_SAMPLES_INDEPENDENT
,
1
),
ATTR_BLOB
(
MF_MT_MINIMUM_DISPLAY_APERTURE
,
&
actual_aperture
,
16
),
ATTR_BLOB
(
MF_MT_GEOMETRIC_APERTURE
,
&
actual_aperture
,
16
,
.
todo
=
TRUE
),
ATTR_BLOB
(
MF_MT_PAN_SCAN_APERTURE
,
&
actual_aperture
,
16
,
.
todo
=
TRUE
),
ATTR_BLOB
(
MF_MT_GEOMETRIC_APERTURE
,
&
actual_aperture
,
16
),
ATTR_BLOB
(
MF_MT_PAN_SCAN_APERTURE
,
&
actual_aperture
,
16
),
},
{
ATTR_GUID
(
MF_MT_MAJOR_TYPE
,
MFMediaType_Video
),
...
...
@@ -4138,8 +4138,8 @@ static void test_h264_decoder(void)
ATTR_UINT32
(
MF_MT_FIXED_SIZE_SAMPLES
,
1
),
ATTR_UINT32
(
MF_MT_ALL_SAMPLES_INDEPENDENT
,
1
),
ATTR_BLOB
(
MF_MT_MINIMUM_DISPLAY_APERTURE
,
&
actual_aperture
,
16
),
ATTR_BLOB
(
MF_MT_GEOMETRIC_APERTURE
,
&
actual_aperture
,
16
,
.
todo
=
TRUE
),
ATTR_BLOB
(
MF_MT_PAN_SCAN_APERTURE
,
&
actual_aperture
,
16
,
.
todo
=
TRUE
),
ATTR_BLOB
(
MF_MT_GEOMETRIC_APERTURE
,
&
actual_aperture
,
16
),
ATTR_BLOB
(
MF_MT_PAN_SCAN_APERTURE
,
&
actual_aperture
,
16
),
},
{
ATTR_GUID
(
MF_MT_MAJOR_TYPE
,
MFMediaType_Video
),
...
...
@@ -4154,8 +4154,8 @@ static void test_h264_decoder(void)
ATTR_UINT32
(
MF_MT_FIXED_SIZE_SAMPLES
,
1
),
ATTR_UINT32
(
MF_MT_ALL_SAMPLES_INDEPENDENT
,
1
),
ATTR_BLOB
(
MF_MT_MINIMUM_DISPLAY_APERTURE
,
&
actual_aperture
,
16
),
ATTR_BLOB
(
MF_MT_GEOMETRIC_APERTURE
,
&
actual_aperture
,
16
,
.
todo
=
TRUE
),
ATTR_BLOB
(
MF_MT_PAN_SCAN_APERTURE
,
&
actual_aperture
,
16
,
.
todo
=
TRUE
),
ATTR_BLOB
(
MF_MT_GEOMETRIC_APERTURE
,
&
actual_aperture
,
16
),
ATTR_BLOB
(
MF_MT_PAN_SCAN_APERTURE
,
&
actual_aperture
,
16
),
},
};
const
MFT_OUTPUT_STREAM_INFO
initial_output_info
=
...
...
dlls/winegstreamer/mfplat.c
View file @
73b6049c
...
...
@@ -545,6 +545,10 @@ static IMFMediaType *mf_media_type_from_wg_format_video(const struct wg_format *
IMFMediaType_SetBlob
(
type
,
&
MF_MT_MINIMUM_DISPLAY_APERTURE
,
(
BYTE
*
)
&
aperture
,
sizeof
(
aperture
));
IMFMediaType_SetBlob
(
type
,
&
MF_MT_GEOMETRIC_APERTURE
,
(
BYTE
*
)
&
aperture
,
sizeof
(
aperture
));
IMFMediaType_SetBlob
(
type
,
&
MF_MT_PAN_SCAN_APERTURE
,
(
BYTE
*
)
&
aperture
,
sizeof
(
aperture
));
}
return
type
;
...
...
dlls/winegstreamer/video_decoder.c
View file @
73b6049c
...
...
@@ -186,6 +186,22 @@ static HRESULT create_output_media_type(struct video_decoder *decoder, const GUI
goto
done
;
}
if
(
SUCCEEDED
(
IMFMediaType_GetBlob
(
stream_type
,
&
MF_MT_GEOMETRIC_APERTURE
,
(
BYTE
*
)
&
aperture
,
sizeof
(
aperture
),
&
value
)))
{
if
(
FAILED
(
hr
=
IMFVideoMediaType_SetBlob
(
video_type
,
&
MF_MT_GEOMETRIC_APERTURE
,
(
BYTE
*
)
&
aperture
,
sizeof
(
aperture
))))
goto
done
;
}
if
(
SUCCEEDED
(
IMFMediaType_GetBlob
(
stream_type
,
&
MF_MT_PAN_SCAN_APERTURE
,
(
BYTE
*
)
&
aperture
,
sizeof
(
aperture
),
&
value
)))
{
if
(
FAILED
(
hr
=
IMFVideoMediaType_SetBlob
(
video_type
,
&
MF_MT_PAN_SCAN_APERTURE
,
(
BYTE
*
)
&
aperture
,
sizeof
(
aperture
))))
goto
done
;
}
done:
if
(
SUCCEEDED
(
hr
))
*
media_type
=
(
IMFMediaType
*
)
video_type
;
...
...
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