[libcamera-devel,v3,0/3] Improve CameraBuffer implementation
mbox series

Message ID 20210826080021.3454520-1-hiroh@chromium.org
Headers show
Series
  • Improve CameraBuffer implementation
Related show

Message

Hirokazu Honda Aug. 26, 2021, 8 a.m. UTC
This improves CameraBuffer implementation as follows:
* Maps planes with reasonable assumtion on non ChromeOS platforms
* Maps planes in the first plane() call
* Adds stride/offset/size getter functions

Change in v3:
- Address comments from Jacopo and Laurent

Change in v2:
- Address Laurent's comments

Hirokazu Honda (3):
  android: generic_camera_buffer: Correct buffer mapping
  android: camera_buffer: Map buffer in the first plane() call
  android: camera_buffer: Add stride/offset/size function

 src/android/camera_buffer.h              |  30 ++++-
 src/android/camera_stream.cpp            |   4 +-
 src/android/mm/cros_camera_buffer.cpp    |  97 ++++++++-----
 src/android/mm/generic_camera_buffer.cpp | 165 +++++++++++++++++++----
 4 files changed, 238 insertions(+), 58 deletions(-)

--
2.33.0.rc2.250.ged5fa647cd-goog