I think it will first choose a suitable format from the 'native' formats it supports, using binning & or cropping if required, and then it will crop & or rescale to the requested format, see this example asking for 1920 x 640...
(I could be wrong)
(I could be wrong)
Code:
$ rpicam-jpeg --width 1920 --height 640 -o test.jpg[0:02:17.472991243] [2216] INFO Camera camera_manager.cpp:284 libcamera v0.2.0+46-075b54d5[0:02:17.515552442] [2219] WARN RPiSdn sdn.cpp:39 Using legacy SDN tuning - please consider moving SDN inside rpi.denoise[0:02:17.517678808] [2219] INFO RPI vc4.cpp:447 Registered camera /base/soc/i2c0mux/i2c@1/imx708@1a to Unicam device /dev/media1 and ISP device /dev/media2[0:02:17.517756657] [2219] INFO RPI pipeline_base.cpp:1144 Using configuration file '/usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml'Made X/EGL preview windowMode selection for 2304:768:12:P SRGGB10_CSI2P,1536x864/0 - Score: 6226.67 SRGGB10_CSI2P,2304x1296/0 - Score: 4798.67 SRGGB10_CSI2P,4608x2592/0 - Score: 5698.67Stream configuration adjusted[0:02:17.996493896] [2216] INFO Camera camera.cpp:1183 configuring streams: (0) 2304x768-YUV420 (1) 2304x1296-SBGGR10_CSI2P[0:02:17.998128544] [2219] INFO RPI vc4.cpp:611 Sensor: /base/soc/i2c0mux/i2c@1/imx708@1a - Selected sensor format: 2304x1296-SBGGR10_1X10 - Selected unicam format: 2304x1296-pBAAMode selection for 1920:640:12:P SRGGB10_CSI2P,1536x864/0 - Score: 5490.67 SRGGB10_CSI2P,2304x1296/0 - Score: 4926.67 SRGGB10_CSI2P,4608x2592/0 - Score: 5826.67[0:02:23.186691947] [2216] INFO Camera camera.cpp:1183 configuring streams: (0) 1920x640-YUV420 (1) 2304x1296-SBGGR10_CSI2P[0:02:23.190985684] [2219] INFO RPI vc4.cpp:611 Sensor: /base/soc/i2c0mux/i2c@1/imx708@1a - Selected sensor format: 2304x1296-SBGGR10_1X10 - Selected unicam format: 2304x1296-pBAAStill capture image received
Statistics: Posted by gordon77 — Tue Mar 26, 2024 1:17 pm