[libcamera-devel] [PATCH 0/2] Check a buffer validness by CameraBuffer::IsValid()
Hirokazu Honda
hiroh at chromium.org
Mon Apr 5 06:04:22 CEST 2021
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
More information about the libcamera-devel
mailing list