matroxsrc: add support for Bayer, including option to treat as gray or demosaic

This commit is contained in:
Joshua M. Doe
2017-05-16 10:18:52 -04:00
parent 5b46c95699
commit 23f67133f7
2 changed files with 150 additions and 67 deletions

View File

@@ -35,6 +35,12 @@ G_BEGIN_DECLS
typedef struct _GstMatroxSrc GstMatroxSrc;
typedef struct _GstMatroxSrcClass GstMatroxSrcClass;
typedef enum {
GST_MATROX_BAYER_MODE_BAYER,
GST_MATROX_BAYER_MODE_GRAY,
GST_MATROX_BAYER_MODE_RGB
} GstMatroxBayerModeEnum;
struct _GstMatroxSrc
{
GstPushSrc base_matroxsrc;
@@ -54,16 +60,15 @@ struct _GstMatroxSrc
gchar *format;
guint num_capture_buffers;
gint timeout;
GstMatroxBayerModeEnum bayer_mode;
GstBuffer *buffer;
GstClockTime acq_start_time;
GstCaps *caps;
gint width;
gint height;
gint bpp;
gint gst_stride;
MIL_INT color_mode;
MIL_INT mil_type;
GstVideoFormat video_format;
GMutex mutex;