Struct PixelFormat

Struct Documentation

struct PixelFormat

Format and layout of an image in memory

Describes how data is structured

Public Functions

inline PixelFormat()
inline explicit PixelFormat(v4l2_pix_format const &pf)

Public Members

unsigned width

Image width in pixels.

unsigned height

Image height in pixels.

unsigned pixelFormat

The pixel format or type of compression, set by the application.

unsigned bytesPerLine

Distance in bytes between the leftmost pixels in two adjacent lines.

unsigned imageByteSize

Size in bytes of the buffer to hold a complete image, set by the driver.