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

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

Message

Hirokazu Honda March 24, 2021, 7:07 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.

The changes in v2:
- Address Laurent's review comments.

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      | 92 ++++++++++++------------------
 src/android/camera_device.h        | 19 +++---
 src/android/camera_hal_manager.cpp | 25 +++-----
 src/android/camera_hal_manager.h   |  4 +-
 4 files changed, 57 insertions(+), 83 deletions(-)

--
2.31.0.291.g576ba9dcdaf-goog