Simd Library Documentation.

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

Old deprecated functions for BGR-24 image conversions. More...

Functions

SIMD_API SIMD_DEPRECATED 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 SIMD_DEPRECATED 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 SimdBgrToYuv422pV2 (const uint8_t *bgr, size_t bgrStride, size_t width, size_t height, uint8_t *y, size_t yStride, uint8_t *u, size_t uStride, uint8_t *v, size_t vStride, SimdYuvType yuvType)
 Converts 24-bit BGR image to YUV422P. More...
 

Detailed Description

Old deprecated functions for BGR-24 image conversions.

Function Documentation

◆ SimdBgrToYuv420p()

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 output U and V images must have the same width and height (half size relative to Y component).

Warning
This function is deprecated and can be removed in the future. Use function SimdBgrToYuv420pV2 instead this one.
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.

◆ SimdBgrToYuv422p()

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 output U and V images must have the same width and height (their width is equal to half width of Y component).

Warning
This function is deprecated and can be removed in the future. Use function SimdBgrToYuv420pV2 instead this one.
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.

◆ SimdBgrToYuv422pV2()

void SimdBgrToYuv422pV2 ( const uint8_t *  bgr,
size_t  bgrStride,
size_t  width,
size_t  height,
uint8_t *  y,
size_t  yStride,
uint8_t *  u,
size_t  uStride,
uint8_t *  v,
size_t  vStride,
SimdYuvType  yuvType 
)

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& bgr, View& y, View& u, View& v, SimdYuvType yuvType = SimdYuvBt601).
Parameters
[in]bgr- a pointer to pixels data of input 24-bit BGR image.
[in]bgrStride- a row size of the BGR image.
[in]width- an image width.
[in]height- an image height.
[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.
[in]yuvType- a type of output YUV image (see descriprion of SimdYuvType).