Simd Library Documentation.

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

Functions for UYVY image conversions. More...

Functions

SIMD_API void SimdUyvy422ToBgr (const uint8_t *uyvy, size_t uyvyStride, size_t width, size_t height, uint8_t *bgr, size_t bgrStride, SimdYuvType yuvType)
 Converts 16-bit UYVY422 image to 24-bit BGR image. More...
 
SIMD_API void SimdUyvy422ToYuv420p (const uint8_t *uyvy, size_t uyvyStride, size_t width, size_t height, uint8_t *y, size_t yStride, uint8_t *u, size_t uStride, uint8_t *v, size_t vStride)
 Converts 16-bit UYVY422 image to YUV420P. More...
 
template<template< class > class A>
SIMD_INLINE void Uyvy422ToBgr (const View< A > &uyvy, View< A > &bgr, SimdYuvType yuvType=SimdYuvBt601)
 Converts 16-bit UYVY422 image to 24-bit BGR image. More...
 
template<template< class > class A>
SIMD_INLINE void Uyvy422ToYuv420p (const View< A > &uyvy, View< A > &y, View< A > &u, View< A > &v)
 Converts 16-bit UYVY422 image to YUV420P. More...
 

Detailed Description

Functions for UYVY image conversions.

Function Documentation

◆ SimdUyvy422ToBgr()

void SimdUyvy422ToBgr ( const uint8_t *  uyvy,
size_t  uyvyStride,
size_t  width,
size_t  height,
uint8_t *  bgr,
size_t  bgrStride,
SimdYuvType  yuvType 
)

Converts 16-bit UYVY422 image to 24-bit BGR image.

The input and output images must have the same width and height. Width must be even number.

Note
This function has a C++ wrappers: Simd::Uyvy422ToBgr(const View& uyvy, View& bgr, SimdYuvType yuvType = SimdYuvBt601);
Parameters
[in]uyvy- a pointer to pixels data of input 16-bit UYVY422 image.
[in]uyvyStride- a row size of the UYVY422 image.
[in]width- an image width. Width must be even number.
[in]height- an image height.
[out]bgr- a pointer to pixels data of output 24-bit BGR image.
[in]bgrStride- a row size of the bgr image.
[in]yuvType- a type of input YUV image (see descriprion of SimdYuvType).

◆ SimdUyvy422ToYuv420p()

void SimdUyvy422ToYuv420p ( const uint8_t *  uyvy,
size_t  uyvyStride,
size_t  width,
size_t  height,
uint8_t *  y,
size_t  yStride,
uint8_t *  u,
size_t  uStride,
uint8_t *  v,
size_t  vStride 
)

Converts 16-bit UYVY422 image to YUV420P.

The input UYVY422 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).

Note
This function has a C++ wrapper Simd::Uyvy422ToYuv420p(const View<A>& uyvy, View<A>& y, View<A>& u, View<A>& v).
Parameters
[in]uyvy- a pointer to pixels data of input 16-bit UYVY422 image.
[in]uyvyStride- a row size of the UYVY422 image.
[in]width- an image width. Width must be even number.
[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.

◆ Uyvy422ToBgr()

void Uyvy422ToBgr ( const View< A > &  uyvy,
View< A > &  bgr,
SimdYuvType  yuvType = SimdYuvBt601 
)

Converts 16-bit UYVY422 image to 24-bit BGR image.

The input and output images must have the same width and height. Width must be even number.

Note
This function is a C++ wrapper for function SimdUyvy422ToBgr.
Parameters
[in]uyvy- an input 16-bit UYVY422 image.
[out]bgr- an output 24-bit BGR image.
[in]yuvType- a type of input YUV image (see descriprion of SimdYuvType). By default is equal to SimdYuvBt601.

◆ Uyvy422ToYuv420p()

void Uyvy422ToYuv420p ( const View< A > &  uyvy,
View< A > &  y,
View< A > &  u,
View< A > &  v 
)

Converts 16-bit UYVY422 image to YUV420P.

The input UYVY422 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).

Note
This function is a C++ wrapper for function SimdUyvy422ToYuv420p.
Parameters
[in]uyvy- an input 16-bit UYVY422 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.