mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-07 11:12:17 +00:00
ffmpegcolorspace: more minor cleanups
This commit is contained in:
parent
0d451ad9cb
commit
516c824687
1 changed files with 3 additions and 13 deletions
|
@ -69,15 +69,9 @@ gst_ffmpegcsp_caps_remove_format_info (GstCaps * caps)
|
||||||
structure = gst_caps_get_structure (caps, i);
|
structure = gst_caps_get_structure (caps, i);
|
||||||
|
|
||||||
gst_structure_set_name (structure, "video/x-raw-yuv");
|
gst_structure_set_name (structure, "video/x-raw-yuv");
|
||||||
gst_structure_remove_field (structure, "format");
|
gst_structure_remove_field (structure, "format", "endianness", "depth",
|
||||||
gst_structure_remove_field (structure, "endianness");
|
"bpp", "red_mask", "green_mask", "blue_mask", "alpha_mask",
|
||||||
gst_structure_remove_field (structure, "depth");
|
"palette_data", NULL);
|
||||||
gst_structure_remove_field (structure, "bpp");
|
|
||||||
gst_structure_remove_field (structure, "red_mask");
|
|
||||||
gst_structure_remove_field (structure, "green_mask");
|
|
||||||
gst_structure_remove_field (structure, "blue_mask");
|
|
||||||
gst_structure_remove_field (structure, "alpha_mask");
|
|
||||||
gst_structure_remove_field (structure, "palette_data");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
gst_caps_do_simplify (caps);
|
gst_caps_do_simplify (caps);
|
||||||
|
@ -135,13 +129,9 @@ gst_ffmpegcsp_transform_caps (GstBaseTransform * btrans,
|
||||||
GstCaps *tmp, *tmp2;
|
GstCaps *tmp, *tmp2;
|
||||||
GstCaps *result;
|
GstCaps *result;
|
||||||
guint i, n;
|
guint i, n;
|
||||||
gboolean is_alpha;
|
|
||||||
GstStructure *s;
|
GstStructure *s;
|
||||||
GstCaps *alpha, *non_alpha;
|
GstCaps *alpha, *non_alpha;
|
||||||
|
|
||||||
s = gst_caps_get_structure (caps, 0);
|
|
||||||
is_alpha = gst_ffmpegcsp_structure_is_alpha (s);
|
|
||||||
|
|
||||||
template = gst_pad_template_get_caps (srctempl);
|
template = gst_pad_template_get_caps (srctempl);
|
||||||
result = gst_caps_copy (caps);
|
result = gst_caps_copy (caps);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue