niimaq: handle byte alignment during copying

Previously if the row stride wasn't a multiple of 4, display would not work
correctly. Rely on NI-IMAQ to fix the byte alignment for us. This hasn't
been thoroughly tested yet however.
This commit is contained in:
Joshua M. Doe
2012-06-29 04:42:44 -04:00
parent 865b416cd0
commit 9002eb1f70
2 changed files with 43 additions and 5 deletions

View File

@@ -24,6 +24,8 @@
#include <gst/gst.h>
#include <gst/base/gstpushsrc.h>
#include <gst/video/video.h>
#include <niimaq.h>
G_BEGIN_DECLS
@@ -47,7 +49,11 @@ typedef struct _GstNiImaqSrcClass GstNiImaqSrcClass;
struct _GstNiImaqSrc {
GstPushSrc element;
GstVideoFormat format;
int width;
int height;
gint framesize;
int rowpixels;
/* private */
gint64 timestamp_offset; /* base offset */