Auterion App SDK
Auterion SDK is a library that can be used by AuterionOS apps to communicate with the system.
auterion::ImageHeader Struct Reference

Contains image metadata. More...

#include <auterion_sdk/camera/camera.hpp>

Public Types

enum class  Encoding {
  Unknown , Y800 , Y16 , UYVY ,
  YUY2 , I420 , NV12 , RGB8 ,
  BGR8 , BA81 , GBRG , GRBG ,
  RGGB
}
 Image encoding, following FourCC. More...
 

Public Member Functions

 ImageHeader (int width_, int height_, Encoding encoding_, int step_=0)
 
template<typename ImageT = auterion_core_msgs::msg::Image8m>
 ImageHeader (const ImageT &image)
 
template<typename ImageT = auterion_core_msgs::msg::Image8m>
void toImage (ImageT &image)
 
size_t planeOffset (int plane) const
 
size_t planeSizeBytes (int plane) const
 
size_t imageSizeBytes () const
 

Public Attributes

int width {}
 
int height {}
 
int step {}
 full row size in bytes
 
Encoding encoding {Encoding::Unknown}
 
rclcpp::Time timestamp {}
 

Detailed Description

Contains image metadata.

Member Enumeration Documentation

◆ Encoding

Image encoding, following FourCC.

Enumerator
Y800 

8 bit monochrome image (GREY), https://fourcc.org/pixel-format/yuv-y800/

Y16 

16 bit monochrome image, https://fourcc.org/pixel-format/yuv-y16/

UYVY 

YUV 4:2:2, https://fourcc.org/pixel-format/yuv-uyvy/.

YUY2 

YUV 4:2:2 (YUYV), https://fourcc.org/pixel-format/yuv-yuy2/.

I420 

YUV 4:2:0, https://fourcc.org/pixel-format/yuv-i420/.

NV12 

YUV 4:2:0, https://fourcc.org/pixel-format/yuv-nv12/.

BA81 

8-bit Bayer (https://docs.kernel.org/userspace-api/media/v4l/pixfmt-srggb8.html)

BGBG/GRGR (also BGGR)

GBRG 

GBGB/RGRG.

GRBG 

GRGR/BGBG.

RGGB 

RGRG/GBGB.


The documentation for this struct was generated from the following file: