RGBA-32
Functions for RGBA-32 image conversions. More...
Functions | |
SIMD_API void | SimdRgbaToGray (const uint8_t *rgba, size_t width, size_t height, size_t rgbaStride, uint8_t *gray, size_t grayStride) |
Converts 32-bit RGBA image to 8-bit gray image. More... | |
template<template< class > class A> | |
SIMD_INLINE void | RgbaToBgr (const View< A > &rgba, View< A > &bgr) |
Converts 32-bit RGBA image to 24-bit BGR image. More... | |
template<template< class > class A> | |
SIMD_INLINE void | RgbaToBgra (const View< A > &rgba, View< A > &bgra) |
Converts 32-bit RGBA image to 32-bit BGRA image. More... | |
template<template< class > class A> | |
SIMD_INLINE void | RgbaToGray (const View< A > &rgba, View< A > &gray) |
Converts 32-bit RGBA image to 8-bit gray image. More... | |
template<template< class > class A> | |
SIMD_INLINE void | RgbaToRgb (const View< A > &rgba, View< A > &rgb) |
Converts 32-bit RGBA image to 24-bit RGB image. More... | |
Detailed Description
Functions for RGBA-32 image conversions.
Function Documentation
◆ SimdRgbaToGray()
void SimdRgbaToGray | ( | const uint8_t * | rgba, |
size_t | width, | ||
size_t | height, | ||
size_t | rgbaStride, | ||
uint8_t * | gray, | ||
size_t | grayStride | ||
) |
Converts 32-bit RGBA image to 8-bit gray image.
All images must have the same width and height.
- Note
- This function has a C++ wrapper Simd::RgbaToGray(const View<A>& rgba, View<A>& gray).
- Parameters
-
[in] rgba - a pointer to pixels data of input 32-bit RGBA image. [in] width - an image width. [in] height - an image height. [in] rgbaStride - a row size of the rgba image. [out] gray - a pointer to pixels data of output 8-bit gray image. [in] grayStride - a row size of the gray image.
◆ RgbaToBgr()
Converts 32-bit RGBA image to 24-bit BGR image.
All images must have the same width and height.
- Note
- This function is a C++ wrapper for function SimdBgraToRgb.
- Parameters
-
[in] rgba - an input 32-bit RGBA image. [out] bgr - an output 24-bit RGB image.
◆ RgbaToBgra()
Converts 32-bit RGBA image to 32-bit BGRA image.
All images must have the same width and height.
- Note
- This function is a C++ wrapper for function SimdBgraToRgba.
- Parameters
-
[in] rgba - an input 32-bit RGBA image. [out] bgra - an output 32-bit BGRA image.
◆ RgbaToGray()
Converts 32-bit RGBA image to 8-bit gray image.
All images must have the same width and height.
- Note
- This function is a C++ wrapper for function SimdRgbaToGray.
- Parameters
-
[in] rgba - an input 32-bit RGBA image. [out] gray - an output 8-bit gray image.
◆ RgbaToRgb()
Converts 32-bit RGBA image to 24-bit RGB image.
All images must have the same width and height.
- Note
- This function is a C++ wrapper for function SimdBgraToBgr.
- Parameters
-
[in] rgba - an input 32-bit RGBA image. [out] rgb - an output 24-bit RGB image.