From f671a1a5e93ffb4d04ffcffab5713d1c64e71420 Mon Sep 17 00:00:00 2001 From: "zejian.su" Date: Wed, 8 Nov 2023 19:11:36 +0800 Subject: [PATCH] Let-the-option-width-height-work-again Signed-off-by: zejian.su --- ...t-the-option-width-height-work-again.patch | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 package/starfive/libcamera-apps/0005-Let-the-option-width-height-work-again.patch diff --git a/package/starfive/libcamera-apps/0005-Let-the-option-width-height-work-again.patch b/package/starfive/libcamera-apps/0005-Let-the-option-width-height-work-again.patch new file mode 100644 index 00000000..a782edfa --- /dev/null +++ b/package/starfive/libcamera-apps/0005-Let-the-option-width-height-work-again.patch @@ -0,0 +1,28 @@ +From 2faf0e97fa4f1fdf8a2d22407966ea8747581eff Mon Sep 17 00:00:00 2001 +From: "zejian.su" +Date: Mon, 30 Oct 2023 17:35:05 +0800 +Subject: [PATCH] Let the option: width, height work again. + +Signed-off-by: zejian.su +--- + core/libcamera_app.cpp | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/core/libcamera_app.cpp b/core/libcamera_app.cpp +index cc76e9b..a49e31d 100644 +--- a/core/libcamera_app.cpp ++++ b/core/libcamera_app.cpp +@@ -252,6 +252,10 @@ void LibcameraApp::ConfigureViewfinder() + //auto area = camera_->properties().get(properties::PixelArrayActiveAreas); + if (options_->viewfinder_width && options_->viewfinder_height) + size = Size(options_->viewfinder_width, options_->viewfinder_height); ++ else if (options_->width && options_->height) ++ { ++ size = Size(options_->width, options_->height); ++ } + //else if (area) + //{ + // // The idea here is that most sensors will have a 2x2 binned mode that +-- +2.34.1 +