Jakub Golinowski
9f1218b00b
Merge pull request #11897 from Jakub-Golinowski:hpx_backend
...
* Add HPX backend for OpenCV implementation
Adds hpx backend for cv::parallel_for_() calls respecting the nstripes chunking parameter. C++ code for the backend is added to modules/core/parallel.cpp. Also, the necessary changes to cmake files are introduced.
Backend can operate in 2 versions (selectable by cmake build option WITH_HPX_STARTSTOP): hpx (runtime always on) and hpx_startstop (start and stop the backend for each cv::parallel_for_() call)
* WIP: Conditionally include hpx_main.hpp to tests in core module
Header hpx_main.hpp is included to both core/perf/perf_main.cpp and core/test/test_main.cpp.
The changes to cmake files for linking hpx library to above mentioned test executalbles are proposed but have issues.
* Add coditional iclusion of hpx_main.hpp to cpp cpu modules
* Remove start/stop version of hpx backend
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
Suleyman TURKMEN
c61bc3a0cb
Update documentation and samples
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
Alexander Alekhin
0bef42ba12
videoio: add note about image BGR format VideoWriter::write()
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
6 years ago
Alexander Alekhin
b09a4a98d4
opencv: Use cv::AutoBuffer<>::data()
6 years ago
Alexander Alekhin
f545aee66d
videoio(VFW): lower priority (after DSHOW)
6 years ago
Alexander Alekhin
b3578710cf
videoio(MSMF): fix 32-bit build crash
6 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
Florian Echtler
17888ce0fd
add support for 8-bit greyscale format
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
Pavel Rojtberg
2047abd9c3
videoio: realsense - add cvtColor as the pixel-format is only a hint
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
Pavel Rojtberg
bfc227b8d4
videoio: update librealsense to API 2.0
...
this enables the usage of current sensors, while dropping support for
legacy devices, see:
https://github.com/IntelRealSense/librealsense#overview
Given limited resources, and that the legacy sensors where not that
great, I think we should focus on v2.
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
5d68c8dbe7
videoio(test): fixup information dump
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
Alexander Alekhin
e21c01708a
videoio: fix lifetime management of data of input frames
7 years ago