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
930dc23c
Commit
930dc23c
authored
Jun 22, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
Jun 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Prefer YUV formats to RGB ones.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3328f7f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
gstdemux.c
dlls/winegstreamer/gstdemux.c
+6
-4
No files found.
dlls/winegstreamer/gstdemux.c
View file @
930dc23c
...
...
@@ -1677,17 +1677,19 @@ static HRESULT gstdecoder_source_get_media_type(struct gstdemux_source *pin,
{
static
const
GstVideoFormat
video_formats
[]
=
{
/* Roughly ordered by preference from videoflip. */
/* Try to prefer YUV formats over RGB ones. Most decoders output in the
* YUV color space, and it's generally much less expensive for
* videoconvert to do YUV -> YUV transformations. */
GST_VIDEO_FORMAT_AYUV
,
GST_VIDEO_FORMAT_BGRA
,
GST_VIDEO_FORMAT_BGRx
,
GST_VIDEO_FORMAT_BGR
,
GST_VIDEO_FORMAT_I420
,
GST_VIDEO_FORMAT_YV12
,
GST_VIDEO_FORMAT_YUY2
,
GST_VIDEO_FORMAT_UYVY
,
GST_VIDEO_FORMAT_YVYU
,
GST_VIDEO_FORMAT_NV12
,
GST_VIDEO_FORMAT_BGRA
,
GST_VIDEO_FORMAT_BGRx
,
GST_VIDEO_FORMAT_BGR
,
};
if
(
!
index
)
...
...
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