mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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:
parent
23fc5e31b0
commit
16fb11cf33
1 changed files with 3 additions and 3 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue