0005-Let-the-option-width-height-work-again.patch 988 B

12345678910111213141516171819202122232425262728
  1. From 2faf0e97fa4f1fdf8a2d22407966ea8747581eff Mon Sep 17 00:00:00 2001
  2. From: "zejian.su" <zejian.su@starfivetech.com>
  3. Date: Mon, 30 Oct 2023 17:35:05 +0800
  4. Subject: [PATCH] Let the option: width, height work again.
  5. Signed-off-by: zejian.su <zejian.su@starfivetech.com>
  6. ---
  7. core/libcamera_app.cpp | 4 ++++
  8. 1 file changed, 4 insertions(+)
  9. diff --git a/core/libcamera_app.cpp b/core/libcamera_app.cpp
  10. index cc76e9b..a49e31d 100644
  11. --- a/core/libcamera_app.cpp
  12. +++ b/core/libcamera_app.cpp
  13. @@ -252,6 +252,10 @@ void LibcameraApp::ConfigureViewfinder()
  14. //auto area = camera_->properties().get(properties::PixelArrayActiveAreas);
  15. if (options_->viewfinder_width && options_->viewfinder_height)
  16. size = Size(options_->viewfinder_width, options_->viewfinder_height);
  17. + else if (options_->width && options_->height)
  18. + {
  19. + size = Size(options_->width, options_->height);
  20. + }
  21. //else if (area)
  22. //{
  23. // // The idea here is that most sensors will have a 2x2 binned mode that
  24. --
  25. 2.34.1