Function usb_cam::formats::get_av_pixel_format_from_string
Defined in File av_pixel_format_helper.hpp
Function Documentation
-
inline AVPixelFormat usb_cam::formats::get_av_pixel_format_from_string(const std::string &str)
Get AVPixelFormat from string. This string should correspond to the AVPixelFormat name. The name can either be given with or without the ‘AV_PIX_FMT_’ prefix.
- Parameters:
str – AVPixelFormat name
- Returns:
Pixel format enum corresponding to a given name