[libcamera-devel,0/2] Check a buffer validness by CameraBuffer::IsValid()
mbox series

Message ID 20210405040424.1929737-1-hiroh@chromium.org
Headers show
Series
  • Check a buffer validness by CameraBuffer::IsValid()
Related show

Message

Hirokazu Honda April 5, 2021, 4:04 a.m. UTC
This patch series enables validating buffer_handle by
CemeraBuffer::IsValid(). CameraBuffer may have a platform
specific backend with which a platform specific validation is
doable. For instance, cros::CameraBufferManager checks if a
buffer has a magic number.

Hirokazu Honda (2):
  android: CameraBuffer: Add option of not mapping a buffer
  android: CameraDevice: Validate buffer_handle by
    CameraBuffer::isValid()

 src/android/camera_buffer.h              |  7 ++++---
 src/android/camera_device.cpp            |  8 ++++++++
 src/android/mm/cros_camera_buffer.cpp    | 17 +++++++++++++----
 src/android/mm/generic_camera_buffer.cpp | 20 ++++++++++++--------
 4 files changed, 37 insertions(+), 15 deletions(-)

--
2.31.0.208.g409f899ff0-goog