Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Bernd Kuhls <bernd@kuhls.net>
|
||||
Date: Sat, 21 Jun 2025 18:12:18 +0200
|
||||
Subject: [PATCH] core: Update checks for disable_rpi_features option
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Based on the original commit that added the sync feature there
|
||||
were a few more options that needed the disable_rpi_features
|
||||
code conditionals to ensure compilation against upstream
|
||||
libcamera so add them in to ensure this works.
|
||||
|
||||
Fixes:
|
||||
../core/rpicam_app.cpp: In member function ‘void RPiCamApp::StartCamera()’:
|
||||
../core/rpicam_app.cpp:642:78: error: ‘controls::rpi’ has not been declared
|
||||
642 | if (!controls_.get(controls::ScalerCrop) && !controls_.get(controls::rpi::ScalerCrops))
|
||||
| ^~~
|
||||
../core/rpicam_app.cpp:673:49: error: ‘controls::rpi’ has not been declared
|
||||
673 | controls_.set(controls::rpi::ScalerCrops, libcamera::Span<const Rectangle>(crops.data(), crops.size()));
|
||||
| ^~~
|
||||
|
||||
Upstream: https://github.com/raspberrypi/rpicam-apps/pull/827
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
---
|
||||
core/rpicam_app.cpp | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/core/rpicam_app.cpp b/core/rpicam_app.cpp
|
||||
index bed69c0..1db784f 100644
|
||||
--- a/core/rpicam_app.cpp
|
||||
+++ b/core/rpicam_app.cpp
|
||||
@@ -637,6 +637,7 @@ void RPiCamApp::StartCamera()
|
||||
// This makes all the Request objects that we shall need.
|
||||
makeRequests();
|
||||
|
||||
+#ifndef DISABLE_RPI_FEATURES
|
||||
// Build a list of initial controls that we must set in the camera before starting it.
|
||||
// We don't overwrite anything the application may have set before calling us.
|
||||
if (!controls_.get(controls::ScalerCrop) && !controls_.get(controls::rpi::ScalerCrops))
|
||||
@@ -672,6 +673,7 @@ void RPiCamApp::StartCamera()
|
||||
else
|
||||
controls_.set(controls::rpi::ScalerCrops, libcamera::Span<const Rectangle>(crops.data(), crops.size()));
|
||||
}
|
||||
+#endif
|
||||
|
||||
if (!controls_.get(controls::AfWindows) && !controls_.get(controls::AfMetering) &&
|
||||
options_->Get().afWindow_width != 0 && options_->Get().afWindow_height != 0)
|
||||
--
|
||||
2.39.5
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
From f3011b5fae183a463630b4168626dfefe9b4c74e Mon Sep 17 00:00:00 2001
|
||||
From: Naushir Patuck <naush@raspberrypi.com>
|
||||
Date: Thu, 16 Oct 2025 14:45:33 +0100
|
||||
Subject: [PATCH] core: Switch libcamera string controls to use
|
||||
std::string_view
|
||||
|
||||
This is a change to the libcamera API, switch to std::string_view from
|
||||
std::string.
|
||||
|
||||
Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
|
||||
|
||||
Upstream: https://github.com/raspberrypi/rpicam-apps/commit/f3011b5fae183a463630b4168626dfefe9b4c74e
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
---
|
||||
core/options.cpp | 2 +-
|
||||
core/rpicam_app.cpp | 3 +--
|
||||
2 files changed, 2 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/core/options.cpp b/core/options.cpp
|
||||
index cf704c2a..d3296548 100644
|
||||
--- a/core/options.cpp
|
||||
+++ b/core/options.cpp
|
||||
@@ -418,7 +418,7 @@ bool OptsInternal::Parse(boost::program_options::variables_map &vm, RPiCamApp *a
|
||||
std::vector<std::shared_ptr<libcamera::Camera>> cameras = app->GetCameras();
|
||||
if (camera < cameras.size())
|
||||
{
|
||||
- const std::string cam_id = *cameras[camera]->properties().get(libcamera::properties::Model);
|
||||
+ const std::string_view cam_id = *cameras[camera]->properties().get(libcamera::properties::Model);
|
||||
|
||||
if (cam_id.find("imx708") != std::string::npos)
|
||||
{
|
||||
diff --git a/core/rpicam_app.cpp b/core/rpicam_app.cpp
|
||||
index 9e5a2d0c..0f0b5ffa 100644
|
||||
--- a/core/rpicam_app.cpp
|
||||
+++ b/core/rpicam_app.cpp
|
||||
@@ -128,8 +128,7 @@ std::string const &RPiCamApp::CameraId() const
|
||||
|
||||
std::string RPiCamApp::CameraModel() const
|
||||
{
|
||||
- auto model = camera_->properties().get(properties::Model);
|
||||
- return model ? *model : camera_->id();
|
||||
+ return std::string(camera_->properties().get(properties::Model).value_or(camera_->id()));
|
||||
}
|
||||
|
||||
void RPiCamApp::OpenCamera()
|
||||
33
package/libcamera-apps/Config.in
Normal file
33
package/libcamera-apps/Config.in
Normal file
@@ -0,0 +1,33 @@
|
||||
config BR2_PACKAGE_LIBCAMERA_APPS
|
||||
bool "libcamera-apps"
|
||||
depends on BR2_PACKAGE_LIBCAMERA_ARCH_SUPPORTS # libcamera
|
||||
depends on BR2_INSTALL_LIBSTDCPP # libcamera/boost
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # libcamera/boost
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_9 # libcamera
|
||||
depends on !BR2_STATIC_LIBS # gnutls/libcamera
|
||||
depends on BR2_USE_WCHAR # gnutls/libcamera/boost
|
||||
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_5
|
||||
select BR2_PACKAGE_BOOST
|
||||
select BR2_PACKAGE_BOOST_PROGRAM_OPTIONS
|
||||
select BR2_PACKAGE_JPEG
|
||||
select BR2_PACKAGE_LIBCAMERA
|
||||
select BR2_PACKAGE_LIBEXIF
|
||||
select BR2_PACKAGE_LIBPNG
|
||||
select BR2_PACKAGE_TIFF
|
||||
select BR2_PACKAGE_XLIB_LIBX11 if BR2_PACKAGE_XORG7 && (BR2_PACKAGE_HAS_LIBEGL || BR2_PACKAGE_HAS_LIBGL)
|
||||
select BR2_PACKAGE_LIBDRM if BR2_PACKAGE_XORG7 && (BR2_PACKAGE_HAS_LIBEGL || BR2_PACKAGE_HAS_LIBGL)
|
||||
select BR2_PACKAGE_LIBEPOXY if BR2_PACKAGE_XORG7 && (BR2_PACKAGE_HAS_LIBEGL || BR2_PACKAGE_HAS_LIBGL)
|
||||
select BR2_PACKAGE_QT5BASE_GUI if BR2_PACKAGE_QT5
|
||||
select BR2_PACKAGE_QT5BASE_WIDGETS if BR2_PACKAGE_QT5
|
||||
help
|
||||
This is a small suite of libcamera-based apps that aim to copy
|
||||
the functionality of the existing "raspicam" apps.
|
||||
|
||||
https://github.com/raspberrypi/libcamera-apps
|
||||
|
||||
comment "libcamera-apps needs a toolchain w/ C++, threads, wchar, dynamic library, gcc >= 8, headers >= 5.5"
|
||||
depends on BR2_PACKAGE_LIBCAMERA_ARCH_SUPPORTS
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || \
|
||||
!BR2_TOOLCHAIN_HAS_THREADS || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_8 || BR2_STATIC_LIBS || \
|
||||
!BR2_USE_WCHAR || !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_5
|
||||
3
package/libcamera-apps/libcamera-apps.hash
Normal file
3
package/libcamera-apps/libcamera-apps.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally computed
|
||||
sha256 b5535933ebc398616fd1b261fa9e3755dfb419e10ee7866078a8a8d99f54a59a libcamera-apps-v1.7.0-10-ge9645231008146fa0e75c2b3e0ff8c48ad70511a.tar.gz
|
||||
sha256 36dfed86bdef661a0a14ec1a1cc84c771d5a06b6f9b92e9ebb610ba711bd528a license.txt
|
||||
55
package/libcamera-apps/libcamera-apps.mk
Normal file
55
package/libcamera-apps/libcamera-apps.mk
Normal file
@@ -0,0 +1,55 @@
|
||||
################################################################################
|
||||
#
|
||||
# libcamera-apps
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBCAMERA_APPS_VERSION = v1.7.0-10-ge9645231008146fa0e75c2b3e0ff8c48ad70511a
|
||||
LIBCAMERA_APPS_SITE = $(call github,raspberrypi,rpicam-apps,$(LIBCAMERA_APPS_VERSION))
|
||||
LIBCAMERA_APPS_LICENSE = BSD-2-Clause
|
||||
LIBCAMERA_APPS_LICENSE_FILES = license.txt
|
||||
LIBCAMERA_APPS_DEPENDENCIES = \
|
||||
host-pkgconf \
|
||||
boost \
|
||||
jpeg \
|
||||
libcamera \
|
||||
libexif \
|
||||
libpng \
|
||||
tiff
|
||||
|
||||
LIBCAMERA_APPS_CONF_OPTS = \
|
||||
-Denable_opencv=disabled \
|
||||
-Denable_tflite=disabled \
|
||||
-Ddisable_rpi_features=true
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBDRM),y)
|
||||
LIBCAMERA_APPS_DEPENDENCIES += libdrm
|
||||
LIBCAMERA_APPS_CONF_OPTS += -Denable_drm=enabled
|
||||
else
|
||||
LIBCAMERA_APPS_CONF_OPTS += -Denable_drm=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_FFMPEG)$(BR2_PACKAGE_LIBDRM),yy)
|
||||
LIBCAMERA_APPS_DEPENDENCIES += ffmpeg libdrm
|
||||
LIBCAMERA_APPS_CONF_OPTS += -Denable_libav=enabled
|
||||
else
|
||||
LIBCAMERA_APPS_CONF_OPTS += -Denable_libav=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_XORG7),y)
|
||||
LIBCAMERA_APPS_DEPENDENCIES += \
|
||||
$(if $(BR2_PACKAGE_LIBEPOXY),libepoxy) \
|
||||
$(if $(BR2_PACKAGE_XLIB_LIBX11),xlib_libX11)
|
||||
LIBCAMERA_APPS_CONF_OPTS += -Denable_egl=enabled
|
||||
else
|
||||
LIBCAMERA_APPS_CONF_OPTS += -Denable_egl=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_QT5),y)
|
||||
LIBCAMERA_APPS_DEPENDENCIES += qt5base
|
||||
LIBCAMERA_APPS_CONF_OPTS += -Denable_qt=enabled
|
||||
else
|
||||
LIBCAMERA_APPS_CONF_OPTS += -Denable_qt=disabled
|
||||
endif
|
||||
|
||||
$(eval $(meson-package))
|
||||
Reference in New Issue
Block a user