[aravis] gst: bugfix for Bayer8 images under GStreamer 1.0



commit 13ef3962b829a03ece8839dcd115cc4760853a2d
Author: Steve McGuire <mcguire steve gmail com>
Date:   Mon Jul 28 14:28:45 2014 -0400

    gst: bugfix for Bayer8 images under GStreamer 1.0
    
    Enable use of x-raw-bayer formats in GStreamer
    1.0 with the aravissrc plugin. Without this fix, GStreamer will not
    negotiate a pipeline due to invalid pixel formats.

 src/arvmisc.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/arvmisc.c b/src/arvmisc.c
index 6531dbf..259e127 100644
--- a/src/arvmisc.c
+++ b/src/arvmisc.c
@@ -728,6 +728,10 @@ arv_pixel_format_from_gst_caps (const char *name, const char *format)
                if (strcmp (name, "video/x-raw") == 0 &&
                    strcmp (format, arv_gst_caps_infos[i].format) == 0)
                        return arv_gst_caps_infos[i].pixel_format;
+               
+               if (strcmp (name, "video/x-bayer") == 0 &&
+                   strcmp (format, arv_gst_caps_infos[i].format) == 0)
+                       return arv_gst_caps_infos[i].pixel_format;              
        }
 
        return 0;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]