summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Schmidt <jan@centricular.com>2016-08-12 22:16:33 +1000
committerJan Schmidt <jan@centricular.com>2016-08-16 01:39:00 +1000
commitccf80a46485e805e72cf7eee97ba4f8944765cca (patch)
tree2c146ab21b9675189e71167d09cc4701f6ba59f8
parentc1ea8f2dfe94eab87aea3ace7a5994d04089360e (diff)
downloadgstreamer-plugins-bad-ccf80a46485e805e72cf7eee97ba4f8944765cca.tar.gz
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
-rw-r--r--sys/winks/ksvideohelpers.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/winks/ksvideohelpers.c b/sys/winks/ksvideohelpers.c
index 9d7046178..20da75bfe 100644
--- a/sys/winks/ksvideohelpers.c
+++ b/sys/winks/ksvideohelpers.c
@@ -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)) {