@@ -131,6 +131,7 @@ __kernel void RGB2Gray(__global const uchar* srcptr, int srcstep, int srcoffset,
131
131
132
132
if (x < cols )
133
133
{
134
+ #pragma unroll
134
135
for (int cy = 0 ; cy < PIX_PER_WI_Y ; ++ cy )
135
136
{
136
137
if (y < rows )
@@ -158,6 +159,7 @@ __kernel void Gray2RGB(__global const uchar* srcptr, int srcstep, int srcoffset,
158
159
159
160
if (x < cols )
160
161
{
162
+ #pragma unroll
161
163
for (int cy = 0 ; cy < PIX_PER_WI_Y ; ++ cy )
162
164
{
163
165
if (y < rows )
@@ -189,6 +191,7 @@ __kernel void RGB2YUV(__global const uchar* srcptr, int srcstep, int srcoffset,
189
191
190
192
if (x < cols )
191
193
{
194
+ #pragma unroll
192
195
for (int cy = 0 ; cy < PIX_PER_WI_Y ; ++ cy )
193
196
{
194
197
if (y < rows )
@@ -232,6 +235,7 @@ __kernel void YUV2RGB(__global const uchar* srcptr, int srcstep, int srcoffset,
232
235
233
236
if (x < cols )
234
237
{
238
+ #pragma unroll
235
239
for (int cy = 0 ; cy < PIX_PER_WI_Y ; ++ cy )
236
240
{
237
241
if (y < rows )
@@ -281,6 +285,7 @@ __kernel void YUV2RGB_NV12(__global const uchar* srcptr, int srcstep, int srcoff
281
285
282
286
if (x < cols / 2 )
283
287
{
288
+ #pragma unroll
284
289
for (int cy = 0 ; cy < PIX_PER_WI_Y ; ++ cy )
285
290
{
286
291
if (y < rows / 2 )
@@ -353,6 +358,7 @@ __kernel void RGB2YCrCb(__global const uchar* srcptr, int srcstep, int srcoffset
353
358
354
359
if (x < cols )
355
360
{
361
+ #pragma unroll
356
362
for (int cy = 0 ; cy < PIX_PER_WI_Y ; ++ cy )
357
363
{
358
364
if (y < rows )
@@ -396,6 +402,7 @@ __kernel void YCrCb2RGB(__global const uchar* src, int src_step, int src_offset,
396
402
397
403
if (x < cols )
398
404
{
405
+ #pragma unroll
399
406
for (int cy = 0 ; cy < PIX_PER_WI_Y ; ++ cy )
400
407
{
401
408
if (y < rows )
@@ -443,6 +450,7 @@ __kernel void RGB2XYZ(__global const uchar * srcptr, int src_step, int src_offse
443
450
444
451
if (dx < cols )
445
452
{
453
+ #pragma unroll
446
454
for (int cy = 0 ; cy < PIX_PER_WI_Y ; ++ cy )
447
455
{
448
456
if (dy < rows )
@@ -483,6 +491,7 @@ __kernel void XYZ2RGB(__global const uchar * srcptr, int src_step, int src_offse
483
491
484
492
if (dx < cols )
485
493
{
494
+ #pragma unroll
486
495
for (int cy = 0 ; cy < PIX_PER_WI_Y ; ++ cy )
487
496
{
488
497
if (dy < rows )
@@ -528,6 +537,7 @@ __kernel void RGB(__global const uchar* srcptr, int src_step, int src_offset,
528
537
529
538
if (x < cols )
530
539
{
540
+ #pragma unroll
531
541
for (int cy = 0 ; cy < PIX_PER_WI_Y ; ++ cy )
532
542
{
533
543
if (y < rows )
@@ -573,6 +583,7 @@ __kernel void RGB5x52RGB(__global const uchar* src, int src_step, int src_offset
573
583
574
584
if (x < cols )
575
585
{
586
+ #pragma unroll
576
587
for (int cy = 0 ; cy < PIX_PER_WI_Y ; ++ cy )
577
588
{
578
589
if (y < rows )
@@ -613,6 +624,7 @@ __kernel void RGB2RGB5x5(__global const uchar* src, int src_step, int src_offset
613
624
614
625
if (x < cols )
615
626
{
627
+ #pragma unroll
616
628
for (int cy = 0 ; cy < PIX_PER_WI_Y ; ++ cy )
617
629
{
618
630
if (y < rows )
@@ -646,6 +658,7 @@ __kernel void BGR5x52Gray(__global const uchar* src, int src_step, int src_offse
646
658
647
659
if (x < cols )
648
660
{
661
+ #pragma unroll
649
662
for (int cy = 0 ; cy < PIX_PER_WI_Y ; ++ cy )
650
663
{
651
664
if (y < rows )
@@ -678,6 +691,7 @@ __kernel void Gray2BGR5x5(__global const uchar* src, int src_step, int src_offse
678
691
679
692
if (x < cols )
680
693
{
694
+ #pragma unroll
681
695
for (int cy = 0 ; cy < PIX_PER_WI_Y ; ++ cy )
682
696
{
683
697
if (y < rows )
@@ -719,6 +733,7 @@ __kernel void RGB2HSV(__global const uchar* src, int src_step, int src_offset,
719
733
720
734
if (x < cols )
721
735
{
736
+ #pragma unroll
722
737
for (int cy = 0 ; cy < PIX_PER_WI_Y ; ++ cy )
723
738
{
724
739
if (y < rows )
@@ -765,6 +780,7 @@ __kernel void HSV2RGB(__global const uchar* src, int src_step, int src_offset,
765
780
766
781
if (x < cols )
767
782
{
783
+ #pragma unroll
768
784
for (int cy = 0 ; cy < PIX_PER_WI_Y ; ++ cy )
769
785
{
770
786
if (y < rows )
@@ -828,6 +844,7 @@ __kernel void RGB2HSV(__global const uchar* srcptr, int src_step, int src_offset
828
844
829
845
if (x < cols )
830
846
{
847
+ #pragma unroll
831
848
for (int cy = 0 ; cy < PIX_PER_WI_Y ; ++ cy )
832
849
{
833
850
if (y < rows )
@@ -880,6 +897,7 @@ __kernel void HSV2RGB(__global const uchar* srcptr, int src_step, int src_offset
880
897
881
898
if (x < cols )
882
899
{
900
+ #pragma unroll
883
901
for (int cy = 0 ; cy < PIX_PER_WI_Y ; ++ cy )
884
902
{
885
903
if (y < rows )
@@ -950,6 +968,7 @@ __kernel void RGB2HLS(__global const uchar* src, int src_step, int src_offset,
950
968
951
969
if (x < cols )
952
970
{
971
+ #pragma unroll
953
972
for (int cy = 0 ; cy < PIX_PER_WI_Y ; ++ cy )
954
973
{
955
974
if (y < rows )
@@ -1004,6 +1023,7 @@ __kernel void HLS2RGB(__global const uchar* src, int src_step, int src_offset,
1004
1023
1005
1024
if (x < cols )
1006
1025
{
1026
+ #pragma unroll
1007
1027
for (int cy = 0 ; cy < PIX_PER_WI_Y ; ++ cy )
1008
1028
{
1009
1029
if (y < rows )
@@ -1066,6 +1086,7 @@ __kernel void RGB2HLS(__global const uchar* srcptr, int src_step, int src_offset
1066
1086
1067
1087
if (x < cols )
1068
1088
{
1089
+ #pragma unroll
1069
1090
for (int cy = 0 ; cy < PIX_PER_WI_Y ; ++ cy )
1070
1091
{
1071
1092
if (y < rows )
@@ -1123,6 +1144,7 @@ __kernel void HLS2RGB(__global const uchar* srcptr, int src_step, int src_offset
1123
1144
1124
1145
if (x < cols )
1125
1146
{
1147
+ #pragma unroll
1126
1148
for (int cy = 0 ; cy < PIX_PER_WI_Y ; ++ cy )
1127
1149
{
1128
1150
if (y < rows )
@@ -1193,6 +1215,7 @@ __kernel void RGBA2mRGBA(__global const uchar* src, int src_step, int src_offset
1193
1215
1194
1216
if (x < cols )
1195
1217
{
1218
+ #pragma unroll
1196
1219
for (int cy = 0 ; cy < PIX_PER_WI_Y ; ++ cy )
1197
1220
{
1198
1221
if (y < rows )
@@ -1223,6 +1246,7 @@ __kernel void mRGBA2RGBA(__global const uchar* src, int src_step, int src_offset
1223
1246
1224
1247
if (x < cols )
1225
1248
{
1249
+ #pragma unroll
1226
1250
for (int cy = 0 ; cy < PIX_PER_WI_Y ; ++ cy )
1227
1251
{
1228
1252
if (y < rows )
@@ -1275,6 +1299,7 @@ __kernel void BGR2Lab(__global const uchar * src, int src_step, int src_offset,
1275
1299
1276
1300
if (x < cols )
1277
1301
{
1302
+ #pragma unroll
1278
1303
for (int cy = 0 ; cy < PIX_PER_WI_Y ; ++ cy )
1279
1304
{
1280
1305
if (y < rows )
@@ -1322,6 +1347,7 @@ __kernel void BGR2Lab(__global const uchar * srcptr, int src_step, int src_offse
1322
1347
1323
1348
if (x < cols )
1324
1349
{
1350
+ #pragma unroll
1325
1351
for (int cy = 0 ; cy < PIX_PER_WI_Y ; ++ cy )
1326
1352
{
1327
1353
if (y < rows )
@@ -1430,6 +1456,7 @@ __kernel void Lab2BGR(__global const uchar * src, int src_step, int src_offset,
1430
1456
1431
1457
if (x < cols )
1432
1458
{
1459
+ #pragma unroll
1433
1460
for (int cy = 0 ; cy < PIX_PER_WI_Y ; ++ cy )
1434
1461
{
1435
1462
if (y < rows )
@@ -1478,6 +1505,7 @@ __kernel void Lab2BGR(__global const uchar * srcptr, int src_step, int src_offse
1478
1505
1479
1506
if (x < cols )
1480
1507
{
1508
+ #pragma unroll
1481
1509
for (int cy = 0 ; cy < PIX_PER_WI_Y ; ++ cy )
1482
1510
{
1483
1511
if (y < rows )
0 commit comments