From 56ee14e16dc31c97be6c00bef0728a6fc9f13e86 Mon Sep 17 00:00:00 2001 From: Jacopo Mondi Date: Tue, 29 Jun 2021 17:26:23 +0200 Subject: android: capabilities: Collect per-stream frame durations Collect the per-stream frame durations while building the list of supported stream formats and resolutions. In order to get an updated list of controls it is necessary to apply to the Camera the configuration we're testing, which was so far only validated. The per-configuration durations will be used to populate the Android ANDROID_SCALER_AVAILABLE_MIN_FRAME_DURATIONS static metadata. Signed-off-by: Jacopo Mondi Reviewed-by: Paul Elder Reviewed-by: Umang Jain Reviewed-by: Laurent Pinchart --- src/android/camera_capabilities.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/android/camera_capabilities.h') diff --git a/src/android/camera_capabilities.h b/src/android/camera_capabilities.h index a1259699..6e55ddab 100644 --- a/src/android/camera_capabilities.h +++ b/src/android/camera_capabilities.h @@ -43,6 +43,8 @@ private: struct Camera3StreamConfiguration { libcamera::Size resolution; int androidFormat; + int64_t minFrameDurationNsec; + int64_t maxFrameDurationNsec; }; bool validateManualSensorCapability(); -- cgit v1.2.1