opencv/modules
Alexey Nikolaev 8396ae6e4f Merge pull request #12893 from aleksey-nikolaev:cap-update
V4L (V4L2): Refactoring. Added missed camera properties. Fixed getting `INF` for some properties. Singlethread as always (#12893)

* cap_v4l:
1 Added cap_properties verbalization.
2 Set Get of properties elementary refactoring.
3 Removed converting parameters to/from [0,1] range.
4 Added all known conversion from V4L2_CID_* to CV_CAP_PROP_*

* cap_v4l:
1. Removed all query for parameters range.
2. Refactored capture initialization.
3. Added selecting input channel by CV_CAP_PROP_MODE. Default value -1 the channels not changed.

* cap_v4l:
1. Refactoring of Convert To RGB

* cap_v4l:
1. Fixed use of video buffer index.
2. Removed extra memcopy for grab image.
3. Removed device closing from autosetup_capture_mode_v4l2

* cap_v4l:
1. The `goto` was eliminated
2. Fixed use of temporary buffer index for V4L2_PIX_FMT_SN9C10X
3. Fixed use of the bufferIndex
4. Removed trailing spaces and unused variables.

* cap_v4l:
1. Alias for capture->buffers[capture->bufferIndex]
2. Reduced size of data for memcpy: bytesused instead of length
3. Refactoring. Code duplication. More info for debug

* cap_v4l:
1. Added the ability to grab and retrieveFrame independently several times

* cap_v4l:
1. Not need to close/open device for new capture parameters applying.
2. Removed using of device name as a flag that the capture is closed. Added sufficient function.
3. Refactoring. Added requestBuffers and createBuffers

* cap_v4l:
1. Added tryIoctl with `select` like was in mainloop_v4l2.
2. Fixed buffer request for device without closing the device.
3. Some static function moved to CvCaptureCAM_V4L
4. Removed unused defines

* cap_v4l:
1. Thread-safe now

* cap_v4l:
1. Fixed thread-safe destructor
2. Fixed FPS setting

* Missed brake

* Removed thread-safety

* cap_v4l:
1. Reverted conversion parameters to/from [0,1] by default for backward compatibility.
2. Added setting for turn off compatibility mode: set CV_CAP_PROP_MODE to 65536
3. Most static functions moved to CvCaptureCAM_V4L
4. Refactoring of icvRetrieveFrameCAM_V4L and using of frame_allocated flag

* cap_v4l:
1. Added conversion to RGB from NV12, NV21
2. Refactoring. Removed wrappers for known format conversions.

* Added `CAP_PROP_CHANNEL` to the enum VideoCaptureProperties.
CAP_V4L migrated to use VideoCaptureProperties.

* 1. Update comments.
2. Environment variable `OPENCV_VIDEOIO_V4L_RANGE_NORMALIZED` for setting default backward compatibility mode.
3. Revert getting of `CAP_PROP_MODE` as fourcc code in backward compatibility mode.

* videoio: update cap_v4l - compatibilityMode => normalizePropRange

* videoio(test): V4L2 MJPEG test

`v4l2-ctl --list-formats` should have 'MJPG' entry

* videoio: fix buffer initialization

to avoid "munmap: Invalid argument" messages
2018-11-08 21:27:45 +03:00
..
calib3d Add test for symmetric circles with clustering 2018-11-02 15:13:46 +01:00
core Merge pull request #12064 from seiko2plus:coreUnvintrinArithm2 2018-11-08 14:02:40 +00:00
cudaarithm Fix documentation of cv::cuda::compare 2018-10-01 13:23:18 +01:00
cudabgsegm CUDA/BgSegm: fix the threshold of MOG2.Update test when detectShadow=true (#12762) 2018-10-09 17:39:39 +03:00
cudacodec Utilize CV_UNUSED macro 2018-09-07 20:33:52 +09:00
cudafeatures2d Utilize CV_UNUSED macro 2018-09-07 20:33:52 +09:00
cudafilters fix test failure of cudafilters Median_Accuracy 2018-10-03 00:59:08 +09:00
cudaimgproc update the threshold 2018-10-11 18:45:20 +09:00
cudalegacy Utilize CV_UNUSED macro 2018-09-07 20:33:52 +09:00
cudaobjdetect Utilize CV_UNUSED macro 2018-09-07 20:33:52 +09:00
cudaoptflow Utilize CV_UNUSED macro 2018-09-07 20:33:52 +09:00
cudastereo fix test failure of StereoBeliefPropagation 2018-10-04 08:35:34 +09:00
cudawarping Utilize CV_UNUSED macro 2018-09-07 20:33:52 +09:00
cudev fix test failure of cudev 2018-09-29 23:13:12 +09:00
dnn Merge pull request #13065 from dkurt:dnn_update_tf_faster_rcnn 2018-11-08 16:31:39 +00:00
features2d ORB: compute default norm by wta_k 2018-10-22 10:10:49 +08:00
flann Merge pull request #12871 from UnderscoreAsterisk:document-Distance 2018-10-20 11:15:13 +03:00
highgui highgui: fix broken waitKey() condition in window_w32 2018-11-06 11:43:58 +01:00
imgcodecs Merge pull request #12989 from venalil:fix_thresholded_tiff_read 2018-11-01 14:34:34 +03:00
imgproc Merge pull request #13056 from terfendail:box_wintr 2018-11-07 23:59:36 +03:00
java java: add converters, tests for MatOfRotatedRect 2018-11-06 16:40:56 +01:00
js Merge pull request #12799 from alalek:update_build_js 2018-10-15 17:35:21 +03:00
ml Utilize CV_UNUSED macro 2018-09-07 20:33:52 +09:00
objdetect Fix dataset: russian.jpg 2018-10-29 10:30:49 -01:00
photo Update seamless_cloning.cpp 2018-09-18 07:22:39 +03:00
python Fix closing input file 2018-10-29 13:05:46 +01:00
shape Add semicolons after CV_INSTRUMENT macros 2018-09-14 06:45:31 +09:00
stitching Increased the acceptable error margin for perf testing 2018-10-15 20:03:39 -07:00
superres Add semicolons after CV_INSTRUMENT macros 2018-09-14 06:45:31 +09:00
ts TS/CUDA: Show device ID in case of multiple devices 2018-10-08 03:00:25 +09:00
video Merge pull request #12829 from tomoaki0705:fixTestVideoOpenCLPyrLK 2018-10-15 19:18:24 +00:00
videoio Merge pull request #12893 from aleksey-nikolaev:cap-update 2018-11-08 21:27:45 +03:00
videostab Add semicolons after CV_INSTRUMENT macros 2018-09-14 06:45:31 +09:00
viz viz: call "mapper->Update()" before and after SetInputData() 2018-08-22 15:40:51 +03:00
world Do not build protobuf without dnn (#10689) 2018-02-01 16:30:23 +03:00
CMakeLists.txt cmake: allow providing list of extra modules paths 2018-02-01 19:02:02 +03:00