mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
bayer2rgb: Inline the j=0 value
The j variable is used as an iterator further down in this code, but here it can be just inlined in the macro parameters to make the code easier to read. This is done in preparation for further changes. No functional change. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4686>
This commit is contained in:
parent
484e31c1d9
commit
ddcb45ffc0
1 changed files with 2 additions and 3 deletions
|
@ -431,9 +431,8 @@ gst_bayer2rgb_process (GstBayer2RGB * bayer2rgb, uint8_t * dest,
|
||||||
|
|
||||||
gst_bayer2rgb_split_and_upsample_horiz (LINE (3 * 2 + 0), LINE (3 * 2 + 1),
|
gst_bayer2rgb_split_and_upsample_horiz (LINE (3 * 2 + 0), LINE (3 * 2 + 1),
|
||||||
src + 1 * src_stride, bayer2rgb->width);
|
src + 1 * src_stride, bayer2rgb->width);
|
||||||
j = 0;
|
gst_bayer2rgb_split_and_upsample_horiz (LINE (0 * 2 + 0), LINE (0 * 2 + 1),
|
||||||
gst_bayer2rgb_split_and_upsample_horiz (LINE (j * 2 + 0), LINE (j * 2 + 1),
|
src + 0 * src_stride, bayer2rgb->width);
|
||||||
src + j * src_stride, bayer2rgb->width);
|
|
||||||
|
|
||||||
for (j = 0; j < bayer2rgb->height; j++) {
|
for (j = 0; j < bayer2rgb->height; j++) {
|
||||||
if (j < bayer2rgb->height - 1) {
|
if (j < bayer2rgb->height - 1) {
|
||||||
|
|
Loading…
Reference in a new issue