Files
external_libcamera/src/libcamera/framebuffer_allocator.cpp
Barnabás Pőcze 1cd7646f97 libcamera: framebuffer_allocator: Avoid double map lookup
Use `try_emplace()` on the map instead of `count()`
and `operator[]` to avoid walking the tree twice.

Signed-off-by: Barnabás Pőcze <pobrn@protonmail.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2022-11-28 16:11:20 +02:00

5.0 KiB