#!/bin/sh
# SPDX-License-Identifier: GPL-2.0-or-later
help() {
echo "$0: Load an application with libcamera V4L2 compatibility layer preload"
echo " $0 [OPTIONS...] executable [args]"
echo " -d, --debug Increase log level"
}
debug=0
while [ $# -gt 0 ]; do
case $1 in
-d|--debug)
debug=$((debug+1))
;;
-h)
help;
exit 0
;;
--)
shift;
break;;
-*)
echo "Unrecognised option: $1";
help;
exit 1
;;
*)
break
;;
esac
shift
done
[ $debug -gt 0 ] && loglevel=V4L2Compat:0
[ $debug -gt 1 ] && loglevel=0
[ "$loglevel" != "" ] && export LIBCAMERA_LOG_LEVELS=$loglevel
if [ "$LD_PRELOAD" = "" ] ; then
LD_PRELOAD='@LIBCAMERA_V4L2_SO@'
else
LD_PRELOAD="$LD_PRELOAD "'@LIBCAMERA_V4L2_SO@'
fi
export LD_PRELOAD
exec "$@"
libcamera/pinchartl/libcamera.git/'>libcamera/pinchartl/libcamera.git
blob: 46c72990d38ff6d318801d225169594d42316f80 (
plain)
1
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-save"><path d="M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"></path><polyline points="17 21 17 13 7 13 7 21"></polyline><polyline points="7 3 7 8 15 8"></polyline></svg>
|