[libcamera-devel,0/8] Improve pointer types in android HAL adaptation layer
mbox series

Message ID 20210323014226.3211412-1-hiroh@chromium.org
Headers show
Series
  • Improve pointer types in android HAL adaptation layer
Related show

Message

Hirokazu Honda March 23, 2021, 1:42 a.m. UTC
This patch series is intended to clarify the ownership of objects
and omit manual new/delete code by improving pointer types in
android HAL adaptation layer.

Hirokazu Honda (8):
  android: CameraHalManager: Hold CameraDevice with std::unique_ptr
  android: CameraHalManager: Hold CameraManager with std::unique_ptr
  android: CameraHalManager: Fix a function call of a moved Camera
  android: CameraDevice: Take shared_ptr in constructor
  android: CameraDevice: Return const shared_ptr& by camera()
  android: Camera3RequestDescriptor: Manage buffers with std::vector
  android: CameraDevice: Manage staticMetadata_ with std::unique_ptr
  android: CameraDevice: Manage requestTemplates_ with std::unique_ptr

 src/android/camera_device.cpp      | 82 ++++++++++++------------------
 src/android/camera_device.h        | 19 ++++---
 src/android/camera_hal_manager.cpp | 31 ++++-------
 src/android/camera_hal_manager.h   |  4 +-
 4 files changed, 55 insertions(+), 81 deletions(-)

--
2.31.0.rc2.261.g7f71774620-goog