[libcamera-devel] [PATCH 0/2] Use PlatfromFrameBufferAllocator in CameraStream
Hirokazu Honda
hiroh at chromium.org
Tue Nov 30 13:44:26 CET 2021
CameraStream has been using FrameBufferAllocator to create
FrameBuffer. FrameBufferAllocator allocats buffers using V4L2 API.
It is not allowed to allocate a new buffer while Camera runs. This
replaces the allocator in CameraStream with
PlatformFrameBufferAllocator. It allocates a buffer in a platform
dependent graphic buffer allocation API.
I confirm no regression in CtsCameraTestCases is caused with this
patch series.
Hirokazu Honda (2):
android: camera_capabilities: Add function to convert PixelFormat to
android format
android: camera_stream: Use PlatformFrameBufferAllocator
src/android/camera_capabilities.cpp | 18 ++++++++++++++++++
src/android/camera_capabilities.h | 2 ++
src/android/camera_stream.cpp | 24 +++++++++++++-----------
src/android/camera_stream.h | 5 +++--
4 files changed, 36 insertions(+), 13 deletions(-)
--
2.34.0.rc2.393.gf8c9666880-goog
More information about the libcamera-devel
mailing list