diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2024-08-04 00:09:14 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2024-08-05 19:29:03 +0300 |
commit | 57396a0e3f08a5cd1ea6f48c66f3decdfeaa7dfd (patch) | |
tree | 14c68a31bdf901753b069d9cff9ad1d1a82b670d /src/v4l2/v4l2_compat.cpp | |
parent | 46275401e6e68c750e5fa4cce77731ee0fd35172 (diff) |
libcamera: software_isp: Replace malloc() with std::vector<>
libcamera is implemented in C++, use std::vector<> to manage the
dynamically allocated line buffers instead of malloc() and free(). This
simplifies the code and improves memory safety by ensuring no allocation
will be leaked.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Milan Zamazal <mzamazal@redhat.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Tested-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'src/v4l2/v4l2_compat.cpp')
0 files changed, 0 insertions, 0 deletions