libcamera/Documentation/guides
Barnabás Pőcze 86fa7300fa libcamera: camera: Take span of StreamRole instead of vector
Change the parameter type of `generateConfiguration()` from `const std::vector&`
to `libcamera::Span`. A span is almost always preferable to a const vector ref
because it does not force dynamic allocation when none are needed, and it allows
any contiguous container to be used.

A new overload is added that accepts an initializer list so that

  cam->generateConfiguration({ ... })

keeps working.

There is no API break since a span can be constructed from a vector
and the initializer list overload takes care of the initializer lists,
but this change causes an ABI break.

Signed-off-by: Barnabás Pőcze <pobrn@protonmail.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
[Kieran: Apply checkstyle fixups]
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
2023-07-04 22:48:30 +01:00
..
application-developer.rst Documentation: Small typo fix 2023-02-12 20:01:25 +02:00
introduction.rst pipeline: ipa: raspberrypi: Refactor and move the Raspberry Pi code 2023-05-04 20:47:40 +03:00
ipa.rst meson: ipa: Add mapping for pipeline handler to mojom interface file 2023-05-04 18:38:25 +03:00
pipeline-handler.rst libcamera: camera: Take span of StreamRole instead of vector 2023-07-04 22:48:30 +01:00
tracing.rst guides: tracing: Mention where to find the trace file 2021-12-01 15:42:55 +00:00