Functions for image filling.
More...
|
SIMD_API void | SimdFill (uint8_t *dst, size_t stride, size_t width, size_t height, size_t pixelSize, uint8_t value) |
| Fills pixels data of image by given value. More...
|
|
SIMD_API void | SimdFillFrame (uint8_t *dst, size_t stride, size_t width, size_t height, size_t pixelSize, size_t frameLeft, size_t frameTop, size_t frameRight, size_t frameBottom, uint8_t value) |
| Fills pixels data of image except for the portion bounded frame by given value. More...
|
|
SIMD_API void | SimdFillBgr (uint8_t *dst, size_t stride, size_t width, size_t height, uint8_t blue, uint8_t green, uint8_t red) |
| Fills pixels data of 24-bit BGR image by given color(blue, green, red). More...
|
|
SIMD_API void | SimdFillBgra (uint8_t *dst, size_t stride, size_t width, size_t height, uint8_t blue, uint8_t green, uint8_t red, uint8_t alpha) |
| Fills pixels data of 32-bit BGRA image by given color(blue, green, red, alpha). More...
|
|
template<template< class > class A> |
SIMD_INLINE void | Fill (View< A > &dst, uint8_t value) |
| Fills pixels data of image by given value. More...
|
|
template<template< class > class A> |
SIMD_INLINE void | FillFrame (View< A > &dst, const Rectangle< ptrdiff_t > &frame, uint8_t value) |
| Fills pixels data of image except for the portion bounded frame by given value. More...
|
|
template<template< class > class A> |
SIMD_INLINE void | FillBgr (View< A > &dst, uint8_t blue, uint8_t green, uint8_t red) |
| Fills pixels data of 24-bit BGR image by given color(blue, green, red). More...
|
|
template<template< class > class A> |
SIMD_INLINE void | FillBgra (View< A > &dst, uint8_t blue, uint8_t green, uint8_t red, uint8_t alpha=0xFF) |
| Fills pixels data of 32-bit BGRA image by given color(blue, green, red, alpha). More...
|
|
Functions for image filling.
void SimdFill |
( |
uint8_t * |
dst, |
|
|
size_t |
stride, |
|
|
size_t |
width, |
|
|
size_t |
height, |
|
|
size_t |
pixelSize, |
|
|
uint8_t |
value |
|
) |
| |
Fills pixels data of image by given value.
- Note
- This function has a C++ wrapper Simd::Fill(View<A>& dst, uint8_t value).
- Parameters
-
[out] | dst | - a pointer to pixels data of destination image. |
[in] | stride | - a row size of the dst image. |
[in] | width | - an image width. |
[in] | height | - an image height. |
[in] | pixelSize | - a size of the image pixel. |
[in] | value | - a value to fill image. |
void SimdFillFrame |
( |
uint8_t * |
dst, |
|
|
size_t |
stride, |
|
|
size_t |
width, |
|
|
size_t |
height, |
|
|
size_t |
pixelSize, |
|
|
size_t |
frameLeft, |
|
|
size_t |
frameTop, |
|
|
size_t |
frameRight, |
|
|
size_t |
frameBottom, |
|
|
uint8_t |
value |
|
) |
| |
Fills pixels data of image except for the portion bounded frame by given value.
- Note
- This function has a C++ wrapper Simd::FillFrame(View<A>& dst, const Rectangle<ptrdiff_t> & frame, uint8_t value).
- Parameters
-
[out] | dst | - a pointer to pixels data of destination image. |
[in] | stride | - a row size of the dst image. |
[in] | width | - an image width. |
[in] | height | - an image height. |
[in] | pixelSize | - a size of the image pixel. |
[in] | frameLeft | - a frame left side. |
[in] | frameTop | - a frame top side. |
[in] | frameRight | - a frame right side. |
[in] | frameBottom | - a frame bottom side. |
[in] | value | - a value to fill image. |
void SimdFillBgr |
( |
uint8_t * |
dst, |
|
|
size_t |
stride, |
|
|
size_t |
width, |
|
|
size_t |
height, |
|
|
uint8_t |
blue, |
|
|
uint8_t |
green, |
|
|
uint8_t |
red |
|
) |
| |
Fills pixels data of 24-bit BGR image by given color(blue, green, red).
- Note
- This function has a C++ wrapper Simd::FillBgr(View<A>& dst, uint8_t blue, uint8_t green, uint8_t red).
- Parameters
-
[out] | dst | - a pointer to pixels data of destination image. |
[in] | stride | - a row size of the dst image. |
[in] | width | - an image width. |
[in] | height | - an image height. |
[in] | blue | - a blue channel of BGR to fill image. |
[in] | green | - a green channel of BGR to fill image. |
[in] | red | - a red channel of BGR to fill image. |
void SimdFillBgra |
( |
uint8_t * |
dst, |
|
|
size_t |
stride, |
|
|
size_t |
width, |
|
|
size_t |
height, |
|
|
uint8_t |
blue, |
|
|
uint8_t |
green, |
|
|
uint8_t |
red, |
|
|
uint8_t |
alpha |
|
) |
| |
Fills pixels data of 32-bit BGRA image by given color(blue, green, red, alpha).
- Note
- This function has a C++ wrapper Simd::FillBgra(View<A>& dst, uint8_t blue, uint8_t green, uint8_t red, uint8_t alpha).
- Parameters
-
[out] | dst | - a pointer to pixels data of destination image. |
[in] | stride | - a row size of the dst image. |
[in] | width | - an image width. |
[in] | height | - an image height. |
[in] | blue | - a blue channel of BGRA to fill image. |
[in] | green | - a green channel of BGRA to fill image. |
[in] | red | - a red channel of BGRA to fill image. |
[in] | alpha | - a alpha channel of BGRA to fill image. |
void Fill |
( |
View< A > & |
dst, |
|
|
uint8_t |
value |
|
) |
| |
Fills pixels data of image by given value.
- Note
- This function is a C++ wrapper for function SimdFill.
- Parameters
-
[out] | dst | - a destination image. |
[in] | value | - a value to fill image. |
void FillFrame |
( |
View< A > & |
dst, |
|
|
const Rectangle< ptrdiff_t > & |
frame, |
|
|
uint8_t |
value |
|
) |
| |
Fills pixels data of image except for the portion bounded frame by given value.
- Note
- This function is a C++ wrapper for function SimdFillFrame.
- Parameters
-
[out] | dst | - a destination image. |
[in] | frame | - a frame rectangle. |
[in] | value | - a value to fill image. |
void FillBgr |
( |
View< A > & |
dst, |
|
|
uint8_t |
blue, |
|
|
uint8_t |
green, |
|
|
uint8_t |
red |
|
) |
| |
Fills pixels data of 24-bit BGR image by given color(blue, green, red).
- Note
- This function is a C++ wrapper for function SimdFillBgr.
- Parameters
-
[out] | dst | - a destination image. |
[in] | blue | - a blue channel of BGR to fill image. |
[in] | green | - a green channel of BGR to fill image. |
[in] | red | - a red channel of BGR to fill image. |
void FillBgra |
( |
View< A > & |
dst, |
|
|
uint8_t |
blue, |
|
|
uint8_t |
green, |
|
|
uint8_t |
red, |
|
|
uint8_t |
alpha = 0xFF |
|
) |
| |
Fills pixels data of 32-bit BGRA image by given color(blue, green, red, alpha).
- Note
- This function is a C++ wrapper for function SimdFillBgra.
- Parameters
-
[out] | dst | - a destination image. |
[in] | blue | - a blue channel of BGRA to fill image. |
[in] | green | - a green channel of BGRA to fill image. |
[in] | red | - a red channel of BGRA to fill image. |
[in] | alpha | - a alpha channel of BGRA to fill image. It is equal to 255 by default. |
|