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:
Marek Vasut 2023-05-20 16:01:13 +02:00
parent 484e31c1d9
commit ddcb45ffc0

View file

@ -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) {