pleorasrc: fix handling of strides that aren't 32-bit aligned

For example, a Mono8 642x482 would have failed to work, as GStreamer
expects the stride to be a multiple of 4-bytes, that is 644 bytes in
this example, while Pleora doesn't do this alignment. This incurs a copy
unfortunately, and there might be a way with memory meta to avoid this,
however eventually most elements will need to have the data 4-byte
aligned.
This commit is contained in:
Joshua M. Doe
2019-08-29 14:56:18 -04:00
parent 64866758a2
commit e364cfe4d5
2 changed files with 36 additions and 11 deletions

View File

@@ -62,7 +62,7 @@ struct _GstPleoraSrc
GstCaps *caps;
gint height;
gint gst_stride;
gint bf_stride;
gint pleora_stride;
gboolean stop_requested;
};