7#include "../result.hpp"
16 class FixedSizeListBuilder;
78 struct Loggable<encodings::SphericalHarmonics3Rgb> {
79 static constexpr std::string_view ComponentType =
"rerun.encodings.SphericalHarmonics3Rgb";
82 static const std::shared_ptr<arrow::DataType>& arrow_data_type();
85 static Result<std::shared_ptr<arrow::Array>> to_arrow(
86 const encodings::SphericalHarmonics3Rgb* instances,
size_t num_instances
91 arrow::FixedSizeListBuilder* builder,
const encodings::SphericalHarmonics3Rgb* elements,
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:103
All built-in encodings. See Types in the Rerun manual.
Definition rerun.hpp:96
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:26
Encoding: Spherical harmonics coefficients of degrees 1 through 3 for RGB, as 15 half-precision RGB t...
Definition spherical_harmonics3rgb.hpp:43
std::array< std::array< rerun::half, 3 >, 15 > coefficients
Spherical harmonics coefficients of degrees 1 through 3, coefficient-major.
Definition spherical_harmonics3rgb.hpp:45
static constexpr size_t NUM_COEFFICIENTS
The number of coefficients of degrees 1 through 3, i.e. the number of RGB triples.
Definition spherical_harmonics3rgb.hpp:49
SphericalHarmonics3Rgb(const std::array< std::array< float, 3 >, NUM_COEFFICIENTS > &coefficients_)
Construct from 15 RGB coefficient triples of float, converting each to half-precision.