6#include "../image_utils.hpp"
7#include "../result.hpp"
8#include "channel_datatype.hpp"
9#include "color_model.hpp"
10#include "pixel_format.hpp"
89 struct Loggable<datatypes::ImageFormat> {
90 static constexpr const char Name[] =
"rerun.datatypes.ImageFormat";
93 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
96 static Result<std::shared_ptr<arrow::Array>> to_arrow(
97 const datatypes::ImageFormat* instances,
size_t num_instances
102 arrow::StructBuilder* builder,
const datatypes::ImageFormat* elements,
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:91
All built-in datatypes. See Types in the Rerun manual.
Definition rerun.hpp:78
PixelFormat
Datatype: Specifieds a particular format of an archetypes::Image.
Definition pixel_format.hpp:34
ColorModel
Datatype: Specified what color components are present in an archetypes::Image.
Definition color_model.hpp:26
@ L
Grayscale luminance intencity/brightness/value, sometimes called Y
ChannelDatatype
Datatype: The innermost datatype of an image.
Definition channel_datatype.hpp:26
@ U8
8-bit unsigned integer.
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:22
size_t datatype_bits(datatypes::ChannelDatatype value)
Number of bits used by this element type.
Definition image_utils.hpp:20
size_t color_model_channel_count(datatypes::ColorModel color_model)
Returns the number of channels for a given color model.
Definition image_utils.hpp:136
The width and height of an image.
Definition image_utils.hpp:12