vaapipostproc: Added gstreamer BT2020 color standard support.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/-/merge_requests/407>
This commit is contained in:
parent
5e3fde8569
commit
4ccb37fe37
@ -989,7 +989,9 @@ from_GstVideoColorimetry (const GstVideoColorimetry * const colorimetry)
|
||||
/* NOTE: VAProcColorStandardBT2020 in VAAPI is the same as
|
||||
* GST_VIDEO_COLORIMETRY_BT2020_10 in gstreamer. */
|
||||
if (gst_video_colorimetry_matches (colorimetry,
|
||||
GST_VIDEO_COLORIMETRY_BT2020_10))
|
||||
GST_VIDEO_COLORIMETRY_BT2020_10) ||
|
||||
gst_video_colorimetry_matches (colorimetry,
|
||||
GST_VIDEO_COLORIMETRY_BT2020))
|
||||
return VAProcColorStandardBT2020;
|
||||
if (gst_video_colorimetry_matches (colorimetry, GST_VIDEO_COLORIMETRY_BT601))
|
||||
return VAProcColorStandardBT601;
|
||||
|
Loading…
x
Reference in New Issue
Block a user