mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 13:25:56 +00:00
glcolorconvert: support RGB16/BGR16 video format download
https://bugzilla.gnome.org/show_bug.cgi?id=740801
This commit is contained in:
parent
a7ce611970
commit
15c0d5c21b
1 changed files with 6 additions and 0 deletions
|
@ -656,6 +656,12 @@ _RGB_pixel_order (const gchar * expected, const gchar * wanted)
|
|||
g_free (temp);
|
||||
}
|
||||
|
||||
if (strcmp (want, "rgb16") == 0 || strcmp (want, "bgr16") == 0) {
|
||||
gchar *temp = want;
|
||||
want = g_strndup (temp, 3);
|
||||
g_free (temp);
|
||||
}
|
||||
|
||||
/* pad want with 'a's */
|
||||
if ((len = strlen (want)) < 4) {
|
||||
gchar *new_want = g_strndup (want, 4);
|
||||
|
|
Loading…
Reference in a new issue