aboutsummaryrefslogtreecommitdiff
path: root/src/core/CL/cl_kernels/channel_combine.cl
diff options
context:
space:
mode:
authorAnthony Barbier <anthony.barbier@arm.com>2017-07-03 17:39:37 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-09-17 14:15:39 +0100
commitac69aa137e360340fe9f148f019d93af6c3d8336 (patch)
tree88c2fb6ea8693c69b19d3b7b38fe26cd916303c8 /src/core/CL/cl_kernels/channel_combine.cl
parent05da6dd102c988081c7d5eccb227f559f740ceef (diff)
downloadComputeLibrary-ac69aa137e360340fe9f148f019d93af6c3d8336.tar.gz
COMPMID-418 Add check and fix comments after preprocessor conditions
Change-Id: I1353fd652ee180e3931e58b4ce13d651a48c7e2c Reviewed-on: http://mpd-gerrit.cambridge.arm.com/79567 Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com> Reviewed-by: Moritz Pflanzer <moritz.pflanzer@arm.com>
Diffstat (limited to 'src/core/CL/cl_kernels/channel_combine.cl')
-rw-r--r--src/core/CL/cl_kernels/channel_combine.cl12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/CL/cl_kernels/channel_combine.cl b/src/core/CL/cl_kernels/channel_combine.cl
index 93e80b925e..d309812221 100644
--- a/src/core/CL/cl_kernels/channel_combine.cl
+++ b/src/core/CL/cl_kernels/channel_combine.cl
@@ -337,11 +337,11 @@ __kernel void channel_combine_NV(
uchar8 data1 = vload8(0, src_plane1.ptr);
uchar8 data2 = vload8(0, src_plane2.ptr);
-#if defined NV12
+#ifdef NV12
vstore16(shuffle2(data1, data2, (uchar16)(0, 2, 4, 6, 8, 10, 12, 14, 1, 3, 5, 7, 9, 11, 13, 15)), 0, dst_plane1.ptr);
-#elif defined NV21
+#elif defined(NV21)
vstore16(shuffle2(data2, data1, (uchar16)(0, 2, 4, 6, 8, 10, 12, 14, 1, 3, 5, 7, 9, 11, 13, 15)), 0, dst_plane1.ptr);
-#endif
+#endif /* NV12 or NV21 */
}
/** This function combines three planes to a single YUV444 or IYUV image.
@@ -405,12 +405,12 @@ __kernel void copy_planes_3p(
// Copy plane data
vstore16(vload16(0, src_plane0.ptr), 0, dst_plane0.ptr);
-#if defined YUV444
+#ifdef YUV444
vstore16(vload16(0, src_plane1.ptr), 0, dst_plane1.ptr);
vstore16(vload16(0, src_plane2.ptr), 0, dst_plane2.ptr);
-#elif defined IYUV
+#elif defined(IYUV)
vstore16(vload16(0, offset(&src_plane0, 0, height)), 0, (__global uchar *)offset(&dst_plane0, 0, height));
vstore8(vload8(0, src_plane1.ptr), 0, dst_plane1.ptr);
vstore8(vload8(0, src_plane2.ptr), 0, dst_plane2.ptr);
-#endif
+#endif /* YUV444 or IYUV */
}