mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
videobox: transform_caps : We can only convert AYUV to xRGB
We were previously stating that we could convert AYUV/I420/YV12 to xRGB.
This commit is contained in:
parent
f30f907c37
commit
146e50455b
1 changed files with 15 additions and 12 deletions
|
@ -1576,6 +1576,8 @@ gst_video_box_transform_caps (GstBaseTransform * trans,
|
|||
gst_structure_set_value (structure, "format", &list);
|
||||
g_value_unset (&list);
|
||||
|
||||
/* We can only convert to RGB if input is AYUV */
|
||||
if (fourcc == GST_STR_FOURCC ("AYUV")) {
|
||||
gst_structure_set_name (s2, "video/x-raw-rgb");
|
||||
g_value_init (&list, GST_TYPE_LIST);
|
||||
g_value_init (&val, G_TYPE_INT);
|
||||
|
@ -1588,6 +1590,7 @@ gst_video_box_transform_caps (GstBaseTransform * trans,
|
|||
gst_structure_set_value (s2, "depth", &list);
|
||||
gst_structure_set_value (s2, "bpp", &list);
|
||||
g_value_unset (&list);
|
||||
}
|
||||
gst_caps_append_structure (to, s2);
|
||||
}
|
||||
} else if (g_str_equal (name, "video/x-raw-rgb")) {
|
||||
|
|
Loading…
Reference in a new issue