mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-14 16:09:51 +03:00
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> |
||
---|---|---|
.. | ||
cros | ||
data | ||
jpeg | ||
metadata | ||
mm | ||
yuv | ||
camera3_hal.cpp | ||
camera_buffer.h | ||
camera_capabilities.cpp | ||
camera_capabilities.h | ||
camera_device.cpp | ||
camera_device.h | ||
camera_hal_config.cpp | ||
camera_hal_config.h | ||
camera_hal_manager.cpp | ||
camera_hal_manager.h | ||
camera_metadata.cpp | ||
camera_metadata.h | ||
camera_ops.cpp | ||
camera_ops.h | ||
camera_request.cpp | ||
camera_request.h | ||
camera_stream.cpp | ||
camera_stream.h | ||
cros_mojo_token.h | ||
frame_buffer_allocator.h | ||
hal_framebuffer.cpp | ||
hal_framebuffer.h | ||
meson.build | ||
post_processor.h |