Class UYVY2RGB

Inheritance Relationships

Base Type

Class Documentation

class UYVY2RGB : public usb_cam::formats::pixel_format_base

Public Functions

inline explicit UYVY2RGB(const format_arguments_t &args = format_arguments_t())
inline virtual void convert(const char *&src, char *&dest, const int &bytes_used) override

In this format each four bytes is two pixels. Each four bytes is two Y’s, a Cb and a Cr. Each Y goes to one of the pixels, and the Cb and Cr belong to both pixels. As you can see, the Cr and Cb components have half the horizontal resolution of the Y component. V4L2_PIX_FMT_UYVY is known in the Windows environment as YUY2.

Source: https://www.linuxtv.org/downloads/v4l-dvb-apis-old/V4L2-PIX-FMT-YUYV.html