summaryrefslogtreecommitdiff
path: root/src/apps/cam/file_sink.h
diff options
context:
space:
mode:
authorFang Hui <hui.fang@nxp.com>2024-02-26 11:08:12 +0800
committerJacopo Mondi <jacopo.mondi@ideasonboard.com>2024-03-22 11:05:49 +0100
commitedef303bbec5fc706e4cdc528f290bb1a254a82e (patch)
tree2263204f3214b2afc759b6e49fa31de4ae38bc8c /src/apps/cam/file_sink.h
parented632bf37ebe94310d15f2ef8d25552fea88bafc (diff)
android: camera_device: Save capture settings unconditionally
As the Android framework sends to the camera device settings incrementally (only the ones that change are updated), the CameraDevice class in the Android camera HAL keeps a copy of the last received settings to be able to apply controls to the libcamera Camera and to populate metadata correctly. When a valid 'camera3Request->settings' is provided, it gets saved to 'lastSettings_' but 'descriptor->settings_' is not initialized until the next frame (assuming it does not contain more settings). Fix this by assigning to 'descriptor->settings_' the last saved settings unconditionally. Signed-off-by: Fang Hui <hui.fang@nxp.com> Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com> Tested-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Diffstat (limited to 'src/apps/cam/file_sink.h')
0 files changed, 0 insertions, 0 deletions