[PATCH v1 0/1] Add environment variable to order pipelines match

Julien Vuillaumier julien.vuillaumier at nxp.com
Mon Mar 4 19:18:15 CET 2024


Hello,

There is currently no way to configure the order used by the CameraManager
to select the pipeline handlers to match devices from the DeviceEnumerator.
That is a limitation when multiple pipeline are compiled in, capable of
handling the devices of the platform. In that case, user can not specify
the pipeline that will bind to the devices and handle the cameras.

This change adds an environment variable, optionnaly initialized with an
ordered list of candidate pipelines that CameraManager shall use to match
the devices. When the variable is not set, CameraManager behavior is
unchanged: every registered pipeline is selected in turn to attempt device
matching. 

Using that variable, user has the option to explicitly select the pipeline
or the subset of available pipelines that CameraManager shall consider
for matching.

Thanks


Julien Vuillaumier (1):
  libcamera: camera_manager: Add environment variable to order pipelines
    match

 Documentation/environment_variables.rst |  5 +++
 src/libcamera/camera_manager.cpp        | 51 +++++++++++++++++++++----
 2 files changed, 48 insertions(+), 8 deletions(-)

-- 
2.34.1



More information about the libcamera-devel mailing list