bayer: fix stride inconsistencies for odd widths
authorTim-Philipp Müller <tim@centricular.com>
Fri, 8 Jan 2016 21:41:56 +0000 (21:41 +0000)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 1 Nov 2016 17:35:47 +0000 (19:35 +0200)
commitd42177c89ead8690d48b48067a2d6e994cfcc508
treeada6ea6ce902568b0e1c76b5afcf0c50995008fb
parent9e6f39fdc7ba7923dc0e13bb843ef16500142e96
bayer: fix stride inconsistencies for odd widths

Consistently use GST_ROUND_UP_4(width) as stride for
bayer buffers. Bayer data will usually come in widths
that are multiples of 4 anyway, so hopefully this
should not have any adverse impact on anyone in
practice.

Before, bayer2rgb required input buffers to are sized
accordingly, but then didn't actually round up when
calculating row offsets. rgb2bayer didn't use a rounded
stride nor buffer size.

https://bugzilla.gnome.org/show_bug.cgi?id=752014
gst/bayer/gstbayer2rgb.c
gst/bayer/gstrgb2bayer.c