mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
swscale: Use 1.0-style video/x-raw caps
This commit is contained in:
parent
7e9fc24bc9
commit
597bf61ae7
1 changed files with 0 additions and 29 deletions
|
@ -246,44 +246,15 @@ gst_ffmpegscale_caps_remove_format_info (GstCaps * caps)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
GstStructure *structure;
|
GstStructure *structure;
|
||||||
GstCaps *rgbcaps;
|
|
||||||
GstCaps *graycaps;
|
|
||||||
|
|
||||||
caps = gst_caps_copy (caps);
|
caps = gst_caps_copy (caps);
|
||||||
|
|
||||||
for (i = 0; i < gst_caps_get_size (caps); i++) {
|
for (i = 0; i < gst_caps_get_size (caps); i++) {
|
||||||
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_remove_field (structure, "format");
|
gst_structure_remove_field (structure, "format");
|
||||||
gst_structure_remove_field (structure, "endianness");
|
|
||||||
gst_structure_remove_field (structure, "depth");
|
|
||||||
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");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
rgbcaps = gst_caps_copy (caps);
|
|
||||||
|
|
||||||
for (i = 0; i < gst_caps_get_size (rgbcaps); i++) {
|
|
||||||
structure = gst_caps_get_structure (rgbcaps, i);
|
|
||||||
|
|
||||||
gst_structure_set_name (structure, "video/x-raw-rgb");
|
|
||||||
}
|
|
||||||
graycaps = gst_caps_copy (caps);
|
|
||||||
|
|
||||||
for (i = 0; i < gst_caps_get_size (graycaps); i++) {
|
|
||||||
structure = gst_caps_get_structure (graycaps, i);
|
|
||||||
|
|
||||||
gst_structure_set_name (structure, "video/x-raw-gray");
|
|
||||||
}
|
|
||||||
|
|
||||||
gst_caps_append (caps, graycaps);
|
|
||||||
gst_caps_append (caps, rgbcaps);
|
|
||||||
|
|
||||||
return caps;
|
return caps;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue