IRSOL
C++ code implementing socket server for interacting with Baumer camera.
irsol::camera::Pixel< BitDepth > Struct Template Reference

Represents a pixel with a given bit depth. More...

#include <pixel_format.hpp>

Public Types

using representation = typename PixelRepresentation< BitDepth >::type
 The integral type used to represent pixel values at this bit depth.
 

Static Public Member Functions

static constexpr uint64_t max ()
 Returns the maximum representable pixel value for this bit depth.
 
static constexpr uint64_t min ()
 Returns the minimum representable pixel value (always zero).
 

Detailed Description

template<uint8_t BitDepth>
struct irsol::camera::Pixel< BitDepth >

Represents a pixel with a given bit depth.

Provides the underlying integral representation type for the pixel data, along with compile-time constants for minimum and maximum representable values.

Template Parameters
BitDepthNumber of bits per pixel.

Definition at line 77 of file pixel_format.hpp.

Member Typedef Documentation

◆ representation

template<uint8_t BitDepth>
using irsol::camera::Pixel< BitDepth >::representation = typename PixelRepresentation<BitDepth>::type

The integral type used to represent pixel values at this bit depth.

Definition at line 80 of file pixel_format.hpp.

Member Function Documentation

◆ max()

template<uint8_t BitDepth>
static constexpr uint64_t irsol::camera::Pixel< BitDepth >::max ( )
inlinestaticconstexpr

Returns the maximum representable pixel value for this bit depth.

Computed as (2^BitDepth) - 1.

Returns
Maximum pixel value.

Definition at line 89 of file pixel_format.hpp.

90 {
91 return (1ULL << BitDepth) - 1;
92 }

◆ min()

template<uint8_t BitDepth>
static constexpr uint64_t irsol::camera::Pixel< BitDepth >::min ( )
inlinestaticconstexpr

Returns the minimum representable pixel value (always zero).

Returns
Minimum pixel value.

Definition at line 99 of file pixel_format.hpp.

100 {
101 return 0;
102 }

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