winegstreamer: Prefer YUV formats to RGB ones.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
3328f7f7ca
commit
930dc23c7c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue