summaryrefslogtreecommitdiff
path: root/src/libcamera/device_enumerator.cpp
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo@jmondi.org>2019-09-04 16:18:23 +0200
committerJacopo Mondi <jacopo@jmondi.org>2019-09-05 23:27:36 +0200
commitfcd5a4f335530605a94eb4d3e6e807ec5e5824f9 (patch)
treecb1c9fa242cc1394310eacc2c3f09b705afffa88 /src/libcamera/device_enumerator.cpp
parent3986009cf14d94e2312a31d799c2e5d45d30a5b9 (diff)
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>
Diffstat (limited to 'src/libcamera/device_enumerator.cpp')
0 files changed, 0 insertions, 0 deletions