Home
last modified time | relevance | path

Searched refs:ncvAssertReturn (Results 1 – 24 of 24) sorted by relevance

/external/opencv3/modules/cudalegacy/test/
DTestHaarCascadeApplication.cpp119 ncvAssertReturn(ncvStat == NCV_SUCCESS, false); in process()
122 ncvAssertReturn(h_HaarStages.isMemAllocated(), false); in process()
124 ncvAssertReturn(h_HaarNodes.isMemAllocated(), false); in process()
126 ncvAssertReturn(h_HaarFeatures.isMemAllocated(), false); in process()
129 ncvAssertReturn(d_HaarStages.isMemAllocated(), false); in process()
131 ncvAssertReturn(d_HaarNodes.isMemAllocated(), false); in process()
133 ncvAssertReturn(d_HaarFeatures.isMemAllocated(), false); in process()
147 ncvAssertReturn(ncvStat == NCV_SUCCESS, false); in process()
149 ncvAssertReturn(NCV_SUCCESS == h_HaarStages.copySolid(d_HaarStages, 0), false); in process()
150 ncvAssertReturn(NCV_SUCCESS == h_HaarNodes.copySolid(d_HaarNodes, 0), false); in process()
[all …]
DTestRectStdDev.cpp99 ncvAssertReturn(d_img.isMemAllocated(), false); in process()
101 ncvAssertReturn(h_img.isMemAllocated(), false); in process()
104 ncvAssertReturn(d_imgII.isMemAllocated(), false); in process()
106 ncvAssertReturn(h_imgII.isMemAllocated(), false); in process()
109 ncvAssertReturn(d_imgSII.isMemAllocated(), false); in process()
111 ncvAssertReturn(h_imgSII.isMemAllocated(), false); in process()
114 ncvAssertReturn(d_norm.isMemAllocated(), false); in process()
116 ncvAssertReturn(h_norm.isMemAllocated(), false); in process()
118 ncvAssertReturn(h_norm_d.isMemAllocated(), false); in process()
122 ncvAssertReturn(NPPST_SUCCESS == ncvStat, false); in process()
[all …]
DTestCompact.cpp78 ncvAssertReturn(h_vecSrc.isMemAllocated(), false); in process()
80 ncvAssertReturn(d_vecSrc.isMemAllocated(), false); in process()
83 ncvAssertReturn(h_vecDst.isMemAllocated(), false); in process()
85 ncvAssertReturn(d_vecDst.isMemAllocated(), false); in process()
87 ncvAssertReturn(h_vecDst_d.isMemAllocated(), false); in process()
91 ncvAssertReturn(this->src.fill(h_vecSrc), false); in process() local
104 ncvAssertReturn(h_dstLen.isMemAllocated(), false); in process()
107 ncvAssertReturn(NPPST_SUCCESS == ncvStat, false); in process()
109 ncvAssertReturn(d_tmpBuf.isMemAllocated(), false); in process()
115 ncvAssertReturn(ncvStat == NPPST_SUCCESS, false); in process()
[all …]
DTestHypothesesGrow.cpp88 ncvAssertReturn(h_vecSrc.isMemAllocated(), false); in process()
90 ncvAssertReturn(d_vecSrc.isMemAllocated(), false); in process()
93 ncvAssertReturn(h_vecDst.isMemAllocated(), false); in process()
95 ncvAssertReturn(d_vecDst.isMemAllocated(), false); in process()
97 ncvAssertReturn(h_vecDst_d.isMemAllocated(), false); in process()
102 ncvAssertReturn(this->src.fill(h_vecSrc), false); in process() local
105 ncvAssertReturn(h_vecDst_as32u.isMemReused(), false); in process()
106 ncvAssertReturn(this->src.fill(h_vecDst_as32u), false); in process()
111 ncvAssertReturn(ncvStat == NCV_SUCCESS, false); in process()
113 ncvAssertReturn(ncvStat == NCV_SUCCESS, false); in process()
[all …]
DTestIntegralImage.cpp86 ncvAssertReturn(d_img.isMemAllocated(), false); in process()
88 ncvAssertReturn(h_img.isMemAllocated(), false); in process()
90 ncvAssertReturn(d_imgII.isMemAllocated(), false); in process()
92 ncvAssertReturn(h_imgII.isMemAllocated(), false); in process()
94 ncvAssertReturn(h_imgII_d.isMemAllocated(), false); in process()
100 ncvAssertReturn(NPPST_SUCCESS == ncvStat, false); in process()
105 ncvAssertReturn(NPPST_SUCCESS == ncvStat, false); in process()
113 ncvAssertReturn(d_tmpBuf.isMemAllocated(), false); in process()
118 ncvAssertReturn(this->src.fill(h_img), false); in process() local
121 ncvAssertReturn(ncvStat == NPPST_SUCCESS, false); in process()
[all …]
DTestIntegralImageSquared.cpp80 ncvAssertReturn(d_img.isMemAllocated(), false); in process()
82 ncvAssertReturn(h_img.isMemAllocated(), false); in process()
84 ncvAssertReturn(d_imgSII.isMemAllocated(), false); in process()
86 ncvAssertReturn(h_imgSII.isMemAllocated(), false); in process()
88 ncvAssertReturn(h_imgSII_d.isMemAllocated(), false); in process()
92 ncvAssertReturn(NPPST_SUCCESS == ncvStat, false); in process()
94 ncvAssertReturn(d_tmpBuf.isMemAllocated(), false); in process()
99 ncvAssertReturn(this->src.fill(h_img), false); in process() local
102 ncvAssertReturn(ncvStat == NPPST_SUCCESS, false); in process()
108 ncvAssertReturn(ncvStat == NPPST_SUCCESS, false); in process()
[all …]
DTestHaarCascadeLoader.cpp76 ncvAssertReturn(ncvStat == NCV_SUCCESS, false); in process()
79 ncvAssertReturn(h_HaarStages.isMemAllocated(), false); in process()
81 ncvAssertReturn(h_HaarNodes.isMemAllocated(), false); in process()
83 ncvAssertReturn(h_HaarFeatures.isMemAllocated(), false); in process()
86 ncvAssertReturn(h_HaarStages_2.isMemAllocated(), false); in process()
88 ncvAssertReturn(h_HaarNodes_2.isMemAllocated(), false); in process()
90 ncvAssertReturn(h_HaarFeatures_2.isMemAllocated(), false); in process()
100 ncvAssertReturn(ncvStat == NCV_SUCCESS, false); in process()
103 ncvAssertReturn(ncvStat == NCV_SUCCESS, false); in process()
106 ncvAssertReturn(ncvStat == NCV_SUCCESS, false); in process()
[all …]
DTestDrawRects.cpp88 ncvAssertReturn(d_img.isMemAllocated(), false); in process()
90 ncvAssertReturn(h_img.isMemAllocated(), false); in process()
92 ncvAssertReturn(h_img_d.isMemAllocated(), false); in process()
95 ncvAssertReturn(d_rects.isMemAllocated(), false); in process()
97 ncvAssertReturn(h_rects.isMemAllocated(), false); in process()
101 ncvAssertReturn(this->src.fill(h_img), false); in process() local
103 ncvAssertReturn(ncvStat == NCV_SUCCESS, false); in process()
108 ncvAssertReturn(h_rects_as32u.isMemReused(), false); in process()
109 ncvAssertReturn(this->src32u.fill(h_rects_as32u), false); in process()
118 ncvAssertReturn(ncvStat == NCV_SUCCESS, false); in process()
[all …]
DTestTranspose.cpp83 ncvAssertReturn(d_img.isMemAllocated(), false); in process()
85 ncvAssertReturn(h_img.isMemAllocated(), false); in process()
88 ncvAssertReturn(d_dst.isMemAllocated(), false); in process()
90 ncvAssertReturn(h_dst.isMemAllocated(), false); in process()
92 ncvAssertReturn(h_dst_d.isMemAllocated(), false); in process()
96 ncvAssertReturn(this->src.fill(h_img), false); in process() local
100 ncvAssertReturn(ncvStat == NPPST_SUCCESS, false); in process()
118 ncvAssertReturn(ncvStat == NPPST_SUCCESS, false); in process()
121 ncvAssertReturn(ncvStat == NPPST_SUCCESS, false); in process()
140 ncvAssertReturn(ncvStat == NPPST_SUCCESS, false); in process()
DTestResize.cpp94 ncvAssertReturn(d_img.isMemAllocated(), false); in process()
96 ncvAssertReturn(h_img.isMemAllocated(), false); in process()
99 ncvAssertReturn(d_small.isMemAllocated(), false); in process()
101 ncvAssertReturn(h_small.isMemAllocated(), false); in process()
103 ncvAssertReturn(h_small_d.isMemAllocated(), false); in process()
107 ncvAssertReturn(this->src.fill(h_img), false); in process() local
111 ncvAssertReturn(ncvStat == NPPST_SUCCESS, false); in process()
131 ncvAssertReturn(ncvStat == NPPST_SUCCESS, false); in process()
134 ncvAssertReturn(ncvStat == NPPST_SUCCESS, false); in process()
153 ncvAssertReturn(ncvStat == NPPST_SUCCESS, false); in process()
DTestHypothesesFilter.cpp97 ncvAssertReturn(h_random32u.isMemAllocated(), false); in process()
102 ncvAssertReturn(h_vecSrc.isMemAllocated(), false); in process()
104 ncvAssertReturn(h_vecDst_groundTruth.isMemAllocated(), false); in process()
109 ncvAssertReturn(this->src.fill(h_random32u), false); in process() local
168 ncvAssertReturn(ncvStat == NCV_SUCCESS, false); in process()
DNCVTestSourceProvider.hpp120 ncvAssertReturn(this->isInit() && in fill()
151 ncvAssertReturn(this->isInit() && in fill()
/external/opencv3/modules/cudalegacy/src/cuda/
DNPP_staging.cu372 ncvAssertReturn(sizeof(T_out) == sizeof(Ncv32u), NPPST_MEM_INTERNAL_ERROR); in ncvIntegralImage_device()
373 ncvAssertReturn(gpuAllocator.memType() == NCVMemoryTypeDevice || in ncvIntegralImage_device()
375 ncvAssertReturn(gpuAllocator.isInitialized(), NPPST_MEM_INTERNAL_ERROR); in ncvIntegralImage_device()
376ncvAssertReturn((d_src != NULL && d_dst != NULL) || gpuAllocator.isCounting(), NPPST_NULL_POINTER_… in ncvIntegralImage_device()
377 ncvAssertReturn(roi.width > 0 && roi.height > 0, NPPST_INVALID_ROI); in ncvIntegralImage_device()
378 ncvAssertReturn(srcStep >= roi.width * sizeof(T_in) && in ncvIntegralImage_device()
391ncvAssertReturn(gpuAllocator.isCounting() || Tmp32_1.isMemAllocated(), NPPST_MEM_INTERNAL_ERROR); in ncvIntegralImage_device()
393ncvAssertReturn(gpuAllocator.isCounting() || Tmp32_2.isMemAllocated(), NPPST_MEM_INTERNAL_ERROR); in ncvIntegralImage_device()
394ncvAssertReturn(Tmp32_1.pitch() * Tmp32_1.height() == Tmp32_2.pitch() * Tmp32_2.height(), NPPST_ME… in ncvIntegralImage_device()
429 ncvAssertReturn(gpuAllocator.isInitialized(), NPPST_MEM_INTERNAL_ERROR); in ncvSquaredIntegralImage_device()
[all …]
DNCVHaarObjectDetection.cu975 ncvAssertReturn(integral.memType() == d_weights.memType()&& in ncvApplyHaarClassifierCascade_device()
981 ncvAssertReturn(d_HaarStages.memType() == d_HaarNodes.memType() && in ncvApplyHaarClassifierCascade_device()
986 ncvAssertReturn(h_HaarStages.memType() != NCVMemoryTypeDevice, NCV_MEM_RESIDENCE_ERROR); in ncvApplyHaarClassifierCascade_device()
988ncvAssertReturn(gpuAllocator.isInitialized() && cpuAllocator.isInitialized(), NCV_ALLOCATOR_NOT_IN… in ncvApplyHaarClassifierCascade_device()
990ncvAssertReturn((integral.ptr() != NULL && d_weights.ptr() != NULL && d_pixelMask.ptr() != NULL && in ncvApplyHaarClassifierCascade_device()
994 ncvAssertReturn(anchorsRoi.width > 0 && anchorsRoi.height > 0 && in ncvApplyHaarClassifierCascade_device()
1000 ncvAssertReturn(scaleArea > 0, NCV_INVALID_SCALE); in ncvApplyHaarClassifierCascade_device()
1002 ncvAssertReturn(d_HaarStages.length() >= haar.NumStages && in ncvApplyHaarClassifierCascade_device()
1008ncvAssertReturn(haar.bNeedsTiltedII == false || gpuAllocator.isCounting(), NCV_NOIMPL_HAAR_TILTED_… in ncvApplyHaarClassifierCascade_device()
1010 ncvAssertReturn(pixelStep == 1 || pixelStep == 2, NCV_HAAR_INVALID_PIXEL_STEP); in ncvApplyHaarClassifierCascade_device()
[all …]
DNCV.cu131 ncvAssertReturn(d_dst != NULL && d_rects != NULL, NCV_NULL_PTR); in drawRectsWrapperDevice()
132 ncvAssertReturn(dstWidth > 0 && dstHeight > 0, NCV_DIMENSIONS_INVALID); in drawRectsWrapperDevice()
133 ncvAssertReturn(dstStride >= dstWidth, NCV_INVALID_STEP); in drawRectsWrapperDevice()
134 ncvAssertReturn(numRects <= dstWidth * dstHeight, NCV_DIMENSIONS_INVALID); in drawRectsWrapperDevice()
DNCVColorConversion.hpp81 ncvAssertReturn(h_imgIn.size() == h_imgOut.size(), NCV_DIMENSIONS_INVALID);
82 ncvAssertReturn(h_imgIn.memType() == h_imgOut.memType() &&
DNCVBroxOpticalFlow.cu730 ncvAssertReturn(uOut.width() == kSourceWidth && vOut.width() == kSourceWidth && in NCVBroxOpticalFlow()
733 ncvAssertReturn(gpu_mem_allocator.isInitialized(), NCV_ALLOCATOR_NOT_INITIALIZED); in NCVBroxOpticalFlow()
759 ncvAssertReturn(name.isMemAllocated(), NCV_ALLOCATOR_BAD_ALLOC); in NCVBroxOpticalFlow()
820 ncvAssertReturn(pI0->isMemAllocated(), NCV_ALLOCATOR_BAD_ALLOC); in NCVBroxOpticalFlow()
823 ncvAssertReturn(pI1->isMemAllocated(), NCV_ALLOCATOR_BAD_ALLOC); in NCVBroxOpticalFlow()
866 ncvAssertReturn(level_frame0->isMemAllocated(), NCV_ALLOCATOR_BAD_ALLOC); in NCVBroxOpticalFlow()
869 ncvAssertReturn(level_frame1->isMemAllocated(), NCV_ALLOCATOR_BAD_ALLOC); in NCVBroxOpticalFlow()
DNCVPyramid.cu484 ncvAssertReturn(this->isInitialized(), NCV_UNKNOWN_ERROR);
485 ncvAssertReturn(outImg.memType() == this->layer0->memType(), NCV_MEM_RESIDENCE_ERROR);
486ncvAssertReturn(outRoi.width <= this->layer0->width() && outRoi.height <= this->layer0->height() &&
538 ncvAssertReturn(bUse2Refs == false, NCV_NOT_IMPLEMENTED);
/external/opencv3/modules/cudalegacy/src/
DNCV.cpp424 ncvAssertReturn(isInitialized(), NCV_ALLOCATOR_BAD_ALLOC); in alloc()
433 ncvAssertReturn(size <= availSize, NCV_ALLOCATOR_INSUFFICIENT_CAPACITY); in alloc()
447 ncvAssertReturn(isInitialized(), NCV_ALLOCATOR_BAD_ALLOC); in dealloc()
448 ncvAssertReturn(seg.begin.memtype == this->_memType, NCV_ALLOCATOR_BAD_DEALLOC); in dealloc()
449 ncvAssertReturn(seg.begin.ptr != NULL || isCounting(), NCV_ALLOCATOR_BAD_DEALLOC); in dealloc()
450 ncvAssertReturn(seg.begin.ptr == begin - seg.size, NCV_ALLOCATOR_DEALLOC_ORDER); in dealloc()
457 ncvAssertReturn(allocBegin <= begin, NCV_ALLOCATOR_BAD_DEALLOC); in dealloc()
519 ncvAssertReturn(isInitialized(), NCV_ALLOCATOR_BAD_ALLOC); in alloc()
547 ncvAssertReturn(isInitialized(), NCV_ALLOCATOR_BAD_ALLOC); in dealloc()
548 ncvAssertReturn(seg.begin.memtype == this->_memType, NCV_ALLOCATOR_BAD_DEALLOC); in dealloc()
[all …]
/external/opencv3/modules/cudalegacy/include/opencv2/cudalegacy/
DNCV.hpp275 #define ncvAssertReturn(pred, err) \ macro
590 ncvAssertReturn(dst._length == this->_length, NCV_MEM_COPY_ERROR); in copySolid()
595 ncvAssertReturn(dst._length * sizeof(T) >= howMuch && in copySolid()
599 ncvAssertReturn((this->_ptr != NULL || this->_memtype == NCVMemoryTypeNone) && in copySolid()
770 ncvAssertReturn(dst._pitch == this->_pitch && in copySolid()
776 ncvAssertReturn(dst._pitch * dst._height >= howMuch && in copySolid()
780 ncvAssertReturn((this->_ptr != NULL || this->_memtype == NCVMemoryTypeNone) && in copySolid()
796 ncvAssertReturn(this->width() >= roi.width && this->height() >= roi.height && in copy2D()
798 ncvAssertReturn((this->_ptr != NULL || this->_memtype == NCVMemoryTypeNone) && in copy2D()
1028 ncvAssertReturn(name.isMemAllocated(), err);
DNCVHaarObjectDetection.hpp86ncvAssertReturn(rectWidth <= HaarFeature64_CreateCheck_MaxRectField && rectHeight <= HaarFeature64… in setRect()
/external/opencv3/samples/gpu/
Dcascadeclassifier_nvidia_api.cpp96 ncvAssertReturn(!((srcdst == NULL) ^ gpuAllocator.isCounting()), NCV_NULL_PTR); in process()
103 ncvAssertReturn(d_src.isMemAllocated(), NCV_ALLOCATOR_BAD_ALLOC); in process()
105 ncvAssertReturn(h_src.isMemAllocated(), NCV_ALLOCATOR_BAD_ALLOC); in process()
107 ncvAssertReturn(d_rects.isMemAllocated(), NCV_ALLOCATOR_BAD_ALLOC); in process()
Dopticalflow_nvidia_api.cpp89 ncvAssertReturn (dst->isMemAllocated (), NCV_ALLOCATOR_BAD_ALLOC); in CopyData()
192 ncvAssertReturn(host_u.isMemAllocated(), NCV_ALLOCATOR_BAD_ALLOC); in ShowFlow()
195 ncvAssertReturn (host_v.isMemAllocated (), NCV_ALLOCATOR_BAD_ALLOC); in ShowFlow()
430 ncvAssertReturn(src->isMemAllocated(), -1); in main()
433 ncvAssertReturn (dst->isMemAllocated (), -1); in main()
443 ncvAssertReturn(name.isMemAllocated(), -1); in main()
/external/opencv3/modules/cudaobjdetect/src/
Dcascadeclassifier.cpp291 ncvAssertReturn(d_src.isMemAllocated(), NCV_ALLOCATOR_BAD_ALLOC); in calculateMemReqsAndAllocate()
292 ncvAssertReturn(h_src.isMemAllocated(), NCV_ALLOCATOR_BAD_ALLOC); in calculateMemReqsAndAllocate()
295 ncvAssertReturn(d_rects.isMemAllocated(), NCV_ALLOCATOR_BAD_ALLOC); in calculateMemReqsAndAllocate()
330 ncvAssertReturn(d_src.isMemReused(), NCV_ALLOCATOR_BAD_REUSE); in process()
342 ncvAssertReturn(d_rects.isMemReused(), NCV_ALLOCATOR_BAD_REUSE); in process()