Function usb_cam::formats::get_channels_from_av_format(const AVPixelFormat&)

Function Documentation

inline uint8_t usb_cam::formats::get_channels_from_av_format(const AVPixelFormat &avPixelFormat)

Get the number of channels from AVPixelFormat.

Parameters:

avPixelFormat – AVPixelFormat

Returns:

Number of channels as uint8