Files
external_libcamera/test
Barnabás Pőcze 6ce7132b1b ipa: libipa: quantized: Enable constexpr operation
There is nothing inherently non-constexpr in the `Quantized` type. Whether
it can work in `constexpr` contexts depends on the traits type. There is
no reason to explicitly disallow `constexpr` operation. So mark all eligible
methods `constexpr`.

In addition, add some `static_assert()`s to the "quantized" test to check
constexpr operation.

For example, `FixedPointQTraits<...>::toFloat()` is `constexpr`, so this
enables the construction of `{U,}Q<...>` from the underlying quantized
value in `constexpr` contexts, which can be useful for example for
storing default values in e.g. `static constexpr` variables.

Signed-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2026-03-20 08:35:17 +01:00
..
2026-02-10 09:53:32 +01:00
2026-02-10 09:53:32 +01:00
2026-02-10 09:53:32 +01:00
2022-08-26 01:04:27 +03:00
2025-05-20 09:49:01 +02:00
2026-02-10 09:53:32 +01:00
2024-12-05 22:29:57 +02:00
2026-02-10 09:53:32 +01:00