summaryrefslogtreecommitdiff
path: root/src/qcam/assets/shader/RGB.frag
diff options
context:
space:
mode:
authorPaul Elder <paul.elder@ideasonboard.com>2020-12-23 12:34:42 +0900
committerPaul Elder <paul.elder@ideasonboard.com>2021-02-16 19:20:57 +0900
commit892c0f4c19f2d423560a1ab4d7498130816852c3 (patch)
tree0068379cb4b8554d2f1ffd89c4166ffd32d7cf18 /src/qcam/assets/shader/RGB.frag
parenta119d755302c9435cc24f345fdb694c8f14a5957 (diff)
libcamera: control_serializer: Save serialized ControlInfoMap in a cache
The ControlSerializer saves all ControlInfoMaps that it has already (de)serialized, in order to (de)serialize ControlLists that contain the ControlInfoMaps. Leverage this to cache ControlInfoMaps, such that the ControlSerializer will not re-(de)serialize a ControlInfoMap that it has previously (de)serialized. Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/qcam/assets/shader/RGB.frag')
0 files changed, 0 insertions, 0 deletions
>(callbacks); return 0; } static int hal_open_legacy([[maybe_unused]] const struct hw_module_t *module, [[maybe_unused]] const char *id, [[maybe_unused]] uint32_t halVersion, [[maybe_unused]] struct hw_device_t **device) { return -ENOSYS; } static int hal_set_torch_mode([[maybe_unused]] const char *camera_id, [[maybe_unused]] 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"; CameraHalManager::instance()->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); auto [camera, ret] = CameraHalManager::instance()->open(id, module); if (!camera) { LOG(HAL, Error) << "Failed to open camera module '" << id << "'"; return ret == -EBUSY ? -EUSERS : ret; } *device = &camera->camera3Device()->common; return 0; } static struct hw_module_methods_t hal_module_methods = { .open = hal_dev_open, }; camera_module_t HAL_MODULE_INFO_SYM = { .common = { .tag = HARDWARE_MODULE_TAG, .module_api_version = CAMERA_MODULE_API_VERSION_2_4, .hal_api_version = HARDWARE_HAL_API_VERSION, .id = CAMERA_HARDWARE_MODULE_ID, .name = "libcamera camera HALv3 module", .author = "libcamera", .methods = &hal_module_methods, .dso = nullptr, .reserved = {}, }, .get_number_of_cameras = hal_get_number_of_cameras, .get_camera_info = hal_get_camera_info, .set_callbacks = hal_set_callbacks, .get_vendor_tag_ops = nullptr, .open_legacy = hal_open_legacy, .set_torch_mode = hal_set_torch_mode, .init = hal_init, .reserved = {}, };