mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
msdkvpp: Set colorimetry for src caps
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6316>
This commit is contained in:
parent
72bb59b37c
commit
faddaa8ba5
1 changed files with 7 additions and 1 deletions
|
@ -689,6 +689,7 @@ _get_preferred_src_caps (GstMsdkVPP * thiz, GstVideoInfo * vinfo,
|
|||
GstStructure *structure = NULL;
|
||||
GstCaps *outcaps, *fixate_caps;
|
||||
GstCapsFeatures *features;
|
||||
gchar *colorimetry = NULL;
|
||||
|
||||
/* Fixate the format */
|
||||
fixate_caps = fixate_output_format (thiz, vinfo, srccaps);
|
||||
|
@ -719,7 +720,12 @@ _get_preferred_src_caps (GstMsdkVPP * thiz, GstVideoInfo * vinfo,
|
|||
if (!set_multiview_mode (thiz, vinfo, structure))
|
||||
goto fixate_failed;
|
||||
|
||||
/*Fixme: Set colorimetry */
|
||||
/* set colorimetry based on input info */
|
||||
if ((colorimetry = gst_video_colorimetry_to_string (&vinfo->colorimetry))) {
|
||||
gst_structure_set (structure, "colorimetry", G_TYPE_STRING, colorimetry,
|
||||
NULL);
|
||||
g_free (colorimetry);
|
||||
}
|
||||
|
||||
/* set interlace mode */
|
||||
if (!set_interlace_mode (thiz, vinfo, structure))
|
||||
|
|
Loading…
Reference in a new issue