opencv/modules/gapi
Dmitry Matveev d19fc1264b
Merge pull request #24178 from dmatveev:dm/streaming_queue
G-API: Introduce a Queue Source #24178

- Added a new IStreamSource class: in fact, a wrapper over a concurrent queue;
- Added minimal example on how it can be used;
- Extended IStreamSource with optional "halt" interface to break the blocking calls in the emitter threads when required to stop.
- Introduced a QueueInput class which allows to pass the whole graph's input vector at once. In fact it is a thin wrapper atop of individual Queue Sources.

There is a hidden trap found with our type system as described in https://github.com/orgs/g-api-org/discussions/2

While it works even in this form, it should be addressed somewhere in the 5.0 timeframe.

### Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

- [x] I agree to contribute to the project under Apache 2 License.
- [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
- [x] The PR is proposed to the proper branch
- [ ] There is a reference to the original bug report and related work
- [x] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
      Patch to opencv_extra has the same branch name.
- [x] The feature is well documented and sample code can be built with the project CMake
2023-09-04 12:48:53 +03:00
..
cmake gapi: update ADE library to 0.1.2b 2023-08-15 20:49:21 +03:00
doc Merge pull request #21775 from luzpaz:typos/gapi 2022-04-13 17:06:37 +00:00
include/opencv2 Merge pull request #24178 from dmatveev:dm/streaming_queue 2023-09-04 12:48:53 +03:00
misc/python Mark OpenVINO models for G-API tests optional 2023-08-15 11:32:44 +03:00
perf Merge pull request #21797 from anna-khakimova:ak/merge3_extend_supported_types 2023-05-31 14:59:39 +03:00
samples Merge pull request #23766 from TolyaTalamanov:at/segmentation-demo-desync 2023-06-13 18:06:19 +03:00
scripts Added a script to measure & report privacy masking camera performance in different configurations 2020-07-08 19:19:37 +03:00
src Merge pull request #24178 from dmatveev:dm/streaming_queue 2023-09-04 12:48:53 +03:00
test Merge pull request #24178 from dmatveev:dm/streaming_queue 2023-09-04 12:48:53 +03:00
CMakeLists.txt Merge pull request #24178 from dmatveev:dm/streaming_queue 2023-09-04 12:48:53 +03:00