Home
last modified time | relevance | path

Searched refs:cv (Results 1 – 25 of 586) sorted by relevance

12345678910>>...24

/third_party/gstreamer/gstplugins_bad/ext/opencv/
Dgstskindetect.cpp127 GstBuffer * buf, cv::Mat img, GstBuffer * outbuf, cv::Mat outimg);
240 cv::Size size = cv::Size (in_width, in_height); in gst_skin_detect_set_caps()
300 cv::Mat img, GstBuffer * outbuf, cv::Mat outimg) in gst_skin_detect_transform()
304 std::vector < cv::Mat > channels (3); in gst_skin_detect_transform()
305 filter->cvRGB = cv::Mat (img); in gst_skin_detect_transform()
309 cv::cvtColor (filter->cvRGB, filter->cvHSV, cv::COLOR_RGB2HSV); in gst_skin_detect_transform()
310 cv::split (filter->cvHSV, channels); in gst_skin_detect_transform()
317cv::threshold (filter->cvH, filter->cvH2, 10, UCHAR_MAX, cv::THRESH_BINARY); /* (hue > 10) … in gst_skin_detect_transform()
318cv::threshold (filter->cvH, filter->cvH, 20, UCHAR_MAX, cv::THRESH_BINARY_INV); /* (hue < 20) … in gst_skin_detect_transform()
319 cv::threshold (filter->cvS, filter->cvS, 48, UCHAR_MAX, cv::THRESH_BINARY); /* (sat > 48) */ in gst_skin_detect_transform()
[all …]
Dgstcameracalibrate.cpp176 GstBuffer * frame, cv::Mat img);
321 calib->flags = cv::CALIB_FIX_K4 | cv::CALIB_FIX_K5; in gst_camera_calibrate_init()
323 calib->flags |= cv::CALIB_FIX_PRINCIPAL_POINT; in gst_camera_calibrate_init()
325 calib->flags |= cv::CALIB_ZERO_TANGENT_DIST; in gst_camera_calibrate_init()
327 calib->flags |= cv::CALIB_FIX_ASPECT_RATIO; in gst_camera_calibrate_init()
332 cv::fisheye::CALIB_FIX_SKEW | cv::fisheye::CALIB_RECOMPUTE_EXTRINSIC | in gst_camera_calibrate_init()
334 cv::fisheye::CALIB_FIX_K2 | cv::fisheye::CALIB_FIX_K3 | cv::fisheye:: in gst_camera_calibrate_init()
463 void camera_calibrate_run (GstCameraCalibrate * calib, cv::Mat img);
470 G_GNUC_UNUSED GstBuffer * frame, cv::Mat img) in gst_camera_calibrate_transform_frame_ip()
480 cv::Size imageSize, cv::Mat & cameraMatrix, cv::Mat & distCoeffs,
[all …]
Dgstdisparity.h87 cv::Size imgSize;
88 cv::Mat cvRGB_right;
89 cv::Mat cvRGB_left;
90 cv::Mat cvGray_right;
91 cv::Mat cvGray_left;
92 cv::Mat cvGray_depth_map1; /*IPL_DEPTH_16S */
93 cv::Mat cvGray_depth_map2; /*IPL_DEPTH_8U */
94 cv::Mat cvGray_depth_map1_2; /*IPL_DEPTH_16S */
96 cv::Mat img_right_as_cvMat_gray;
97 cv::Mat img_left_as_cvMat_gray;
[all …]
Dgsttemplatematch.cpp117 filter, GstBuffer * buf, cv::Mat img);
180 cv::Mat newTemplateImage; in gst_template_match_load_template()
183 newTemplateImage = cv::imread (templ); in gst_template_match_load_template()
199 filter->cvTemplateImage = cv::Mat (newTemplateImage); in gst_template_match_load_template()
216 filter->method = cv::TM_SQDIFF; in gst_template_match_set_property()
219 filter->method = cv::TM_SQDIFF_NORMED; in gst_template_match_set_property()
222 filter->method = cv::TM_CCORR; in gst_template_match_set_property()
225 filter->method = cv::TM_CCORR_NORMED; in gst_template_match_set_property()
228 filter->method = cv::TM_CCOEFF; in gst_template_match_set_property()
231 filter->method = cv::TM_CCOEFF_NORMED; in gst_template_match_set_property()
[all …]
DMotionCells.cpp105 MotionCells::performDetectionMotionCells (cv::Mat p_frame, in performDetectionMotionCells()
117 cv::Size frameSize; in performDetectionMotionCells()
145 cv::Mat m_pcurgreyImage = cv::Mat (frameSize, CV_8UC1); in performDetectionMotionCells()
146 cv::Mat m_pprevgreyImage = cv::Mat (frameSize, CV_8UC1); in performDetectionMotionCells()
147 cv::Mat m_pgreyImage = cv::Mat (frameSize, CV_8UC1); in performDetectionMotionCells()
148 cv::Mat m_pcurDown = cv::Mat (frameSize, m_pcurFrame.type ()); in performDetectionMotionCells()
149 cv::Mat m_pprevDown = cv::Mat (frameSize, m_pprevFrame.type ()); in performDetectionMotionCells()
152 cvtColor (m_pprevDown, m_pprevgreyImage, cv::COLOR_RGB2GRAY); in performDetectionMotionCells()
154 cvtColor (m_pcurDown, m_pcurgreyImage, cv::COLOR_RGB2GRAY); in performDetectionMotionCells()
159 cv::absdiff (m_pprevgreyImage, m_pcurgreyImage, m_pdifferenceImage); in performDetectionMotionCells()
[all …]
Dgstcvtracker.cpp145 * filter, GstBuffer * buf, cv::Mat img);
237 filter->tracker = cv::legacy::upgradeTrackingAPI( in gst_cvtracker_init()
238 cv::legacy::TrackerMedianFlow::create()); in gst_cvtracker_init()
240 filter->tracker = cv::TrackerMedianFlow::create(); in gst_cvtracker_init()
287 filter->tracker = cv::legacy::upgradeTrackingAPI( in create_cvtracker()
288 cv::legacy::TrackerBoosting::create()); in create_cvtracker()
290 filter->tracker = cv::TrackerBoosting::create(); in create_cvtracker()
294 filter->tracker = cv::TrackerCSRT::create (); in create_cvtracker()
297 filter->tracker = cv::TrackerKCF::create (); in create_cvtracker()
301 filter->tracker = cv::legacy::upgradeTrackingAPI( in create_cvtracker()
[all …]
Dcamerautils.cpp25 camera_serialize_undistort_settings (cv::Mat & cameraMatrix, in camera_serialize_undistort_settings()
26 cv::Mat & distCoeffs) in camera_serialize_undistort_settings()
28 cv::FileStorage fs (".xml", cv::FileStorage::WRITE + cv::FileStorage::MEMORY); in camera_serialize_undistort_settings()
37 camera_deserialize_undistort_settings (gchar * str, cv::Mat & cameraMatrix, in camera_deserialize_undistort_settings()
38 cv::Mat & distCoeffs) in camera_deserialize_undistort_settings()
40 cv::FileStorage fs (str, cv::FileStorage::READ + cv::FileStorage::MEMORY); in camera_deserialize_undistort_settings()
Dgstgrabcut.h76 cv::Mat cvRGBin;
77 cv::Mat cvA;
78 cv::Mat cvB;
79 cv::Mat cvC;
80 cv::Mat cvD;
83 cv::Mat grabcut_mask; // mask created by graphcut
84 cv::Mat bgdModel;
85 cv::Mat fgdModel;
86 cv::Rect facepos;
Dgstcameraundistort.cpp118 * cvfilter, GstBuffer * frame, cv::Mat img, GstBuffer * outframe,
119 cv::Mat outimg);
126 static void camera_undistort_run (GstCameraUndistort * undist, cv::Mat img,
127 cv::Mat outimg);
289 undist->imageSize = cv::Size (in_width, in_height); in gst_camera_undistort_set_info()
299 G_GNUC_UNUSED GstBuffer * frame, cv::Mat img, in gst_camera_undistort_transform_frame()
300 G_GNUC_UNUSED GstBuffer * outframe, cv::Mat outimg) in gst_camera_undistort_transform_frame()
310 camera_undistort_run (GstCameraUndistort * undist, cv::Mat img, cv::Mat outimg) in camera_undistort_run()
328 cv::remap (img, outimg, undist->map1, undist->map2, cv::INTER_LINEAR); in camera_undistort_run()
332 const cv::Scalar CROP_COLOR (0, 255, 0); in camera_undistort_run()
[all …]
DMotionCells.h107 cv::Rect motioncell;
109 cv::Point cell_pt1;
110 cv::Point cell_pt2;
117 cv::Point upperleft;
118 cv::Point lowerright;
128 int performDetectionMotionCells (cv::Mat p_frame, double p_sensitivity,
136 void setPrevFrame (cv::Mat p_prevframe) in setPrevFrame()
196 void blendImages (cv::Mat p_actFrame, cv::Mat p_cellsFrame,
199 void setData (cv::Mat img, int lin, int col, uchar valor) in setData()
204 uchar getData (cv::Mat img, int lin, int col) in getData()
[all …]
Dgstsegmentation.h96 cv::Mat cvRGB;
97 cv::Mat cvYUV;
99 cv::Mat cvFG; /* used for the alpha BW 1ch image composition */
100 cv::Mat ch1, ch2, ch3;
108 cv::Ptr<cv::BackgroundSubtractor> mog; /* cv::BackgroundSubtractorMOG */
109 cv::Ptr<cv::BackgroundSubtractorMOG2> mog2; /* cv::BackgroundSubtractorMOG2 */
Dgstdewarp.cpp157 GstBuffer * buffer, cv::Mat img, GstBuffer * outbuf, cv::Mat outimg);
460 cv::Size destSize (out_width, out_height); in gst_dewarp_update_map()
623 cv::Mat img, GstBuffer * outbuf, cv::Mat outimg) in gst_dewarp_transform_frame()
634 cv::Mat fisheye_image, dewarped_image; in gst_dewarp_transform_frame()
644 inter_mode = cv::INTER_NEAREST; in gst_dewarp_transform_frame()
647 inter_mode = cv::INTER_LINEAR; in gst_dewarp_transform_frame()
650 inter_mode = cv::INTER_CUBIC; in gst_dewarp_transform_frame()
653 inter_mode = cv::INTER_LANCZOS4; in gst_dewarp_transform_frame()
656 inter_mode = cv::INTER_LINEAR; in gst_dewarp_transform_frame()
664 cv::remap (fisheye_image, dewarped_image, filter->map_x, filter->map_y, in gst_dewarp_transform_frame()
[all …]
Dgstcvlaplace.cpp111 GstBuffer * buf, cv::Mat img, GstBuffer * outbuf, cv::Mat outimg);
197 filter->intermediary_img.create (cv::Size (out_width, out_height), CV_16SC1); in gst_cv_laplace_cv_set_caps()
198 filter->cvGray.create (cv::Size (in_width, in_height), CV_8UC1); in gst_cv_laplace_cv_set_caps()
199 filter->Laplace.create (cv::Size (in_width, in_height), CV_8UC1); in gst_cv_laplace_cv_set_caps()
262 cv::Mat img, GstBuffer * outbuf, cv::Mat outimg) in gst_cv_laplace_transform()
266 cv::cvtColor (img, filter->cvGray, cv::COLOR_RGB2GRAY); in gst_cv_laplace_transform()
267 cv::Laplacian (filter->cvGray, filter->intermediary_img, in gst_cv_laplace_transform()
272 outimg.setTo (cv::Scalar::all (0)); in gst_cv_laplace_transform()
276 cv::cvtColor (filter->Laplace, outimg, cv::COLOR_GRAY2RGB); in gst_cv_laplace_transform()
Dgstedgedetect.cpp113 GstBuffer * buf, cv::Mat img, GstBuffer * outbuf, cv::Mat outimg);
252 filter->cvGray.create (cv::Size (in_width, in_height), CV_8UC1); in gst_edge_detect_set_caps()
253 filter->cvEdge.create (cv::Size (in_width, in_height), CV_8UC1); in gst_edge_detect_set_caps()
260 cv::Mat img, GstBuffer * outbuf, cv::Mat outimg) in gst_edge_detect_transform()
264 cv::cvtColor (img, filter->cvGray, cv::COLOR_RGB2GRAY); in gst_edge_detect_transform()
265 cv::Canny (filter->cvGray, filter->cvEdge, filter->threshold1, in gst_edge_detect_transform()
268 outimg.setTo (cv::Scalar::all (0)); in gst_edge_detect_transform()
272 cv::cvtColor (filter->cvEdge, outimg, cv::COLOR_GRAY2RGB); in gst_edge_detect_transform()
Dgstcvsobel.cpp110 GstBuffer * buf, cv::Mat img, GstBuffer * outbuf, cv::Mat outimg);
195 filter->cvGray.create (cv::Size (in_width, in_height), CV_8UC1); in gst_cv_sobel_set_caps()
196 filter->cvSobel.create (cv::Size (out_width, out_height), CV_8UC1); in gst_cv_sobel_set_caps()
259 cv::Mat img, GstBuffer * outbuf, cv::Mat outimg) in gst_cv_sobel_transform()
263 cv::cvtColor (img, filter->cvGray, cv::COLOR_RGB2GRAY); in gst_cv_sobel_transform()
264 cv::Sobel (filter->cvGray, filter->cvSobel, filter->cvGray.depth (), in gst_cv_sobel_transform()
267 outimg.setTo (cv::Scalar::all (0)); in gst_cv_sobel_transform()
271 cv::cvtColor (filter->cvSobel, outimg, cv::COLOR_GRAY2RGB); in gst_cv_sobel_transform()
/third_party/python/Python/
Dcondvar.h138 PyCOND_INIT(PyCOND_T *cv) in PyCOND_INIT() argument
144 cv->sem = CreateSemaphore(NULL, 0, 100000, NULL); in PyCOND_INIT()
145 if (cv->sem==NULL) in PyCOND_INIT()
147 cv->waiting = 0; in PyCOND_INIT()
152 PyCOND_FINI(PyCOND_T *cv) in PyCOND_FINI() argument
154 return CloseHandle(cv->sem) ? 0 : -1; in PyCOND_FINI()
161 _PyCOND_WAIT_MS(PyCOND_T *cv, PyMUTEX_T *cs, DWORD ms) in _PyCOND_WAIT_MS() argument
164 cv->waiting++; in _PyCOND_WAIT_MS()
170 wait = WaitForSingleObjectEx(cv->sem, ms, FALSE); in _PyCOND_WAIT_MS()
173 --cv->waiting; in _PyCOND_WAIT_MS()
[all …]
/third_party/pulseaudio/src/tests/
Dvolume-test.c34 pa_cvolume cv; in START_TEST() local
55 map.channels = cv.channels = 2; in START_TEST()
62 pa_cvolume_set(&cv, 2, v); in START_TEST()
64 … pa_log_debug("Volume: %3i [%s]", v, pa_cvolume_snprint_verbose(s, sizeof(s), &cv, &map, true)); in START_TEST()
67 for (cv.values[0] = PA_VOLUME_MUTED; cv.values[0] <= PA_VOLUME_NORM*2; cv.values[0] += 4096) in START_TEST()
68 … for (cv.values[1] = PA_VOLUME_MUTED; cv.values[1] <= PA_VOLUME_NORM*2; cv.values[1] += 4096) { in START_TEST()
72 pa_cvolume_snprint_verbose(s, sizeof(s), &cv, &map, true), in START_TEST()
73 pa_cvolume_get_balance(&cv, &map)); in START_TEST()
76 … for (cv.values[0] = PA_VOLUME_MUTED+4096; cv.values[0] <= PA_VOLUME_NORM*2; cv.values[0] += 4096) in START_TEST()
77 for (cv.values[1] = PA_VOLUME_MUTED; cv.values[1] <= PA_VOLUME_NORM*2; cv.values[1] += 4096) in START_TEST()
[all …]
/third_party/gstreamer/gstplugins_bad/ext/sctp/usrsctp/usrsctplib/netinet/
Dsctp_userspace.c356 InitializeXPConditionVariable(userland_cond_t *cv) in InitializeXPConditionVariable() argument
358 cv->waiters_count = 0; in InitializeXPConditionVariable()
359 InitializeCriticalSection(&(cv->waiters_count_lock)); in InitializeXPConditionVariable()
360 cv->events_[C_SIGNAL] = CreateEvent (NULL, FALSE, FALSE, NULL); in InitializeXPConditionVariable()
361 cv->events_[C_BROADCAST] = CreateEvent (NULL, TRUE, FALSE, NULL); in InitializeXPConditionVariable()
365 DeleteXPConditionVariable(userland_cond_t *cv) in DeleteXPConditionVariable() argument
367 CloseHandle(cv->events_[C_BROADCAST]); in DeleteXPConditionVariable()
368 CloseHandle(cv->events_[C_SIGNAL]); in DeleteXPConditionVariable()
369 DeleteCriticalSection(&(cv->waiters_count_lock)); in DeleteXPConditionVariable()
373 SleepXPConditionVariable(userland_cond_t *cv, userland_mutex_t *mtx) in SleepXPConditionVariable() argument
[all …]
/third_party/python/Lib/
D_osx_support.py143 def _save_modified_value(_config_vars, cv, newvalue): argument
146 oldvalue = _config_vars.get(cv, '')
147 if (oldvalue != newvalue) and (_INITPRE + cv not in _config_vars):
148 _config_vars[_INITPRE + cv] = oldvalue
149 _config_vars[cv] = newvalue
251 for cv in _COMPILER_CONFIG_VARS:
252 if cv in _config_vars and cv not in os.environ:
253 cv_split = _config_vars[cv].split()
254 cv_split[0] = cc if cv != 'CXX' else cc + '++'
255 _save_modified_value(_config_vars, cv, ' '.join(cv_split))
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/marl/src/
Dconditionvariable_test.cpp26 marl::ConditionVariable cv; in TEST_F() local
31 cv.wait(lock, [&] { in TEST_F()
37 cv.notify_one(); in TEST_F()
49 cv.notify_one(); in TEST_F()
50 cv.wait(lock, [&] { in TEST_F()
69 marl::ConditionVariable cv; in TEST_P() local
74 cv.wait(lock, [&] { in TEST_P()
80 cv.notify_one(); in TEST_P()
92 cv.notify_one(); in TEST_P()
93 cv.wait(lock, [&] { in TEST_P()
[all …]
/third_party/pulseaudio/src/pulsecore/
Dmix.c228 int32_t cv = m->linear[channel].i; in pa_mix_generic_s16ne() local
230 if (PA_LIKELY(cv > 0)) in pa_mix_generic_s16ne()
231 sum += pa_mult_s16_volume(*((int16_t*) m->ptr), cv); in pa_mix_generic_s16ne()
267 int32_t cv = m->linear[channel].i; in pa_mix_s16re_c() local
269 if (PA_LIKELY(cv > 0)) in pa_mix_s16re_c()
270 sum += pa_mult_s16_volume(PA_INT16_SWAP(*((int16_t*) m->ptr)), cv); in pa_mix_s16re_c()
293 int32_t cv = m->linear[channel].i; in pa_mix_s32ne_c() local
296 if (PA_LIKELY(cv > 0)) { in pa_mix_s32ne_c()
298 v = (v * cv) >> 16; in pa_mix_s32ne_c()
323 int32_t cv = m->linear[channel].i; in pa_mix_s32re_c() local
[all …]
/third_party/python/Include/
Ddynamic_annotations.h106 #define _Py_ANNOTATE_CONDVAR_LOCK_WAIT(cv, lock) \ argument
107 AnnotateCondVarWait(__FILE__, __LINE__, cv, lock)
111 #define _Py_ANNOTATE_CONDVAR_WAIT(cv) \ argument
112 AnnotateCondVarWait(__FILE__, __LINE__, cv, NULL)
116 #define _Py_ANNOTATE_CONDVAR_SIGNAL(cv) \ argument
117 AnnotateCondVarSignal(__FILE__, __LINE__, cv)
120 #define _Py_ANNOTATE_CONDVAR_SIGNAL_ALL(cv) \ argument
121 AnnotateCondVarSignalAll(__FILE__, __LINE__, cv)
336 #define _Py_ANNOTATE_CONDVAR_LOCK_WAIT(cv, lock) /* empty */ argument
337 #define _Py_ANNOTATE_CONDVAR_WAIT(cv) /* empty */ argument
[all …]
/third_party/musl/libc-test/src/regression/
Dpthread_cond_wait-cancel_ignored.c11 static pthread_cond_t cv = PTHREAD_COND_INITIALIZER; variable
17 pthread_cond_signal(&cv); in cleanup()
25 pthread_cond_signal(&cv); in waiter()
27 while (waiting) pthread_cond_wait(&cv, &mx); in waiter()
39 while (!waiting) pthread_cond_wait(&cv, &mx); in main()
46 while (waiting && !pthread_cond_timedwait(&cv, &mx, &ts)); in main()
48 pthread_cond_signal(&cv); in main()
/third_party/skia/third_party/externals/swiftshader/third_party/marl/include/marl/
Dmutex.h46 MARL_NO_EXPORT inline void wait_locked(std::condition_variable& cv, in wait_locked() argument
49 cv.wait(lock, std::forward<Predicate>(p)); in wait_locked()
55 MARL_NO_EXPORT inline bool wait_until_locked(std::condition_variable& cv, in wait_until_locked() argument
59 auto res = cv.wait_until(lock, std::forward<Time>(time), in wait_until_locked()
80 inline void wait(std::condition_variable& cv, Predicate&& p) { in wait() argument
81 cv.wait(_, std::forward<Predicate>(p)); in wait()
86 inline bool wait_until(std::condition_variable& cv, in wait_until() argument
89 return cv.wait_until(_, std::forward<Time>(time), in wait_until()
/third_party/openssl/providers/implementations/ciphers/
Dcipher_aes_hw_s390x.inc72 memcpy(adat->plat.s390x.param.kmo_kmf.cv, dat->iv, dat->ivlen);
74 *out = *in ^ adat->plat.s390x.param.kmo_kmf.cv[n];
93 s390x_km(adat->plat.s390x.param.kmo_kmf.cv, 16,
94 adat->plat.s390x.param.kmo_kmf.cv,
99 out[n] = in[n] ^ adat->plat.s390x.param.kmo_kmf.cv[n];
104 memcpy(dat->iv, adat->plat.s390x.param.kmo_kmf.cv, dat->ivlen);
130 memcpy(adat->plat.s390x.param.kmo_kmf.cv, dat->iv, dat->ivlen);
133 *out = adat->plat.s390x.param.kmo_kmf.cv[n] ^ tmp;
134 adat->plat.s390x.param.kmo_kmf.cv[n] = dat->enc ? *out : tmp;
153 s390x_km(adat->plat.s390x.param.kmo_kmf.cv, 16,
[all …]

12345678910>>...24