Simd Library Documentation.

Home | Release Notes | Download | Documentation | Issues | GitHub

24-bit BGR pixel. More...

#include <SimdPixel.hpp>

Public Member Functions

 Bgr24 (const uint8_t &gray=uint8_t(0))
 
 Bgr24 (const uint8_t &b, const uint8_t &g, const uint8_t &r)
 
 Bgr24 (const Bgra32 &p)
 
 Bgr24 (const Rgb24 &p)
 
 Bgr24 (const Rgba32 &p)
 
 Bgr24 (const Bgr24 &p)
 

Static Public Member Functions

template<template< class > class A>
static const Bgr24At (const View< A > &view, ptrdiff_t col, ptrdiff_t row)
 
template<template< class > class A>
static Bgr24At (View< A > &view, ptrdiff_t col, ptrdiff_t row)
 

Data Fields

uint8_t blue
 8-bit blue channel 24-bit BGR pixel.
 
uint8_t green
 8-bit green channel 24-bit BGR pixel.
 
uint8_t red
 8-bit red channel 24-bit BGR pixel.
 

Detailed Description

24-bit BGR pixel.

Provides manipulation of 24-bit BGR (Blue, Green, Red) pixels of the View struct.

Constructor & Destructor Documentation

◆ Bgr24() [1/6]

SIMD_INLINE Bgr24 ( const uint8_t &  gray = uint8_t(0))

Creates a new 24-bit BGR pixel structure with specified channel values.

Parameters
[in]gray- initial value for all channels. It is equal to 0 by default.

◆ Bgr24() [2/6]

SIMD_INLINE Bgr24 ( const uint8_t &  b,
const uint8_t &  g,
const uint8_t &  r 
)

Creates a new 24-bit BGR pixel structure with specified channel values.

Parameters
[in]b- initial value for blue channel.
[in]g- initial value for green channel.
[in]r- initial value for red channel.

◆ Bgr24() [3/6]

SIMD_INLINE Bgr24 ( const Bgra32 p)

Creates a new 24-bit BGR pixel structure on the base of 32-bit BGRA pixel.

Parameters
[in]p- 32-bit BGRA pixel.

◆ Bgr24() [4/6]

SIMD_INLINE Bgr24 ( const Rgb24 p)

Creates a new 24-bit BGR pixel structure on the base of 24-bit RGB pixel.

Parameters
[in]p- 24-bit RGB pixel.

◆ Bgr24() [5/6]

SIMD_INLINE Bgr24 ( const Rgba32 p)

Creates a new 24-bit BGR pixel structure on the base of 32-bit RGBA pixel.

Parameters
[in]p- 32-bit RGBA pixel.

◆ Bgr24() [6/6]

SIMD_INLINE Bgr24 ( const Bgr24 p)

Creates a copy of 24-bit BGR pixel structure.

Parameters
[in]p- 24-bit BGR pixel.

Member Function Documentation

◆ At() [1/2]

template< template< class > class A > static const Bgr24 & At ( const View< A > &  view,
ptrdiff_t  col,
ptrdiff_t  row 
)
static

Gets constant reference to the pixel with specific coordinates at the image view.

Parameters
[in]view- an image view of 24-bit BGR pixel format.
[in]col- x-coordinate of the pixel.
[in]row- y-coordinate of the pixel.
Returns
a constant reference to the pixel.

◆ At() [2/2]

template< template< class > class A > static Bgr24 & At ( View< A > &  view,
ptrdiff_t  col,
ptrdiff_t  row 
)
static

Gets reference to the pixel with specific coordinates at the image view.

Parameters
[in]view- an image view of 24-bit BGR pixel format.
[in]col- x-coordinate of the pixel.
[in]row- y-coordinate of the pixel.
Returns
a reference to the pixel.