Alexander Alekhin
3cab9e7a9c
3.4: fixes
6 years ago
Hamdi Sahloul
5d54def264
Add semicolons after `CV_INSTRUMENT` macros
6 years ago
cyy
286c2c236b
Merge pull request #12458 from DEEPIR:3.4
...
* may be an typo fix
* remove identical branch,may be paste error
* add parentheses around macro parameter
* simplify if condition
* check malloc fail
* change the condition of branch removed by commit 3041502861
6 years ago
Hamdi Sahloul
a39e0daacf
Utilize CV_UNUSED macro
6 years ago
Alexander Alekhin
8a3c394d6a
don't use constructors for C API structures
6 years ago
Alexander Alekhin
c441ad36c8
build: don't use nullptr without C++11 guard
6 years ago
Todor Tomov
9988e1b6ee
cap_v4l: Fix private control enumeration end condition
...
Currently the private control enumeration will be stopped when QUERYCTRL
returns -EINVAL only. It is possible however that other errors occur.
One particular case is when the v4l2 device doesn't support any controls
and doesn't implement the QUERYCTRL ioctl. In that case the v4l2
framework returns -ENOTTY. In that case the current control enumeration
will go in an endless loop.
To fix this change the control enumeration stop condition. If any errors
occur, end the control enumeration.
Signed-off-by: Todor Tomov <todor.tomov@linaro.org>
6 years ago
Peter Jozsa
8b0e1c7fcb
Fix https://github.com/opencv/opencv/issues/12301
6 years ago
Maxim Smirnov
c94d75874b
`CV_Assert`s changed
...
Some `CV_Assert`s changed to `CV_Assert_N`s according to https://github.com/opencv/opencv/issues/12304
6 years ago
Kaartic Sivaraam
a527e8cc73
cap-v4l: remove unwanted loop in V4L2 mainloop
...
The while loop would run only once making it useless and leading
to confusion.
So, remove the unwanted while loop and just keep an infinite for
loop.
6 years ago
zarelaky
715f23127c
Update cap_gstreamer.cpp
...
fixed call open(int id) failed
6 years ago
berak
7e353a1ec5
videoio: check iterator in mjpeg_encoder.cpp
6 years ago
Maksim Shabunin
a2daf0c83c
videoio: added YUV420 format (UV order) support to v4l capture
6 years ago
Maksim Shabunin
dd8e990451
Fixed several issues found by static analysis, GStreamer backend
6 years ago
Maksim Shabunin
e031bada7d
Fixed several issues found by static analysis, Windows-specific
6 years ago
Maksim Shabunin
cbb1e867e5
More issues found by static analysis
6 years ago
Maksim Shabunin
e0603bb45f
Fixed several issues found by static analysis tools
6 years ago
Teng Yiliang
dadde75ef0
use struct member width_set/height_set to replace static width/height.
...
the static variables will cause race-condition when operating in
multithread scenarios.
Signed-off-by: Teng Yiliang <ylteng@outlook.com>
Signed-off-by: Teng Yiliang <yiliang.teng@weimob.com>
6 years ago
Alexander Alekhin
270cc3bcbc
videoio: add routines to query information about backends API
...
into cv::videoio_registry namespace
6 years ago
Maksim Shabunin
a2a9a01e05
AVI container: verbose error messages
6 years ago
Maksim Shabunin
53eb27f508
AVI container: use C++ streams for file operations, check some operations for overflow
7 years ago
Alexander Alekhin
b09a4a98d4
opencv: Use cv::AutoBuffer<>::data()
7 years ago
Alexander Alekhin
f545aee66d
videoio(VFW): lower priority (after DSHOW)
7 years ago
Alexander Alekhin
b3578710cf
videoio(MSMF): fix 32-bit build crash
7 years ago
Alexander Alekhin
2dbaba077a
videoio(msmf): avoid using of C++11 code
...
build fails with MSVS 2012 without additional flags
7 years ago
Alexander Alekhin
7a2448672c
videoio(MSMF): avoid OpenCV load failure on Win7 machines
...
OpenCV binaries are compiled on Win10 environment
7 years ago
Alexander Alekhin
c3a90ccbad
videoio(MSMF): remove "always true" check
7 years ago
Vitaly Tuzov
67b67003c5
Disable MSMF VideoCapture fallback to existing camera in case provided index is out of range.
7 years ago
Rostislav Vasilikhin
18bc2a1a93
Kinect2 support added to OpenNI2 backend ( #11794 )
...
* Kinect2 support added to OpenNI2 backend
* more fixes for OpenNI2 backend
* whitespace fixed
* libfreenect2 support added
* const cast added
* mutable removed
7 years ago
Adam Rankin
ecf4b639e1
Adding the ability to toggle autofocus on/off for DirectShow webcams
7 years ago
Alexander Alekhin
9629af1aa9
videoio: MSMF async reader for camera stream
...
Synchronized reading from camera with heavy frame processing
provides bad effects (huge frame latency, processing frames from the past).
Generally, there is no way to process each frame and some frames will be dropped.
Allow preventive frame dropping to reduce lag of processed frames.
This mode is applied to cameras only (opened by 'index').
7 years ago
Alexander Alekhin
2bb5d1bca3
videoio(msmf): cleanup unused methods from ComPtr wrapper
...
Use Win32 TRUE/FALSE in SetUINT32() calls for bool parameters
7 years ago
Alexander Alekhin
09c63e4f00
videoio(msmf): fix reopen condition in configureHW()
...
`camid` value is always -1 after close().
7 years ago
Alexander Alekhin
0d249c7448
videoio(msmf): replace custom debug print function
7 years ago
Vitaly Tuzov
cb4b6bb2dc
Fixed setting of frame size properties for MSMF-based VideoCapture
7 years ago
Alexander Alekhin
c64f6b3c22
videoio(MSMF): refactor grabFrame() / retrieveFrame() methods
...
- no behavior changes in grabFrame()
- added Lock2D() support into retrieveFrame()
7 years ago
Alexander Alekhin
277e9279cc
videoio(gstreamer): support dumping of VideoWriter pipeline
7 years ago
Alexander Alekhin
d041b0a599
videoio: fix capture modes
7 years ago
Alexander Alekhin
2628662586
videoio(ffmpeg): cleanup, remove dead code
7 years ago
Alexander Alekhin
b934702c7f
cmake: support find_package(FFMPEG)
...
Use "OPENCV_FFMPEG_USE_FIND_PACKAGE" variable to specify find_package() parameters
7 years ago
Alexander Alekhin
c94fe0c7e7
videoio(v4l): eliminate global variable
7 years ago
Alexander Alekhin
83d915eca1
videoio(v4l): don't pre-scan or cache list of available cameras
7 years ago
Alexander Alekhin
22f435ff4d
videoio(v4l): fix code indentation, tabs
7 years ago
Alexander Alekhin
ddba772297
videoio: fix isOpened() method for legacy APIs, fix "index" API list
7 years ago
Alexander Alekhin
83ec0f526c
videoio(ffmpeg): add option to enable debug logs
7 years ago
Alexander Alekhin
cd9e43704e
videoio: backends priority list
7 years ago
Alexander Alekhin
5128c1ff1f
videoio(ffmpeg): specify stream->time_base
...
Using codec->time_base is deprecated to specify muxer settings.
Resolves issue with FPS value for AVI files with FFmpeg 4.0.
Related FFmpeg commits:
- 194be1f43e
- 91736025b2
7 years ago
Vitaly Tuzov
9622ca0e37
MSMF-based VideoCapture and VideoWriter backend changed to C++ interface
7 years ago
Alexander Alekhin
39b60f9b17
fix build warnings
7 years ago
Maksim Shabunin
1a15136536
GStreamer backend: fixed memory leak and version check
7 years ago