Skip to content

Commit

Permalink
opencl: Format OpenCL kernel code
Browse files Browse the repository at this point in the history
* Remove some empty lines to get a more uniform code
* Fix #endif handling at end of file

Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed Nov 25, 2016
1 parent 0020fbc commit 786b482
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions opencl/oclkernels.h
Expand Up @@ -1045,7 +1045,6 @@ KERNEL(
\n histResult[get_group_id(0)] = localHist[0];
\n
\n } // kernel_HistogramRectAllChannelsReduction_Grey

)

// ThresholdRectToPix Kernel
Expand Down Expand Up @@ -1174,10 +1173,8 @@ void kernel_ThresholdRectToPix_OneChan(
pix[w] = word;
}
}

)


KERNEL(
\n#define RED_SHIFT 24\n
\n#define GREEN_SHIFT 16\n
Expand Down Expand Up @@ -1209,10 +1206,9 @@ KERNEL(
dstData[pixelIdx] = output;
}
)
#endif

; // close char*

#endif // USE_EXTERNAL_KERNEL
//#endif //_OCL_KERNEL_H_
#endif //_OCL_KERNEL_H_
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

0 comments on commit 786b482

Please sign in to comment.