winks: Fix swapped RGBx/RGB caps mapping, and endianness.

The RGBx and RGB format mappings were reversed.

What Windows calls RGB are laid out as BGR in our parlance, so
switch that too
This commit is contained in:
Jan Schmidt 2016-08-12 22:16:33 +10:00
parent 23fc5e31b0
commit 16fb11cf33

View file

@ -142,14 +142,14 @@ ks_video_format_to_structure (GUID subtype_guid, GUID format_guid)
media_type = "video/x-raw";
format = "RGB16";
} else if (IsEqualGUID (&subtype_guid, &MEDIASUBTYPE_RGB24)) {
format = "BGR";
media_type = "video/x-raw";
format = "RGBx";
} else if (IsEqualGUID (&subtype_guid, &MEDIASUBTYPE_RGB32)) {
media_type = "video/x-raw";
format = "RGB";
format = "BGRx";
} else if (IsEqualGUID (&subtype_guid, &MEDIASUBTYPE_ARGB32)) {
media_type = "video/x-raw";
format = "ARGB";
format = "BGRA";
} else if (IsEqualGUID (&subtype_guid, &MEDIASUBTYPE_ARGB1555)) {
GST_WARNING ("Unsupported video format ARGB15555");
} else if (IsEqualGUID (&subtype_guid, &MEDIASUBTYPE_ARGB4444)) {