/external/opencv3/modules/core/src/opencl/ |
D | reduce.cl | 85 #ifndef kercn 86 #define kercn 1 98 #if kercn == 1 206 #if kercn == 1 211 #elif kercn == 2 217 #elif kercn == 4 225 #elif kercn == 8 237 #elif kercn == 16 262 #if kercn == 1 270 #elif kercn == 2 [all …]
|
D | minmaxloc.cl | 54 #if kercn != 3 125 * kercn; 174 * kercn 210 #if kercn == 1 236 #elif kercn >= 2 239 #if kercn >= 3 241 #if kercn >= 4 243 #if kercn >= 8 248 #if kercn == 16
|
D | inrange.cl | 67 int src1_index = mad24(y0, src1_step, mad24(x, (int)sizeof(srcT1) * kercn, src1_offset)); 70 int src2_index = mad24(y0, src2_step, mad24(x, (int)sizeof(srcT1) * kercn, src2_offset)); 71 int src3_index = mad24(y0, src3_step, mad24(x, (int)sizeof(srcT1) * kercn, src3_offset)); 76 #if kercn >= cn && kercn == 4 && depth <= 4 && !defined HAVE_SCALAR 116 #endif // kercn >= cn
|
D | set_identity.cl | 46 #if kercn != 3 66 #if kercn == cn 71 #elif kercn == 4 && cn == 1 94 #error "Incorrect combination of cn && kercn"
|
D | flip.cl | 42 #if kercn != 3 103 #if kercn == 2 108 #elif kercn == 4 149 #if kercn == 2 154 #elif kercn == 4
|
D | fft.cl | 538 const int block_size = LOCAL_SIZE/kercn; 553 for (int i=0; i<kercn; i++) 558 for (int i=0; i<kercn; i++) 624 const int block_size = LOCAL_SIZE/kercn; 628 for (int i=0; i<kercn; i++) 638 for (int i=0; i<kercn; i++) 678 const int block_size = LOCAL_SIZE/kercn; 694 for (int i=0; i<kercn; i++) 750 for (int i=0; i<kercn; i++) 758 for (int i=0; i<kercn; i++) [all …]
|
D | gemm.cl | 26 #if kercn==2
|
/external/opencv3/modules/imgproc/src/opencl/ |
D | histogram.cl | 40 #ifndef kercn 41 #define kercn 1 54 int id = get_global_id(0) * kercn; 67 for (int grain = HISTS_COUNT * WGS * kercn; id < total; id += grain) 75 #if kercn == 1 77 #elif kercn == 4 83 #elif kercn >= 2 87 #if kercn >= 4 90 #if kercn >= 8 95 #if kercn == 16
|
D | pyr_down.cl | 82 #if kercn == 4 110 #if kercn == 4 134 const int x = get_global_id(0)*kercn; 152 #if kercn == 1 184 #if kercn == 1 216 #if kercn == 1
|
/external/opencv3/modules/features2d/src/opencl/ |
D | brute_force_match.cl | 65 # define SHARED_MEM_SZ (kercn * (BLOCK_SIZE * MAX_DESC_LEN + BLOCK_SIZE * BLOCK_SIZE)) 67 # define SHARED_MEM_SZ (kercn * 2 * BLOCK_SIZE_ODD * BLOCK_SIZE) 79 # if (8 == kercn) 82 # elif (4 == kercn) 91 # if (8 == kercn) 94 # elif (4 == kercn) 105 # if (8 == kercn) 108 # elif (4 == kercn) 117 # if (8 == kercn) 119 # elif (4 == kercn) [all …]
|
/external/opencv3/modules/core/src/ |
D | umatrix.cpp | 779 int kercn = haveMask || cn == 3 ? cn : std::max(cn, ocl::predictOptimalVectorWidth(*this)), in setTo() local 780 kertp = CV_MAKE_TYPE(d, kercn); in setTo() 784 convertAndUnrollScalar(value, tp, (uchar *)buf, kercn / cn); in setTo() 786 … int scalarcn = kercn == 3 ? 4 : kercn, rowsPerWI = ocl::Device::getDefault().isIntel() ? 4 : 1; in setTo() 790 ocl::memopTypeToStr(d), kercn); in setTo() 808 ocl::KernelArg dstarg = ocl::KernelArg::WriteOnly(*this, cn, kercn); in setTo() 812 size_t globalsize[] = { cols * cn / kercn, (rows + rowsPerWI - 1) / rowsPerWI }; in setTo() 860 kercn = ocl::predictOptimalVectorWidth(src1, src2); in ocl_dot() local 879 ocl::typeToStr(CV_MAKE_TYPE(depth, kercn)), ocl::typeToStr(depth), in ocl_dot() 880 ocl::typeToStr(ddepth), ocl::typeToStr(CV_MAKE_TYPE(ddepth, kercn)), in ocl_dot() [all …]
|
D | copy.cpp | 680 flipType, kercn = std::min(ocl::predictOptimalVectorWidth(_src, _dst), 4); in ocl_flip() local 684 kercn = cn; in ocl_flip() 698 kercn = (cn!=3 || flipType == FLIP_ROWS) ? std::max(kercn, cn) : cn; in ocl_flip() 702 …kercn != cn ? ocl::typeToStr(CV_MAKE_TYPE(depth, kercn)) : ocl::vecopTypeToStr(CV_MAKE_TYPE(depth,… in ocl_flip() 703 … kercn != cn ? ocl::typeToStr(depth) : ocl::vecopTypeToStr(depth), cn, pxPerWIy, kercn)); in ocl_flip() 711 int cols = size.width * cn / kercn, rows = size.height; in ocl_flip() 716 ocl::KernelArg::WriteOnly(dst, cn, kercn), rows, cols); in ocl_flip() 850 kercn = ocl::predictOptimalVectorWidth(_src, _dst); in ocl_repeat() local 854 ocl::memopTypeToStr(CV_MAKE_TYPE(depth, kercn)), in ocl_repeat() 855 nx, ny, rowsPerWI, kercn)); in ocl_repeat() [all …]
|
D | arithm.cpp | 1452 int kercn = haveMask || haveScalar ? cn : ocl::predictOptimalVectorWidth(_src1, _src2, _dst); in ocl_binary_op() local 1453 int scalarcn = kercn == 3 ? 4 : kercn; in ocl_binary_op() 1458 bitwise ? ocl::memopTypeToStr(CV_MAKETYPE(srcdepth, kercn)) : in ocl_binary_op() 1459 … ocl::typeToStr(CV_MAKETYPE(srcdepth, kercn)), doubleSupport ? " -D DOUBLE_SUPPORT" : "", in ocl_binary_op() 1464 kercn, rowsPerWI); in ocl_binary_op() 1473 ocl::KernelArg src1arg = ocl::KernelArg::ReadOnlyNoSize(src1, cn, kercn); in ocl_binary_op() 1474 ocl::KernelArg dstarg = haveMask ? ocl::KernelArg::ReadWrite(dst, cn, kercn) : in ocl_binary_op() 1475 ocl::KernelArg::WriteOnly(dst, cn, kercn); in ocl_binary_op() 1499 ocl::KernelArg src2arg = ocl::KernelArg::ReadOnlyNoSize(src2, cn, kercn); in ocl_binary_op() 1507 size_t globalsize[] = { src1.cols * cn / kercn, (src1.rows + rowsPerWI - 1) / rowsPerWI }; in ocl_binary_op() [all …]
|
D | matmul.cpp | 838 int kercn = ocl::checkOptimalVectorWidth(vectorWidths, B, D); in ocl_gemm() local 841 … ocl::typeToStr(type), ocl::typeToStr(depth), ocl::typeToStr(CV_MAKETYPE(depth, kercn)), in ocl_gemm() 842 cn, kercn, block_size, in ocl_gemm() 853 ocl::KernelArg::ReadOnlyNoSize(B, cn, kercn), in ocl_gemm() 854 ocl::KernelArg::ReadWrite(D, cn, kercn), in ocl_gemm() 858 ocl::KernelArg::ReadOnlyNoSize(B, cn, kercn), in ocl_gemm() 859 ocl::KernelArg::ReadWrite(D, cn, kercn), in ocl_gemm() 862 size_t globalsize[2] = { sizeD.width * cn / kercn, sizeD.height}; in ocl_gemm() 2279 int kercn = ocl::predictOptimalVectorWidthMax(_src1, _src2, _dst), in ocl_scaleAdd() local 2287 ocl::typeToStr(CV_MAKE_TYPE(depth, kercn)), in ocl_scaleAdd() [all …]
|
D | stat.cpp | 1058 kercn = cn == 1 && !haveMask ? ocl::predictOptimalVectorWidth(_src, _src2) : 1, in ocl_sum() local 1059 mcn = std::max(cn, kercn); in ocl_sum() 1090 haveMask && _mask.isContinuous() ? " -D HAVE_MASK_CONT" : "", kercn, in ocl_sum() 1256 … int type = _src.type(), depth = CV_MAT_DEPTH(type), kercn = ocl::predictOptimalVectorWidth(_src); in ocl_countNonZero() local 1273 ocl::typeToStr(CV_MAKE_TYPE(depth, kercn)), in ocl_countNonZero() 1274 ocl::typeToStr(depth), (int)wgs, kercn, in ocl_countNonZero() 2061 kercn = haveMask ? cn : std::min(4, ocl::predictOptimalVectorWidth(_src, _src2)); in ocl_minMaxIdx() local 2107 ocl::typeToStr(CV_MAKE_TYPE(depth, kercn)), wgs2_aligned, in ocl_minMaxIdx() 2110 _mask.isContinuous() ? " -D HAVE_MASK_CONT" : "", kercn, in ocl_minMaxIdx() 2113 ocl::typeToStr(ddepth), ocl::typeToStr(CV_MAKE_TYPE(ddepth, kercn)), in ocl_minMaxIdx() [all …]
|
D | convert.cpp | 5490 int kercn = 1; in ocl_convertScaleAbs() local 5494 kercn = ocl::checkOptimalVectorWidth( vectorWidths, _src, _dst, in ocl_convertScaleAbs() 5500 kercn = ocl::predictOptimalVectorWidthMax(_src, _dst); in ocl_convertScaleAbs() 5508 ocl::typeToStr(CV_8UC(kercn)), in ocl_convertScaleAbs() 5509 ocl::typeToStr(CV_MAKE_TYPE(depth, kercn)), in ocl_convertScaleAbs() 5510 ocl::typeToStr(CV_MAKE_TYPE(wdepth, kercn)), wdepth, in ocl_convertScaleAbs() 5511 ocl::convertTypeStr(depth, wdepth, kercn, cvt[0]), in ocl_convertScaleAbs() 5512 ocl::convertTypeStr(wdepth, CV_8U, kercn, cvt[1]), in ocl_convertScaleAbs() 5523 dstarg = ocl::KernelArg::WriteOnly(dst, cn, kercn); in ocl_convertScaleAbs() 5530 size_t globalsize[2] = { src.cols * cn / kercn, (src.rows + rowsPerWI - 1) / rowsPerWI }; in ocl_convertScaleAbs() [all …]
|
D | mathfuncs.cpp | 67 int kercn = oclop == OCL_OP_PHASE_DEGREES || in ocl_math_op() local 78 oclop2str[oclop], ocl::typeToStr(CV_MAKE_TYPE(depth, kercn)), rowsPerWI, in ocl_math_op() 89 dstarg = ocl::KernelArg::WriteOnly(dst, cn, kercn); in ocl_math_op() 96 size_t globalsize[] = { src1.cols * cn / kercn, (src1.rows + rowsPerWI - 1) / rowsPerWI }; in ocl_math_op()
|
D | matrix.cpp | 2812 … int type = _m.type(), depth = CV_MAT_DEPTH(type), cn = CV_MAT_CN(type), kercn = cn, rowsPerWI = 1; in ocl_setIdentity() local 2819 kercn = std::min(ocl::predictOptimalVectorWidth(_m), 4); in ocl_setIdentity() 2820 if (kercn != 4) in ocl_setIdentity() 2821 kercn = 1; in ocl_setIdentity() 2827 ocl::memopTypeToStr(CV_MAKE_TYPE(depth, kercn)), in ocl_setIdentity() 2830 kercn, rowsPerWI)); in ocl_setIdentity() 2835 k.args(ocl::KernelArg::WriteOnly(m, cn, kercn), in ocl_setIdentity() 2838 size_t globalsize[2] = { m.cols * cn / kercn, (m.rows + rowsPerWI - 1) / rowsPerWI }; in ocl_setIdentity()
|
D | ocl.cpp | 5495 int kercn = *std::min_element(kercns.begin(), kercns.end()); in checkOptimalVectorWidth() local 5497 return kercn; in checkOptimalVectorWidth()
|
/external/opencv3/modules/features2d/src/ |
D | matchers.cpp | 78 int kercn = 1; in ocl_matchSingle() local 82 kercn = 4; in ocl_matchSingle() 88 max_desc_len = 64 / kercn; in ocl_matchSingle() 90 max_desc_len = 128 / kercn; in ocl_matchSingle() 95 …ocl::typeToStr(depth), ocl::typeToStr(CV_MAKETYPE(depth, kercn)), kercn, depth == CV_32F ? "-D T_F… in ocl_matchSingle() 178 int kercn = 1; in ocl_knnMatchSingle() local 182 kercn = 4; in ocl_knnMatchSingle() 188 max_desc_len = 64 / kercn; in ocl_knnMatchSingle() 190 max_desc_len = 128 / kercn; in ocl_knnMatchSingle() 195 …ocl::typeToStr(depth), ocl::typeToStr(CV_MAKETYPE(depth, kercn)), kercn, depth == CV_32F ? "-D T_F… in ocl_knnMatchSingle() [all …]
|
/external/opencv3/modules/imgproc/src/ |
D | deriv.cpp | 759 int wdepth = std::max(depth, floatCoeff ? CV_32F : CV_32S), kercn = 1; in ocl_Laplacian5() local 769 ocl::typeToStr(CV_MAKE_TYPE(depth, kercn)), in ocl_Laplacian5() 770 ocl::typeToStr(CV_MAKE_TYPE(wdepth, kercn)), in ocl_Laplacian5() 771 ocl::typeToStr(CV_MAKE_TYPE(ddepth, kercn)), in ocl_Laplacian5() 773 ocl::convertTypeStr(depth, wdepth, kercn, cvt[0]), in ocl_Laplacian5() 774 ocl::convertTypeStr(wdepth, ddepth, kercn, cvt[1]), in ocl_Laplacian5() 787 dstarg = ocl::KernelArg::WriteOnly(dst, cn, kercn); in ocl_Laplacian5() 794 size_t globalsize[] = { dst.cols * cn / kercn, dst.rows }; in ocl_Laplacian5()
|
D | thresh.cpp | 1142 kercn = ocl::predictOptimalVectorWidth(_src, _dst), ktype = CV_MAKE_TYPE(depth, kercn); in ocl_threshold() local 1172 k.args(ocl::KernelArg::ReadOnlyNoSize(src), ocl::KernelArg::WriteOnly(dst, cn, kercn), in ocl_threshold() 1177 size_t globalsize[2] = { dst.cols * cn / kercn, dst.rows }; in ocl_threshold()
|
D | pyramids.cpp | 1089 int kercn = 1; in ocl_pyrDown() local 1091 kercn = 4; in ocl_pyrDown() 1102 cn, kercn, float_depth, borderMap[borderType], local_size in ocl_pyrDown() 1110 size_t localThreads[2] = { local_size/kercn, 1 }; in ocl_pyrDown() 1111 size_t globalThreads[2] = { (src.cols + (kercn-1))/kercn, (dst.rows + 1) / 2 }; in ocl_pyrDown()
|
D | accum.cpp | 799 …int kercn = haveMask ? cn : ocl::predictOptimalVectorWidthMax(_src, _src2, _dst), rowsPerWI = dev.… in ocl_accumulate() local 811 ocl::typeToStr(sdepth), kercn, ocl::typeToStr(ddepth), in ocl_accumulate() 821 dstarg = ocl::KernelArg::ReadWrite(dst, cn, kercn), in ocl_accumulate() 838 size_t globalsize[2] = { src.cols * cn / kercn, (src.rows + rowsPerWI - 1) / rowsPerWI }; in ocl_accumulate()
|
D | histogram.cpp | 1490 int kercn = dev.isAMD() && use16 ? 16 : std::min(4, ocl::predictOptimalVectorWidth(_src)); in ocl_calcHist1() local 1494 BINS, compunits, wgs, kercn, in ocl_calcHist1() 1495 kercn == 4 ? "int" : ocl::typeToStr(CV_8UC(kercn)), in ocl_calcHist1() 3582 int kercn = dev.isAMD() && use16 ? 16 : std::min(4, ocl::predictOptimalVectorWidth(_src)); in ocl_equalizeHist() local 3586 BINS, compunits, wgs, kercn, in ocl_equalizeHist() 3587 kercn == 4 ? "int" : ocl::typeToStr(CV_8UC(kercn)), in ocl_equalizeHist()
|