diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f79772..9dc1760 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,25 @@ # Changelog All notable changes to this project will be documented in this file. +## [0.7.0] - 2023-05-08 + +### Changed +- offset x/y are cached when pipeline is not playing. + * setting the offset an ROI configured via caps is possible now + * fixes #44 + +### Added +- Restructing of buffer pool management to support platform specific optimal buffer types +- NVMM support + * This feature is automatically enabled when both the CUDA library and the DeepStream library are installed on the system. + * If enabled pylonsrc can directly generate output buffers into nvmm, that can be used by other nvidia elements. + * Current restrictions: + * only runs on NVIDIA Jetson at the moment + +- Pylon 7.3 + * meson supports to build the plugin with pylon 7.3 now + + ## [0.6.2] - 2023-04-04 ### Changed diff --git a/README.md b/README.md index e003d7f..3cd79e7 100644 --- a/README.md +++ b/README.md @@ -129,6 +129,25 @@ possible values) after applying the userset and pfs file. It is recommended to set a caps-filter to explicitly set the wanted capabilities. +# NVMM Support + + +NVMM caps are now supported in the current version of the element. This feature +is automatically enabled when both the CUDA library and the DeepStream library +are installed on the system. + +By using this support, a memory speedup can be achieved as it eliminates the +need for an additional element to connect the system memory and NVIDIA's GPU +memory. + +Here's an example of how to use this feature: + +```bash +gst-launch-1.0 pylonsrc ! "video/x-raw(memory:NVMM), width=1920, height=1080" ! nvvidconv ! "video/x-raw(memory:NVMM), width=1280, height=720" ! fakesink +``` + + + ### Handle capture errors `pylonsrc` lets you decide what to do when a capture error happens. @@ -533,23 +552,6 @@ Installation on macOS is currently not supported due to conflicts between meson This target will be integrated after a Basler pylon 7.x release for macOS -# NVMM Support - - -NVMM caps are now supported in the current version of the element. This feature -is automatically enabled when both the CUDA library and the DeepStream library -are installed on the system. - -By using this support, a memory speedup can be achieved as it eliminates the -need for an additional element to connect the system memory and NVIDIA's GPU -memory. - -Here's an example of how to use this feature: - -```bash -gst-launch-1.0 pylonsrc ! "video/x-raw(memory:NVMM), width=1920, height=1080" ! nvvidconv ! "video/x-raw(memory:NVMM), width=1280, height=720" ! fakesink -``` - # Known issues diff --git a/gst-libs/gst/pylon/meson.build b/gst-libs/gst/pylon/meson.build index 59dd5bb..b2473e8 100644 --- a/gst-libs/gst/pylon/meson.build +++ b/gst-libs/gst/pylon/meson.build @@ -5,7 +5,9 @@ # import PYLON_ROOT environment into meson pylon_path = run_command(python3, '-c', 'import os; print(os.environ.get("PYLON_ROOT","PYLON_ROOT_NOT_SET"))', check: false).stdout().strip() -if target_machine.system() == 'linux' and pylon_path == 'PYLON_ROOT_NOT_SET' +fs = import('fs') + +if target_machine.system() == 'linux' and (pylon_path == 'PYLON_ROOT_NOT_SET' or not fs.exists(pylon_path / 'include/pylon')) # PYLON_ROOT has to be set error('PYLON_ROOT has to be set to location of pylon install e.g. /opt/pylon') endif diff --git a/meson.build b/meson.build index ae98e8a..81f2894 100644 --- a/meson.build +++ b/meson.build @@ -1,5 +1,5 @@ project('gst-plugin-pylon', 'c', 'cpp', - version : '0.6.2', + version : '0.7.0', meson_version : '>= 0.61', default_options : [ 'warning_level=1', 'buildtype=debugoptimized' ])