Expand description
Colorimetry metadata for image/video tensors.
Four orthogonal axes mirroring V4L2’s struct v4l2_format colorimetry
fields and libcamera::ColorSpace, named to match the EdgeFirst
CameraFrame.msg schema so values round-trip through the ROS layer.
Each enum is #[non_exhaustive]; unknown/_DEFAULT values map to None.
Structs§
- Colorimetry
- Full 4-axis colorimetry. Each axis is
Option;Nonemeans “undefined” and is never auto-filled — consumers (e.g.convert()) resolve missing axes at use-time without mutating the value. - Matrix
Weights - YCbCr matrix luma weights
(kr, kb); the green weight iskg = 1 - kr - kb. - Range
Scaling - Quantization swings (out of 255) for a YCbCr range: the luma black offset and
the luma/chroma excursions. Full range is
0 / 255 / 255; limited (studio) range is16 / 219 / 224.
Enums§
- Color
Encoding - YCbCr encoding matrix (
color_encodingin the EdgeFirst schema). - Color
Range - Quantization range (
color_rangein the EdgeFirst schema). - Color
Space - Color primaries (
color_spacein the EdgeFirst schema). - Color
Transfer - Transfer function (
color_transferin the EdgeFirst schema).