Merge remote-tracking branch 'origin/2.4' into merge-2.4
Conflicts: modules/calib3d/perf/perf_pnp.cpp modules/contrib/src/imagelogpolprojection.cpp modules/contrib/src/templatebuffer.hpp modules/core/perf/opencl/perf_gemm.cpp modules/cudafeatures2d/doc/feature_detection_and_description.rst modules/cudafeatures2d/perf/perf_features2d.cpp modules/cudafeatures2d/src/fast.cpp modules/cudafeatures2d/test/test_features2d.cpp modules/features2d/doc/feature_detection_and_description.rst modules/features2d/include/opencv2/features2d/features2d.hpp modules/features2d/perf/opencl/perf_brute_force_matcher.cpp modules/gpu/include/opencv2/gpu/gpu.hpp modules/gpu/perf/perf_imgproc.cpp modules/gpu/perf4au/main.cpp modules/imgproc/perf/opencl/perf_blend.cpp modules/imgproc/perf/opencl/perf_color.cpp modules/imgproc/perf/opencl/perf_moments.cpp modules/imgproc/perf/opencl/perf_pyramid.cpp modules/objdetect/perf/opencl/perf_hogdetect.cpp modules/ocl/perf/perf_arithm.cpp modules/ocl/perf/perf_bgfg.cpp modules/ocl/perf/perf_blend.cpp modules/ocl/perf/perf_brute_force_matcher.cpp modules/ocl/perf/perf_canny.cpp modules/ocl/perf/perf_filters.cpp modules/ocl/perf/perf_gftt.cpp modules/ocl/perf/perf_haar.cpp modules/ocl/perf/perf_imgproc.cpp modules/ocl/perf/perf_imgwarp.cpp modules/ocl/perf/perf_match_template.cpp modules/ocl/perf/perf_matrix_operation.cpp modules/ocl/perf/perf_ml.cpp modules/ocl/perf/perf_moments.cpp modules/ocl/perf/perf_opticalflow.cpp modules/ocl/perf/perf_precomp.hpp modules/ocl/src/cl_context.cpp modules/ocl/src/opencl/haarobjectdetect.cl modules/video/src/lkpyramid.cpp modules/video/src/precomp.hpp samples/gpu/morphology.cpp
This commit is contained in:
@@ -321,7 +321,6 @@ typedef struct CvCaptureCAM_V4L
|
||||
struct v4l2_control control;
|
||||
enum v4l2_buf_type type;
|
||||
struct v4l2_queryctrl queryctrl;
|
||||
struct v4l2_querymenu querymenu;
|
||||
|
||||
/* V4L2 control variables */
|
||||
v4l2_ctrl_range** v4l2_ctrl_ranges;
|
||||
@@ -491,25 +490,6 @@ static int try_init_v4l2(CvCaptureCAM_V4L* capture, char *deviceName)
|
||||
}
|
||||
|
||||
|
||||
static void v4l2_scan_controls_enumerate_menu(CvCaptureCAM_V4L* capture)
|
||||
{
|
||||
// printf (" Menu items:\n");
|
||||
CLEAR (capture->querymenu);
|
||||
capture->querymenu.id = capture->queryctrl.id;
|
||||
for (capture->querymenu.index = capture->queryctrl.minimum;
|
||||
(int)capture->querymenu.index <= capture->queryctrl.maximum;
|
||||
capture->querymenu.index++)
|
||||
{
|
||||
if (0 == xioctl (capture->deviceHandle, VIDIOC_QUERYMENU,
|
||||
&capture->querymenu))
|
||||
{
|
||||
//printf (" %s\n", capture->querymenu.name);
|
||||
} else {
|
||||
perror ("VIDIOC_QUERYMENU");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void v4l2_free_ranges(CvCaptureCAM_V4L* capture) {
|
||||
int i;
|
||||
if (capture->v4l2_ctrl_ranges != NULL) {
|
||||
@@ -590,9 +570,6 @@ static void v4l2_scan_controls(CvCaptureCAM_V4L* capture) {
|
||||
if(capture->queryctrl.flags & V4L2_CTRL_FLAG_DISABLED) {
|
||||
continue;
|
||||
}
|
||||
if (capture->queryctrl.type == V4L2_CTRL_TYPE_MENU) {
|
||||
v4l2_scan_controls_enumerate_menu(capture);
|
||||
}
|
||||
if(capture->queryctrl.type != V4L2_CTRL_TYPE_INTEGER &&
|
||||
capture->queryctrl.type != V4L2_CTRL_TYPE_BOOLEAN &&
|
||||
capture->queryctrl.type != V4L2_CTRL_TYPE_MENU) {
|
||||
@@ -613,9 +590,6 @@ static void v4l2_scan_controls(CvCaptureCAM_V4L* capture) {
|
||||
if(capture->queryctrl.flags & V4L2_CTRL_FLAG_DISABLED) {
|
||||
continue;
|
||||
}
|
||||
if (capture->queryctrl.type == V4L2_CTRL_TYPE_MENU) {
|
||||
v4l2_scan_controls_enumerate_menu(capture);
|
||||
}
|
||||
if(capture->queryctrl.type != V4L2_CTRL_TYPE_INTEGER &&
|
||||
capture->queryctrl.type != V4L2_CTRL_TYPE_BOOLEAN &&
|
||||
capture->queryctrl.type != V4L2_CTRL_TYPE_MENU) {
|
||||
@@ -637,9 +611,6 @@ static void v4l2_scan_controls(CvCaptureCAM_V4L* capture) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (capture->queryctrl.type == V4L2_CTRL_TYPE_MENU) {
|
||||
v4l2_scan_controls_enumerate_menu(capture);
|
||||
}
|
||||
|
||||
if(capture->queryctrl.type != V4L2_CTRL_TYPE_INTEGER &&
|
||||
capture->queryctrl.type != V4L2_CTRL_TYPE_BOOLEAN &&
|
||||
|
@@ -325,7 +325,6 @@ typedef struct CvCaptureCAM_V4L
|
||||
struct v4l2_control control;
|
||||
enum v4l2_buf_type type;
|
||||
struct v4l2_queryctrl queryctrl;
|
||||
struct v4l2_querymenu querymenu;
|
||||
|
||||
struct timeval timestamp;
|
||||
|
||||
@@ -641,24 +640,6 @@ static int autosetup_capture_mode_v4l(CvCaptureCAM_V4L* capture)
|
||||
|
||||
#ifdef HAVE_CAMV4L2
|
||||
|
||||
static void v4l2_scan_controls_enumerate_menu(CvCaptureCAM_V4L* capture)
|
||||
{
|
||||
// printf (" Menu items:\n");
|
||||
CLEAR (capture->querymenu);
|
||||
capture->querymenu.id = capture->queryctrl.id;
|
||||
for (capture->querymenu.index = capture->queryctrl.minimum;
|
||||
(int)capture->querymenu.index <= capture->queryctrl.maximum;
|
||||
capture->querymenu.index++)
|
||||
{
|
||||
if (0 == ioctl (capture->deviceHandle, VIDIOC_QUERYMENU,
|
||||
&capture->querymenu))
|
||||
{
|
||||
// printf (" %s\n", capture->querymenu.name);
|
||||
} else {
|
||||
perror ("VIDIOC_QUERYMENU");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void v4l2_scan_controls(CvCaptureCAM_V4L* capture)
|
||||
{
|
||||
@@ -723,8 +704,6 @@ static void v4l2_scan_controls(CvCaptureCAM_V4L* capture)
|
||||
capture->v4l2_exposure_max = capture->queryctrl.maximum;
|
||||
}
|
||||
|
||||
if (capture->queryctrl.type == V4L2_CTRL_TYPE_MENU)
|
||||
v4l2_scan_controls_enumerate_menu(capture);
|
||||
|
||||
} else {
|
||||
|
||||
@@ -793,9 +772,6 @@ static void v4l2_scan_controls(CvCaptureCAM_V4L* capture)
|
||||
capture->v4l2_exposure_max = capture->queryctrl.maximum;
|
||||
}
|
||||
|
||||
if (capture->queryctrl.type == V4L2_CTRL_TYPE_MENU)
|
||||
v4l2_scan_controls_enumerate_menu(capture);
|
||||
|
||||
} else {
|
||||
|
||||
if (errno == EINVAL)
|
||||
|
@@ -1536,7 +1536,7 @@ CvWindow::CvWindow(QString name, int arg2)
|
||||
setWindowTitle(name);
|
||||
setObjectName(name);
|
||||
|
||||
setFocus( Qt::PopupFocusReason ); //#1695 arrow keys are not recieved without the explicit focus
|
||||
setFocus( Qt::PopupFocusReason ); //#1695 arrow keys are not received without the explicit focus
|
||||
|
||||
resize(400, 300);
|
||||
setMinimumSize(1, 1);
|
||||
|
@@ -569,7 +569,7 @@ static int icvCreateTrackbar (const char* trackbar_name,
|
||||
|
||||
//pad size maxvalue in pixel
|
||||
Point qdSize;
|
||||
char valueinchar[strlen(trackbar_name)+1 +1 +1+nbDigit+1];//lenght+\n +space +(+nbDigit+)
|
||||
char valueinchar[strlen(trackbar_name)+1 +1 +1+nbDigit+1];//length+\n +space +(+nbDigit+)
|
||||
sprintf(valueinchar, "%s (%d)",trackbar_name, trackbar->maxval);
|
||||
SInt16 baseline;
|
||||
CFStringRef text = CFStringCreateWithCString(NULL,valueinchar,kCFStringEncodingASCII);
|
||||
|
Reference in New Issue
Block a user