mirror of
https://github.com/opencv/opencv.git
synced 2025-08-06 14:36:36 +08:00
Merge pull request #10366 from alalek:ocl_fix_cvtcolor_read
This commit is contained in:
commit
047ad4ff71
@ -877,7 +877,11 @@ __kernel void RGB(__global const uchar* srcptr, int src_step, int src_offset,
|
||||
{
|
||||
__global const DATA_TYPE * src = (__global const DATA_TYPE *)(srcptr + src_index);
|
||||
__global DATA_TYPE * dst = (__global DATA_TYPE *)(dstptr + dst_index);
|
||||
#if scn == 3
|
||||
DATA_TYPE_3 src_pix = vload3(0, src);
|
||||
#else
|
||||
DATA_TYPE_4 src_pix = vload4(0, src);
|
||||
#endif
|
||||
|
||||
#ifdef REVERSE
|
||||
dst[0] = src_pix.z;
|
||||
|
Loading…
Reference in New Issue
Block a user