mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-21 15:53:54 +03:00
android: camera_device: Fix handling of request template
According to the Android camera HALv3 documentation, the request template metadata pack should not be modified after it is returned to the camera stack from the HAL. Currently, the same metadata pack is used for all types of template request, without updating the capture intent there contained to match the requested template type, as correctly reported by the cros_camera_test test application. In order to avoid modifying the single request template already returned to the camera stack in order to update the capture intent it contains, create a map that associates a dedicated template to each supported capture type. Signed-off-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
3986009cf1
commit
fcd5a4f335
2 changed files with 40 additions and 44 deletions
|
@ -61,7 +61,7 @@ private:
|
|||
std::unique_ptr<libcamera::CameraConfiguration> config_;
|
||||
|
||||
CameraMetadata *staticMetadata_;
|
||||
CameraMetadata *requestTemplate_;
|
||||
std::map<unsigned int, CameraMetadata *> requestTemplates_;
|
||||
const camera3_callback_ops_t *callbacks_;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue