/external/valgrind/none/tests/arm/ |
D | v6intThumb.c | 339 #define NOCARRY { int cv = 0; { 340 #define TESTCARRY { int cv = 0; for (cv = 0; cv < 4; cv++) { 408 TESTINST2("movs r0, r1", 1, r0, r1, cv); in old_main() 409 TESTINST2("movs r0, r1", 0, r0, r1, cv); in old_main() 410 TESTINST2("movs r0, r1", 0x80000000, r0, r1, cv); in old_main() 411 TESTINST2("movs r0, #0", 0, r0, r1, cv); in old_main() 412 TESTINST2("movs r0, #1", 0, r0, r1, cv); in old_main() 418 TESTINST2("mvns r0, r1", 1, r0, r1, cv); in old_main() 419 TESTINST2("mvns r0, r1", 0, r0, r1, cv); in old_main() 420 TESTINST2("mvns r0, r1", 0x80000000, r0, r1, cv); in old_main() [all …]
|
/external/libxcam/modules/ocl/ |
D | cv_edgetaper.cpp | 34 CVEdgetaper::create_weights (const cv::Mat &image, const cv::Mat &psf, cv::Mat &coefficients) in create_weights() 36 cv::Mat rows_proj, cols_proj; in create_weights() 37 cv::Mat rows_proj_border, cols_proj_border; in create_weights() 38 cv::Mat rows_cor, cols_cor; in create_weights() 40 cv::reduce (psf, rows_proj, 1, CV_REDUCE_SUM, -1); in create_weights() 41 cv::reduce (psf, cols_proj, 0, CV_REDUCE_SUM, -1); in create_weights() 43 …cv::copyMakeBorder (rows_proj, rows_proj_border, (psf.rows - 1) / 2, (psf.rows - 1) / 2, 0, 0, cv:… in create_weights() 44 …cv::copyMakeBorder (cols_proj, cols_proj_border, 0, 0, (psf.cols - 1) / 2, (psf.cols - 1) / 2, cv… in create_weights() 45 cv::matchTemplate (rows_proj_border, rows_proj, rows_cor, CV_TM_CCORR); in create_weights() 46 cv::matchTemplate (cols_proj_border, cols_proj, cols_cor, CV_TM_CCORR); in create_weights() [all …]
|
D | cv_feature_match.cpp | 45 const SmartPtr<VideoBuffer> &buffer, const Rect &crop_rect, cv::UMat &img) in get_crop_image() 51 cv::UMat umat; in get_crop_image() 52 cv::ocl::convertFromBuffer (cl_mem_id, info.strides[0], info.height, info.width, CV_8U, umat); in get_crop_image() 58 img = umat (cv::Rect(crop_rect.pos_x, crop_rect.pos_y, crop_rect.width, crop_rect.height)); in get_crop_image() 65 cv::InputArray image, cv::Ptr<cv::Feature2D> detector, std::vector<cv::Point2f> &corners) in add_detected_data() 67 std::vector<cv::KeyPoint> keypoints; in add_detected_data() 71 cv::KeyPoint &kp = keypoints[i]; in add_detected_data() 78 std::vector<cv::Point2f> &corner0, std::vector<cv::Point2f> &corner1, in get_valid_offsets() 81 cv::InputOutputArray debug_img, cv::Size &img0_size) in get_valid_offsets() 90 cv::Point start = cv::Point(corner0[i]) * XCAM_CV_OF_DRAW_SCALE; in get_valid_offsets() [all …]
|
D | cv_image_process_helper.cpp | 33 cv::Mat 34 CVImageProcessHelper::erosion (const cv::Mat &image, int erosion_size, int erosion_type) in erosion() 36 cv::Mat element = cv::getStructuringElement (erosion_type, in erosion() 37 cv::Size (2 * erosion_size + 1, 2 * erosion_size + 1), in erosion() 38 cv::Point (erosion_size, erosion_size)); in erosion() 39 cv::Mat eroded; in erosion() 40 cv::erode (image, eroded, element); in erosion() 45 CVImageProcessHelper::get_snr (const cv::Mat &noisy, const cv::Mat &noiseless) in get_snr() 47 cv::Mat temp_noisy, temp_noiseless; in get_snr() 50 cv::Mat numerator, denominator; in get_snr() [all …]
|
D | cv_wiener_filter.cpp | 34 CVWienerFilter::wiener_filter (const cv::Mat &blurred_image, const cv::Mat &known, cv::Mat &unknown… in wiener_filter() 38 cv::Mat y_ft; in wiener_filter() 41 cv::Mat padded = cv::Mat::zeros (image_h, image_w, CV_32FC1); in wiener_filter() 44 cv::copyMakeBorder (known, padded, 0, pady, 0, padx, cv::BORDER_CONSTANT, cv::Scalar::all(0)); in wiener_filter() 45 cv::Mat padded_ft; in wiener_filter() 48 cv::Mat temp_unknown; in wiener_filter() 49 cv::Mat unknown_ft[2]; in wiener_filter() 50 unknown_ft[0] = cv::Mat::zeros (image_h, image_w, CV_32FC1); in wiener_filter() 51 unknown_ft[1] = cv::Mat::zeros (image_h, image_w, CV_32FC1); in wiener_filter() 53 cv::Mat denominator; in wiener_filter() [all …]
|
D | cv_image_deblurring.cpp | 49 CVImageDeblurring::crop_border (cv::Mat &thresholded) in crop_border() 110 thresholded = thresholded (cv::Rect(left, top, right - left, bottom - top)); in crop_border() 114 CVImageDeblurring::estimate_kernel_size (const cv::Mat &image) in estimate_kernel_size() 117 cv::Mat thresholded; in estimate_kernel_size() 118 cv::Mat dst; in estimate_kernel_size() 119 cv::Laplacian (image, dst, -1, 3, 1, 0, cv::BORDER_CONSTANT); in estimate_kernel_size() 121 cv::filter2D (dst, thresholded, -1, dst, cv::Point(-1, -1), 0, cv::BORDER_CONSTANT); in estimate_kernel_size() 125 cv::Mat thresholded_new; in estimate_kernel_size() 128 cv::minMaxLoc (thresholded, &min_val, &max_val); in estimate_kernel_size() 129 cv::threshold (thresholded, thresholded, round(max_val / 3.5), 255, cv::THRESH_BINARY); in estimate_kernel_size() [all …]
|
D | cv_image_sharp.cpp | 33 cv::Mat 34 CVImageSharp::sharp_image_gray (const cv::Mat &image, float sigmar) in sharp_image_gray() 36 cv::Mat temp_image; in sharp_image_gray() 38 cv::Mat bilateral_image; in sharp_image_gray() 39 cv::bilateralFilter (temp_image, bilateral_image, 5, sigmar, 2); in sharp_image_gray() 41 cv::Mat sharp_filter = (cv::Mat_<float>(3, 3) << -1, -1, -1, -1, 8, -1, -1, -1, -1); in sharp_image_gray() 42 cv::Mat filtered_image; in sharp_image_gray() 43 cv::filter2D (bilateral_image, filtered_image, -1, sharp_filter); in sharp_image_gray() 44 cv::normalize (filtered_image, filtered_image, 0, 255.0f, cv::NORM_MINMAX); in sharp_image_gray() 45 cv::Mat sharpened = temp_image + filtered_image; in sharp_image_gray() [all …]
|
D | cv_feature_match.h | 56 bool get_crop_image (const SmartPtr<VideoBuffer> &buffer, const Rect &crop_rect, cv::UMat &img); 58 …void add_detected_data (cv::InputArray image, cv::Ptr<cv::Feature2D> detector, std::vector<cv::Poi… 59 void get_valid_offsets (std::vector<cv::Point2f> &corner0, std::vector<cv::Point2f> &corner1, 62 cv::InputOutputArray debug_img, cv::Size &img0_size); 64 void calc_of_match (cv::InputArray image0, cv::InputArray image1, 65 std::vector<cv::Point2f> &corner0, std::vector<cv::Point2f> &corner1, 69 …void detect_and_match (cv::InputArray img_left, cv::InputArray img_right, Rect &crop_left, Rect &c…
|
D | cv_image_process_helper.h | 38 void compute_dft (const cv::Mat &image, cv::Mat &result); 39 void compute_idft (cv::Mat *input, cv::Mat &result); 40 …void apply_constraints (cv::Mat &image, float threshold_min_value = 0.0f, float threshold_max_valu… 41 float get_snr (const cv::Mat &noisy, const cv::Mat &noiseless); 42 cv::Mat erosion (const cv::Mat &image, int erosion_size, int erosion_type); 43 void normalize_weights (cv::Mat &weights);
|
/external/python/cpython3/Python/ |
D | condvar.h | 212 PyCOND_INIT(PyCOND_T *cv) in PyCOND_INIT() argument 218 cv->sem = CreateSemaphore(NULL, 0, 100000, NULL); in PyCOND_INIT() 219 if (cv->sem==NULL) in PyCOND_INIT() 221 cv->waiting = 0; in PyCOND_INIT() 226 PyCOND_FINI(PyCOND_T *cv) in PyCOND_FINI() argument 228 return CloseHandle(cv->sem) ? 0 : -1; in PyCOND_FINI() 235 _PyCOND_WAIT_MS(PyCOND_T *cv, PyMUTEX_T *cs, DWORD ms) in _PyCOND_WAIT_MS() argument 238 cv->waiting++; in _PyCOND_WAIT_MS() 244 wait = WaitForSingleObjectEx(cv->sem, ms, FALSE); in _PyCOND_WAIT_MS() 247 --cv->waiting; in _PyCOND_WAIT_MS() [all …]
|
/external/libxcam/plugins/smart/dvs/libdvs/ |
D | stabilizer.h | 31 class OnePassVideoStabilizer : public cv::videostab::OnePassStabilizer 36 virtual cv::Mat nextStabilizedMotion(DvsData* frame, int& stablizedPos); 39 virtual cv::Mat estimateMotion(); 40 virtual void setUpFrame(const cv::Mat &firstFrame); 46 class TwoPassVideoStabilizer : public cv::videostab::TwoPassStabilizer 51 virtual cv::Mat nextStabilizedMotion(DvsData* frame, int& stablizedPos); 54 virtual cv::Mat estimateMotion(); 55 virtual void setUpFrame(const cv::Mat &firstFrame); 70 cv::Ptr<cv::videostab::StabilizerBase> stabilizer() const { in stabilizer() 74 cv::Mat nextFrame(); [all …]
|
/external/python/cpython2/Lib/ |
D | _osx_support.py | 120 def _save_modified_value(_config_vars, cv, newvalue): argument 123 oldvalue = _config_vars.get(cv, '') 124 if (oldvalue != newvalue) and (_INITPRE + cv not in _config_vars): 125 _config_vars[_INITPRE + cv] = oldvalue 126 _config_vars[cv] = newvalue 197 for cv in _COMPILER_CONFIG_VARS: 198 if cv in _config_vars and cv not in os.environ: 199 cv_split = _config_vars[cv].split() 200 cv_split[0] = cc if cv != 'CXX' else cc + '++' 201 _save_modified_value(_config_vars, cv, ' '.join(cv_split)) [all …]
|
/external/python/cpython3/Lib/ |
D | _osx_support.py | 120 def _save_modified_value(_config_vars, cv, newvalue): argument 123 oldvalue = _config_vars.get(cv, '') 124 if (oldvalue != newvalue) and (_INITPRE + cv not in _config_vars): 125 _config_vars[_INITPRE + cv] = oldvalue 126 _config_vars[cv] = newvalue 197 for cv in _COMPILER_CONFIG_VARS: 198 if cv in _config_vars and cv not in os.environ: 199 cv_split = _config_vars[cv].split() 200 cv_split[0] = cc if cv != 'CXX' else cc + '++' 201 _save_modified_value(_config_vars, cv, ' '.join(cv_split)) [all …]
|
/external/libxcam/tests/ |
D | test-image-deblurring.cpp | 50 blind_deblurring (cv::Mat &input_image, cv::Mat &output_image) in blind_deblurring() 53 cv::Mat kernel; in blind_deblurring() 58 non_blind_deblurring (cv::Mat &input_image, cv::Mat &output_image) in non_blind_deblurring() 61 cv::cvtColor (input_image, input_image, CV_BGR2GRAY); in non_blind_deblurring() 64 cv::Mat kernel = cv::Mat::zeros (kernel_size, kernel_size, CV_32FC1); in non_blind_deblurring() 71 cv::Mat conv_kernel; in non_blind_deblurring() 72 cv::flip (kernel, conv_kernel, -1); in non_blind_deblurring() 73 cv::Mat blurred; in non_blind_deblurring() 74 …cv::filter2D (input_image, blurred, CV_32FC1, conv_kernel, cv::Point(-1, -1), 0, cv::BORDER_CONSTA… in non_blind_deblurring() 76 cv::Mat median_blurred; in non_blind_deblurring() [all …]
|
D | test-image-stitching.cpp | 462 cv::VideoWriter writer; in main() 463 cv::VideoWriter top_view_writer; in main() 464 cv::VideoWriter rectified_view_writer; in main() 466 cv::Size dst_size = cv::Size (output_width, output_height); in main() 472 dst_size = cv::Size (top_view_width, top_view_height); in main() 478 dst_size = cv::Size (rectified_view_width, rectified_view_height); in main() 532 cv::Mat out_mat; in main() 537 cv::Mat top_view_mat; in main() 542 cv::Mat rectified_view_mat; in main() 571 cv::Mat mat; in dbg_write_image() [all …]
|
/external/libxcam/modules/soft/ |
D | cv_capi_feature_match.cpp | 103 cv::Mat mat = cv::cvarrToMat (image); in get_valid_offsets() 104 cv::Point start = cv::Point (corner0[i].x, corner0[i].y); in get_valid_offsets() 105 cv::circle (mat, start, 2, cv::Scalar(255), 2); in get_valid_offsets() 120 …cv::line (mat, start, cv::Point(corner1[i].x + img0_size.width, corner1[i].y), cv::Scalar(255), 2); in get_valid_offsets() 148 cv::Mat mat; in calc_of_match() 151 cv::cvarrToMat(image0, true).copyTo (mat (cv::Rect(0, 0, img0_size.width, img0_size.height))); in calc_of_match() 152 …cv::cvarrToMat(image1, true).copyTo (mat (cv::Rect(img0_size.width, 0, img1_size.width, img1_size.… in calc_of_match() 162 cv::imwrite (file_name, mat); in calc_of_match() 266 cv::Scalar color = cv::Scalar(0, 0, 255); in debug_write_image() 269 cv::Mat mat; in debug_write_image() [all …]
|
/external/annotation-tools/asmx/src/org/objectweb/asm/ |
D | ClassAdapter.java | 44 protected ClassVisitor cv; field in ClassAdapter 51 public ClassAdapter(final ClassVisitor cv) { in ClassAdapter() argument 52 this.cv = cv; in ClassAdapter() 63 cv.visit(version, access, name, signature, superName, interfaces); in visit() 67 cv.visitSource(source, debug); in visitSource() 75 cv.visitOuterClass(owner, name, desc); in visitOuterClass() 82 return cv.visitAnnotation(desc, visible); in visitAnnotation() 90 return cv.visitTypeAnnotation(desc, visible, inCode); in visitTypeAnnotation() 95 cv.visitAttribute(attr); in visitAttribute() 104 cv.visitInnerClass(name, outerName, innerName, access); in visitInnerClass() [all …]
|
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/internal/flow/ |
D | ClassProbesAdapterTest.java | 76 final MockClassVisitor cv = new MockClassVisitor(); in testProbeCounter() local 77 final ClassProbesAdapter adapter = new ClassProbesAdapter(cv, false); in testProbeCounter() 82 assertEquals(3, cv.count); in testProbeCounter() 87 final MockClassVisitor cv = new MockClassVisitor() { in testVisitClassMethods() local 94 final ClassProbesAdapter adapter = new ClassProbesAdapter(cv, false); in testVisitClassMethods() 100 assertEquals(0, cv.count); in testVisitClassMethods() 102 assertEquals(3, cv.count); in testVisitClassMethods() 107 final MockClassVisitor cv = new MockClassVisitor(); in testVisitMethodNullMethodVisitor() local 108 final ClassProbesAdapter adapter = new ClassProbesAdapter(cv, false); in testVisitMethodNullMethodVisitor() 114 assertEquals(10, cv.count); in testVisitMethodNullMethodVisitor() [all …]
|
/external/annotation-tools/asmx/src/org/objectweb/asm/util/ |
D | TraceClassVisitor.java | 103 protected final ClassVisitor cv; field in TraceClassVisitor 170 public TraceClassVisitor(final ClassVisitor cv, final PrintWriter pw) { in TraceClassVisitor() argument 171 this.cv = cv; in TraceClassVisitor() 241 if (cv != null) { in visit() 242 cv.visit(version, access, name, signature, superName, interfaces); in visit() 264 if (cv != null) { in visitSource() 265 cv.visitSource(file, debug); in visitSource() 287 if (cv != null) { in visitOuterClass() 288 cv.visitOuterClass(owner, name, desc); in visitOuterClass() 298 if (cv != null) { in visitAnnotation() [all …]
|
/external/annotation-tools/asmx/test/conform/org/objectweb/asm/util/ |
D | UnitTest.java | 48 ClassVisitor cv = new CheckClassAdapter(new EmptyVisitor()); in testCheckClassVisitor() local 50 cv.visit(V1_1, 1 << 20, "C", null, "java/lang/Object", null); in testCheckClassVisitor() 55 cv = new CheckClassAdapter(new EmptyVisitor()); in testCheckClassVisitor() 57 cv.visit(V1_1, ACC_PUBLIC, "java/lang/Object", null, "java/lang/Object", null); in testCheckClassVisitor() 62 cv = new CheckClassAdapter(new EmptyVisitor()); in testCheckClassVisitor() 64 cv.visit(V1_1, ACC_INTERFACE, "I", null, "C", null); in testCheckClassVisitor() 69 cv = new CheckClassAdapter(new EmptyVisitor()); in testCheckClassVisitor() 71 cv.visit(V1_1, ACC_FINAL+ACC_ABSTRACT, "C", null, "java/lang/Object", null); in testCheckClassVisitor() 76 cv = new CheckClassAdapter(new EmptyVisitor()); in testCheckClassVisitor() 78 cv.visitSource(null, null); in testCheckClassVisitor() [all …]
|
/external/libcxx/test/std/utilities/any/any.nonmembers/any.cast/ |
D | any_cast_pointer.pass.cpp | 121 Type const* cv = any_cast<Type const>(&a); in test_cast() local 122 assert(cv != nullptr); in test_cast() 123 assert(cv == v); in test_cast() 124 assert(cv->value == 999); in test_cast() 127 cv = any_cast<Type>(&ca); in test_cast() 128 assert(cv != nullptr); in test_cast() 129 assert(cv == v); in test_cast() 130 assert(cv->value == 999); in test_cast() 133 cv = any_cast<Type const>(&ca); in test_cast() 134 assert(cv != nullptr); in test_cast() [all …]
|
/external/libcxx/test/std/thread/thread.condition/thread.condition.condvarany/ |
D | wait_terminates.sh.cpp | 102 std::condition_variable_any cv; variable 107 cv.notify_one(); in signal_me() 124 case 1: cv.wait(mut); break; in main() 125 case 2: cv.wait(mut, pred_function); break; in main() 126 case 3: cv.wait_for(mut, wait); break; in main() 127 case 4: cv.wait_for(mut, wait, pred_function); break; in main() 128 case 5: cv.wait_until(mut, Clock::now() + wait); break; in main() 129 case 6: cv.wait_until(mut, Clock::now() + wait, pred_function); break; in main()
|
D | destructor.pass.cpp | 23 std::condition_variable_any* cv; variable 33 cv->notify_one(); in f() 34 delete cv; in f() 42 cv->notify_one(); in g() 44 cv->wait(m); in g() 50 cv = new std::condition_variable_any; in main() 54 cv->wait(m); in main()
|
/external/libcxx/test/std/thread/thread.condition/thread.condition.condvar/ |
D | destructor.pass.cpp | 23 std::condition_variable* cv; variable 34 cv->notify_one(); in f() 35 delete cv; in f() 42 cv->notify_one(); in g() 44 cv->wait(lk); in g() 49 cv = new std::condition_variable; in main() 53 cv->wait(lk); in main()
|
/external/valgrind/helgrind/tests/ |
D | tc23_bogus_condwait.c | 11 pthread_cond_t cv; pthread_rwlock_t rwl; variable 20 pthread_cond_signal( &cv ); in rescue_me() 24 pthread_cond_signal( &cv ); in rescue_me() 28 pthread_cond_signal( &cv ); in rescue_me() 32 pthread_cond_signal( &cv ); in rescue_me() 56 r= pthread_cond_init(&cv, NULL); assert(!r); in main() 69 r= pthread_cond_wait(&cv, (pthread_mutex_t*)(4 + (char*)&mx[0]) ); in main() 72 r= pthread_cond_wait(&cv, &mx[3]); in main() 75 r= pthread_cond_wait(&cv, (pthread_mutex_t*)&rwl ); in main() 78 r= pthread_cond_wait(&cv, &mx[2] ); in main()
|