You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Added ability to build plugins for videoio module. Implemented for two most popular backends: FFmpeg and GStreamer.
Defined C-interface for plugins
Added wrapper classes for dynamically loaded backends
Created cmake function for plugin creation
Created GStreamer plugin
minor cleanup, use logging
Created FFmpeg plugin
moved library initialization from static scope to first function call
Created script to build several configurations of plugins in Docker containers: ./opencv/modules/videoio/misc/build_plugins.sh <path-to-dst-dir> <cmake-build-config>
environment variables to control plugin search:
OPENCV_VIDEOIO_PLUGIN_PATH - list of directories to search for plugins (default is location of libopencv_videoio.so)
OPENCV_VIDEOIO_PLUGIN_NAME - glob expression to match plugin binaries (default is libopencv_videoio_*.so)
Public interfaces
core: added two utility functions (getBinLocation, getParent)
videoio: added one registry function (hasBackend + enum)
Tests
FFmpeg and GStreamer tests are always enabled, will be skipped if backend is not available
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pullrequest changes
Added ability to build plugins for videoio module. Implemented for two most popular backends: FFmpeg and GStreamer.
./opencv/modules/videoio/misc/build_plugins.sh <path-to-dst-dir> <cmake-build-config>
OPENCV_VIDEOIO_PLUGIN_PATH
- list of directories to search for plugins (default is location of libopencv_videoio.so)OPENCV_VIDEOIO_PLUGIN_NAME
- glob expression to match plugin binaries (default islibopencv_videoio_*.so
)Public interfaces
Tests
videoio_xxx.yyy
Other changes