Struct ImageFormat

Struct Documentation

struct ImageFormat

Image format description

Describes what image data means

Public Functions

inline explicit ImageFormat(v4l2_fmtdesc const &fd)

Public Members

unsigned index

Number of the format in the enumeration, set by the application.

unsigned type

Type of the data stream, set by the application, probably to V4L2_BUF_TYPE_VIDEO_CAPTURE.

unsigned flags

Image format description flags. Options: V4L2_FMT_FLAG_COMPRESSED and/or V4L2_FMT_FLAG_EMULATED

std::string description

Human readable description of the format.

unsigned pixelFormat

The image format identifier as computed by the v4l2_fourcc() macro.