mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 05:31:15 +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;
|
GstStructure *structure = NULL;
|
||||||
GstCaps *outcaps, *fixate_caps;
|
GstCaps *outcaps, *fixate_caps;
|
||||||
GstCapsFeatures *features;
|
GstCapsFeatures *features;
|
||||||
|
gchar *colorimetry = NULL;
|
||||||
|
|
||||||
/* Fixate the format */
|
/* Fixate the format */
|
||||||
fixate_caps = fixate_output_format (thiz, vinfo, srccaps);
|
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))
|
if (!set_multiview_mode (thiz, vinfo, structure))
|
||||||
goto fixate_failed;
|
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 */
|
/* set interlace mode */
|
||||||
if (!set_interlace_mode (thiz, vinfo, structure))
|
if (!set_interlace_mode (thiz, vinfo, structure))
|
||||||
|
|
Loading…
Reference in a new issue