libcamera/src
Laurent Pinchart a07968bed2 libcamera: pipeline_handler: Return unique_ptr from generateConfiguration()
The PipelineHandler::generateConfiguration() function allocates a
CameraConfiguration instance and returns it. The ownership of the
instance is transferred to the caller. This is a perfect match for a
std::unique_ptr<>, which the Camera::generateConfiguration() function
already returns. Update PipelineHandler::generateConfiguration() to
match it. This fixes a memory leak in one of the error return paths in
the IPU3 pipeline handler.

While at it, update the Camera::generateConfiguration() function
documentation to drop the sentence that describes the ownership
transfer, as that is implied by usage of std::unique_ptr<>.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
2022-11-09 23:56:21 +02:00
..
android android: libcamera: add useful debug prints 2022-10-28 12:03:58 +01:00
apps apps: Share common source between applications 2022-10-24 23:11:37 +03:00
gstreamer gstreamer: Check gstreamer version before using newer macros 2022-09-12 22:44:53 +05:30
ipa ipa: rkisp1: Move shutter speed and analogue gain limits from agc to sensor 2022-11-09 23:43:57 +02:00
libcamera libcamera: pipeline_handler: Return unique_ptr from generateConfiguration() 2022-11-09 23:56:21 +02:00
py py: Support controls that are ControlTypeNone 2022-09-30 23:12:05 +03:00
v4l2 libcamera: v4l2_pixelformat: Return the list of V4L2 formats 2022-08-03 15:07:20 +02:00
meson.build Move test applications to src/apps/ 2022-10-20 13:36:25 +03:00