Function ffmpeg_encoder_decoder::utils::ros_to_av_pix_format

Function Documentation

enum AVPixelFormat ffmpeg_encoder_decoder::utils::ros_to_av_pix_format(const std::string &ros_pix_fmt)

finds AVPixelFormat corresponding to ROS encoding

Parameters:

ros_pix_fmt – ros encoding name, e.g. “bgr8”

Throws:

std::runtime_error – exception when no match found.

Returns:

corresponding AV pixel format