mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
videoscale: remove old caps fields
This commit is contained in:
parent
ac91f44747
commit
9a21eda38c
1 changed files with 1 additions and 15 deletions
|
@ -472,27 +472,13 @@ gst_video_scale_transform_supported (GstVideoScale * videoscale,
|
|||
|
||||
if ((val = gst_structure_get_value (structure, "format"))) {
|
||||
gst_structure_set_value (s, "format", val);
|
||||
} else {
|
||||
if ((val = gst_structure_get_value (structure, "endianness")))
|
||||
gst_structure_set_value (s, "endianness", val);
|
||||
if ((val = gst_structure_get_value (structure, "red_mask")))
|
||||
gst_structure_set_value (s, "red_mask", val);
|
||||
if ((val = gst_structure_get_value (structure, "blue_mask")))
|
||||
gst_structure_set_value (s, "blue_mask", val);
|
||||
if ((val = gst_structure_get_value (structure, "green_mask")))
|
||||
gst_structure_set_value (s, "green_mask", val);
|
||||
if ((val = gst_structure_get_value (structure, "alpha_mask")))
|
||||
gst_structure_set_value (s, "alpha_mask", val);
|
||||
if ((val = gst_structure_get_value (structure, "depth")))
|
||||
gst_structure_set_value (s, "depth", val);
|
||||
if ((val = gst_structure_get_value (structure, "bpp")))
|
||||
gst_structure_set_value (s, "bpp", val);
|
||||
}
|
||||
c = gst_caps_new_full (s, NULL);
|
||||
|
||||
gst_video_info_init (&info);
|
||||
if (!gst_video_info_from_caps (&info, c)) {
|
||||
GST_ERROR_OBJECT (videoscale, "couldn't parse %" GST_PTR_FORMAT, c);
|
||||
supported = FALSE;
|
||||
} else if (!gst_video_scale_format_supported_for_method (info.finfo->format,
|
||||
method)) {
|
||||
supported = FALSE;
|
||||
|
|
Loading…
Reference in a new issue