Functions for BGR-24 image conversions.
More...
|
SIMD_API void | SimdBgrToBayer (const uint8_t *bgr, size_t width, size_t height, size_t bgrStride, uint8_t *bayer, size_t bayerStride, SimdPixelFormatType bayerFormat) |
| Converts 24-bit BGR image to 8-bit Bayer image. More...
|
|
SIMD_API void | SimdBgrToBgra (const uint8_t *bgr, size_t width, size_t height, size_t bgrStride, uint8_t *bgra, size_t bgraStride, uint8_t alpha) |
| Converts 24-bit BGR image to 32-bit BGRA image. More...
|
|
SIMD_API void | SimdBgrToGray (const uint8_t *bgr, size_t width, size_t height, size_t bgrStride, uint8_t *gray, size_t grayStride) |
| Converts 24-bit BGR image to 8-bit gray image. More...
|
|
SIMD_API void | SimdBgrToHsl (const uint8_t *bgr, size_t width, size_t height, size_t bgrStride, uint8_t *hsl, size_t hslStride) |
| Converts 24-bit BGR image to 24-bit HSL(Hue, Saturation, Lightness) image. More...
|
|
SIMD_API void | SimdBgrToHsv (const uint8_t *bgr, size_t width, size_t height, size_t bgrStride, uint8_t *hsv, size_t hsvStride) |
| Converts 24-bit BGR image to 24-bit HSV(Hue, Saturation, Value) image. More...
|
|
SIMD_API void | SimdBgrToYuv420p (const uint8_t *bgr, size_t width, size_t height, size_t bgrStride, uint8_t *y, size_t yStride, uint8_t *u, size_t uStride, uint8_t *v, size_t vStride) |
| Converts 24-bit BGR image to YUV420P. More...
|
|
SIMD_API void | SimdBgrToYuv422p (const uint8_t *bgr, size_t width, size_t height, size_t bgrStride, uint8_t *y, size_t yStride, uint8_t *u, size_t uStride, uint8_t *v, size_t vStride) |
| Converts 24-bit BGR image to YUV422P. More...
|
|
SIMD_API void | SimdBgrToYuv444p (const uint8_t *bgr, size_t width, size_t height, size_t bgrStride, uint8_t *y, size_t yStride, uint8_t *u, size_t uStride, uint8_t *v, size_t vStride) |
| Converts 24-bit BGR image to YUV444P. More...
|
|
template<template< class > class A> |
SIMD_INLINE void | BgrToBayer (const View< A > &bgr, View< A > &bayer) |
| Converts 24-bit BGR image to 8-bit Bayer image. More...
|
|
template<template< class > class A> |
SIMD_INLINE void | BgrToBgra (const View< A > &bgr, View< A > &bgra, uint8_t alpha=0xFF) |
| Converts 24-bit BGR image to 32-bit BGRA image. More...
|
|
template<template< class > class A> |
SIMD_INLINE void | BgrToGray (const View< A > &bgr, View< A > &gray) |
| Converts 24-bit BGR image to 8-bit gray image. More...
|
|
template<template< class > class A> |
SIMD_INLINE void | BgrToHsl (const View< A > &bgr, View< A > &hsl) |
| Converts 24-bit BGR image to 24-bit HSL(Hue, Saturation, Lightness) image. More...
|
|
template<template< class > class A> |
SIMD_INLINE void | BgrToHsv (const View< A > &bgr, View< A > &hsv) |
| Converts 24-bit BGR image to 24-bit HSV(Hue, Saturation, Value) image. More...
|
|
template<template< class > class A> |
SIMD_INLINE void | BgrToYuv420p (const View< A > &bgr, View< A > &y, View< A > &u, View< A > &v) |
| Converts 24-bit BGR image to YUV420P. More...
|
|
template<template< class > class A> |
SIMD_INLINE void | BgrToYuv422p (const View< A > &bgr, View< A > &y, View< A > &u, View< A > &v) |
| Converts 24-bit BGR image to YUV422P. More...
|
|
template<template< class > class A> |
SIMD_INLINE void | BgrToYuv444p (const View< A > &bgr, View< A > &y, View< A > &u, View< A > &v) |
| Converts 24-bit BGR image to YUV444P. More...
|
|
Functions for BGR-24 image conversions.
void SimdBgrToBayer |
( |
const uint8_t * |
bgr, |
|
|
size_t |
width, |
|
|
size_t |
height, |
|
|
size_t |
bgrStride, |
|
|
uint8_t * |
bayer, |
|
|
size_t |
bayerStride, |
|
|
SimdPixelFormatType |
bayerFormat |
|
) |
| |
void SimdBgrToBgra |
( |
const uint8_t * |
bgr, |
|
|
size_t |
width, |
|
|
size_t |
height, |
|
|
size_t |
bgrStride, |
|
|
uint8_t * |
bgra, |
|
|
size_t |
bgraStride, |
|
|
uint8_t |
alpha |
|
) |
| |
Converts 24-bit BGR image to 32-bit BGRA image.
All images must have the same width and height.
- Note
- This function has a C++ wrapper Simd::BgrToBgra(const View<A>& bgr, View<A>& bgra, uint8_t alpha).
- Parameters
-
[in] | bgr | - a pointer to pixels data of input 24-bit BGR image. |
[in] | width | - an image width. |
[in] | height | - an image height. |
[in] | bgrStride | - a row size of the bgr image. |
[out] | bgra | - a pointer to pixels data of output 32-bit BGRA image. |
[in] | bgraStride | - a row size of the bgra image. |
[in] | alpha | - a value of alpha channel. |
void SimdBgrToGray |
( |
const uint8_t * |
bgr, |
|
|
size_t |
width, |
|
|
size_t |
height, |
|
|
size_t |
bgrStride, |
|
|
uint8_t * |
gray, |
|
|
size_t |
grayStride |
|
) |
| |
Converts 24-bit BGR image to 8-bit gray image.
All images must have the same width and height.
- Note
- This function has a C++ wrapper Simd::BgrToGray(const View<A>& bgr, View<A>& gray).
- Parameters
-
[in] | bgr | - a pointer to pixels data of input 24-bit BGR image. |
[in] | width | - an image width. |
[in] | height | - an image height. |
[in] | bgrStride | - a row size of the bgr image. |
[out] | gray | - a pointer to pixels data of output 8-bit gray image. |
[in] | grayStride | - a row size of the gray image. |
void SimdBgrToHsl |
( |
const uint8_t * |
bgr, |
|
|
size_t |
width, |
|
|
size_t |
height, |
|
|
size_t |
bgrStride, |
|
|
uint8_t * |
hsl, |
|
|
size_t |
hslStride |
|
) |
| |
Converts 24-bit BGR image to 24-bit HSL(Hue, Saturation, Lightness) image.
All images must have the same width and height.
- Note
- This function has a C++ wrapper Simd::BgrToHsl(const View<A>& bgr, View<A>& hsl).
- Parameters
-
[in] | bgr | - a pointer to pixels data of input 24-bit BGR image. |
[in] | width | - an image width. |
[in] | height | - an image height. |
[in] | bgrStride | - a row size of the bgr image. |
[out] | hsl | - a pointer to pixels data of output 24-bit HSL image. |
[in] | hslStride | - a row size of the hsl image. |
void SimdBgrToHsv |
( |
const uint8_t * |
bgr, |
|
|
size_t |
width, |
|
|
size_t |
height, |
|
|
size_t |
bgrStride, |
|
|
uint8_t * |
hsv, |
|
|
size_t |
hsvStride |
|
) |
| |
Converts 24-bit BGR image to 24-bit HSV(Hue, Saturation, Value) image.
All images must have the same width and height.
- Note
- This function has a C++ wrapper Simd::BgrToHsv(const View<A>& bgr, View<A>& hsv).
- Parameters
-
[in] | bgr | - a pointer to pixels data of input 24-bit BGR image. |
[in] | width | - an image width. |
[in] | height | - an image height. |
[in] | bgrStride | - a row size of the bgr image. |
[out] | hsv | - a pointer to pixels data of output 24-bit HSV image. |
[in] | hsvStride | - a row size of the hsv image. |
void SimdBgrToYuv420p |
( |
const uint8_t * |
bgr, |
|
|
size_t |
width, |
|
|
size_t |
height, |
|
|
size_t |
bgrStride, |
|
|
uint8_t * |
y, |
|
|
size_t |
yStride, |
|
|
uint8_t * |
u, |
|
|
size_t |
uStride, |
|
|
uint8_t * |
v, |
|
|
size_t |
vStride |
|
) |
| |
Converts 24-bit BGR image to YUV420P.
The input BGR and output Y images must have the same width and height. The input U and V images must have the same width and height (half size relative to Y component).
- Note
- This function has a C++ wrapper Simd::BgrToYuv420p(const View<A>& bgr, View<A>& y, View<A>& u, View<A>& v).
- Parameters
-
[in] | bgr | - a pointer to pixels data of input 24-bit BGR image. |
[in] | width | - an image width. |
[in] | height | - an image height. |
[in] | bgrStride | - a row size of the BGR image. |
[out] | y | - a pointer to pixels data of output 8-bit image with Y color plane. |
[in] | yStride | - a row size of the y image. |
[out] | u | - a pointer to pixels data of output 8-bit image with U color plane. |
[in] | uStride | - a row size of the u image. |
[out] | v | - a pointer to pixels data of output 8-bit image with V color plane. |
[in] | vStride | - a row size of the v image. |
void SimdBgrToYuv422p |
( |
const uint8_t * |
bgr, |
|
|
size_t |
width, |
|
|
size_t |
height, |
|
|
size_t |
bgrStride, |
|
|
uint8_t * |
y, |
|
|
size_t |
yStride, |
|
|
uint8_t * |
u, |
|
|
size_t |
uStride, |
|
|
uint8_t * |
v, |
|
|
size_t |
vStride |
|
) |
| |
Converts 24-bit BGR image to YUV422P.
The input BGR and output Y images must have the same width and height. The input U and V images must have the same width and height (their width is equal to half width of Y component).
- Note
- This function has a C++ wrapper Simd::BgrToYuv422p(const View<A>& bgr, View<A>& y, View<A>& u, View<A>& v).
- Parameters
-
[in] | bgr | - a pointer to pixels data of input 24-bit BGR image. |
[in] | width | - an image width. |
[in] | height | - an image height. |
[in] | bgrStride | - a row size of the BGR image. |
[out] | y | - a pointer to pixels data of output 8-bit image with Y color plane. |
[in] | yStride | - a row size of the y image. |
[out] | u | - a pointer to pixels data of output 8-bit image with U color plane. |
[in] | uStride | - a row size of the u image. |
[out] | v | - a pointer to pixels data of output 8-bit image with V color plane. |
[in] | vStride | - a row size of the v image. |
void SimdBgrToYuv444p |
( |
const uint8_t * |
bgr, |
|
|
size_t |
width, |
|
|
size_t |
height, |
|
|
size_t |
bgrStride, |
|
|
uint8_t * |
y, |
|
|
size_t |
yStride, |
|
|
uint8_t * |
u, |
|
|
size_t |
uStride, |
|
|
uint8_t * |
v, |
|
|
size_t |
vStride |
|
) |
| |
Converts 24-bit BGR image to YUV444P.
The input BGR and output Y, U and V images must have the same width and height.
- Note
- This function has a C++ wrapper Simd::BgrToYuv444p(const View<A>& bgr, View<A>& y, View<A>& u, View<A>& v).
- Parameters
-
[in] | bgr | - a pointer to pixels data of input 24-bit BGR image. |
[in] | width | - an image width. |
[in] | height | - an image height. |
[in] | bgrStride | - a row size of the BGR image. |
[out] | y | - a pointer to pixels data of output 8-bit image with Y color plane. |
[in] | yStride | - a row size of the y image. |
[out] | u | - a pointer to pixels data of output 8-bit image with U color plane. |
[in] | uStride | - a row size of the u image. |
[out] | v | - a pointer to pixels data of output 8-bit image with V color plane. |
[in] | vStride | - a row size of the v image. |
void BgrToBayer |
( |
const View< A > & |
bgr, |
|
|
View< A > & |
bayer |
|
) |
| |
Converts 24-bit BGR image to 8-bit Bayer image.
All images must have the same width and height. The width and the height must be even.
- Note
- This function is a C++ wrapper for function SimdBgrToBayer.
- Parameters
-
[in] | bgr | - an input 24-bit BGR image. |
[out] | bayer | - an output 8-bit Bayer image. |
void BgrToBgra |
( |
const View< A > & |
bgr, |
|
|
View< A > & |
bgra, |
|
|
uint8_t |
alpha = 0xFF |
|
) |
| |
Converts 24-bit BGR image to 32-bit BGRA image.
All images must have the same width and height.
- Note
- This function is a C++ wrapper for function SimdBgrToBgra.
- Parameters
-
[in] | bgr | - an input 24-bit BGR image. |
[out] | bgra | - an output 32-bit BGRA image. |
[in] | alpha | - a value of alpha channel. It is equal to 256 by default. |
void BgrToGray |
( |
const View< A > & |
bgr, |
|
|
View< A > & |
gray |
|
) |
| |
Converts 24-bit BGR image to 8-bit gray image.
All images must have the same width and height.
- Note
- This function is a C++ wrapper for function SimdBgrToGray.
- Parameters
-
[in] | bgr | - an input 24-bit BGR image. |
[out] | gray | - an output 8-bit gray image. |
void BgrToHsl |
( |
const View< A > & |
bgr, |
|
|
View< A > & |
hsl |
|
) |
| |
Converts 24-bit BGR image to 24-bit HSL(Hue, Saturation, Lightness) image.
All images must have the same width and height.
- Note
- This function is a C++ wrapper for function SimdBgrToHsl.
- Parameters
-
[in] | bgr | - an input 24-bit BGR image. |
[out] | hsl | - an output 24-bit HSL image. |
void BgrToHsv |
( |
const View< A > & |
bgr, |
|
|
View< A > & |
hsv |
|
) |
| |
Converts 24-bit BGR image to 24-bit HSV(Hue, Saturation, Value) image.
All images must have the same width and height.
- Note
- This function is a C++ wrapper for function SimdBgrToHsv.
- Parameters
-
[in] | bgr | - an input 24-bit BGR image. |
[out] | hsv | - an output 24-bit HSV image. |
void BgrToYuv420p |
( |
const View< A > & |
bgr, |
|
|
View< A > & |
y, |
|
|
View< A > & |
u, |
|
|
View< A > & |
v |
|
) |
| |
Converts 24-bit BGR image to YUV420P.
The input BGR and output Y images must have the same width and height. The input U and V images must have the same width and height (half size relative to Y component).
- Note
- This function is a C++ wrapper for function SimdBgrToYuv420p.
- Parameters
-
[in] | bgr | - an input 24-bit BGR image. |
[out] | y | - an output 8-bit image with Y color plane. |
[out] | u | - an output 8-bit image with U color plane. |
[out] | v | - an output 8-bit image with V color plane. |
void BgrToYuv422p |
( |
const View< A > & |
bgr, |
|
|
View< A > & |
y, |
|
|
View< A > & |
u, |
|
|
View< A > & |
v |
|
) |
| |
Converts 24-bit BGR image to YUV422P.
The input BGR and output Y images must have the same width and height. The input U and V images must have the same width and height (their width is equal to half width of Y component).
- Note
- This function is a C++ wrapper for function SimdBgrToYuv422p.
- Parameters
-
[in] | bgr | - an input 24-bit BGR image. |
[out] | y | - an output 8-bit image with Y color plane. |
[out] | u | - an output 8-bit image with U color plane. |
[out] | v | - an output 8-bit image with V color plane. |
void BgrToYuv444p |
( |
const View< A > & |
bgr, |
|
|
View< A > & |
y, |
|
|
View< A > & |
u, |
|
|
View< A > & |
v |
|
) |
| |
Converts 24-bit BGR image to YUV444P.
The input BGR and output Y, U and V images must have the same width and height.
- Note
- This function is a C++ wrapper for function SimdBgrToYuv444p.
- Parameters
-
[in] | bgr | - an input 24-bit BGR image. |
[out] | y | - an output 8-bit image with Y color plane. |
[out] | u | - an output 8-bit image with U color plane. |
[out] | v | - an output 8-bit image with V color plane. |
|