[libcamera-devel] [PATCH 0/2] libcamera: request: Make Stream pointer const

Niklas Söderlund niklas.soderlund at ragnatech.se
Tue Aug 11 01:45:26 CEST 2020


Hi,

This series aims to make the Request object more strict by making the 
Stream pointers it interacts with as const. This is good as it makes it 
more apparent to pipeline handlers that the pointer should only be 
regarded as a key when it comes from the user.

Niklas Söderlund (2):
  libcamera: request: Declare a using directive for map of buffers
  libcamera: request: Make Stream pointer const

 include/libcamera/request.h          | 10 ++++++----
 src/android/camera_device.cpp        |  2 +-
 src/cam/capture.cpp                  |  6 +++---
 src/cam/capture.h                    |  2 +-
 src/libcamera/camera.cpp             |  4 ++--
 src/libcamera/pipeline/ipu3/ipu3.cpp |  2 +-
 src/libcamera/request.cpp            | 11 ++++++++---
 src/qcam/main_window.h               |  6 +++---
 test/camera/buffer_import.cpp        |  4 ++--
 test/camera/capture.cpp              |  4 ++--
 10 files changed, 29 insertions(+), 22 deletions(-)

-- 
2.28.0



More information about the libcamera-devel mailing list