Simd Library Documentation.

Home | Release Notes | Download | Documentation | Forum | SourceForge | GitHub

24-bit BGR pixel. More...

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 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

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.
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.
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.
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

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.
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.