summaryrefslogtreecommitdiff
path: root/src/ipa/ipu3/ipa_context.h
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo@jmondi.org>2022-05-18 19:19:19 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-05-22 12:52:10 +0300
commit3a91e37bb82a9df0027adc4182fdb012068c7932 (patch)
tree4b705d388c7cee2821ca92f65b9c2cef791d078a /src/ipa/ipu3/ipa_context.h
parent38bff0c82bf18e7bc7a35a5395ccdc8078797f30 (diff)
cam: Queue requests through CameraSession::queueRequest()
The CameraSession::processRequest() frame completion handler currently re-queues completed requests by calling Camera::queueRequests() explicitely. In order to maintain the CameraSession::queuedRequest_ counter up to date with the actual number of queued requests, call the CameraSession::queueRequest() instead of operating the Camera directly. Signed-off-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/ipa/ipu3/ipa_context.h')
0 files changed, 0 insertions, 0 deletions
> * Copyright (C) 2019, Google Inc. * * camera3_hal.cpp - Android Camera HALv3 module */ #include <hardware/camera_common.h> #include "libcamera/internal/log.h" #include "camera_device.h" #include "camera_hal_manager.h" using namespace libcamera; LOG_DEFINE_CATEGORY(HAL) static CameraHalManager cameraManager; /*------------------------------------------------------------------------------ * Android Camera HAL callbacks */ static int hal_get_number_of_cameras(void) { return cameraManager.numCameras(); } static int hal_get_camera_info(int id, struct camera_info *info) { return cameraManager.getCameraInfo(id, info); } static int hal_set_callbacks(const camera_module_callbacks_t *callbacks) { return 0; } static int hal_open_legacy(const struct hw_module_t *module, const char *id, uint32_t halVersion, struct hw_device_t **device) { return -ENOSYS; } static int hal_set_torch_mode(const char *camera_id, bool enabled) { return -ENOSYS; } /* * First entry point of the camera HAL module. * * Initialize the HAL but does not open any camera device yet (see hal_dev_open) */ static int hal_init() { LOG(HAL, Info) << "Initialising Android camera HAL"; cameraManager.init(); return 0; } /*------------------------------------------------------------------------------ * Android Camera Device */ static int hal_dev_open(const hw_module_t *module, const char *name, hw_device_t **device) { LOG(HAL, Debug) << "Open camera " << name; int id = atoi(name); CameraDevice *camera = cameraManager.open(id, module); if (!camera) { LOG(HAL, Error)