[libcamera-devel,0/2] Use PlatfromFrameBufferAllocator in CameraStream
mbox series

Message ID 20211130124428.2163669-1-hiroh@chromium.org
Headers show
Series
  • Use PlatfromFrameBufferAllocator in CameraStream
Related show

Message

Hirokazu Honda Nov. 30, 2021, 12:44 p.m. UTC
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