diff --git a/include/image_encodings.h b/include/image_encodings.h index 20a7f68..16f1765 100644 --- a/include/image_encodings.h +++ b/include/image_encodings.h @@ -98,7 +98,7 @@ namespace sensor_msgs // Miscellaneous // This is the UYVY version of YUV422 codec http://www.fourcc.org/yuv.php#UYVY // with an 8-bit depth - const std::string YUV422="yuv422"; + const std::string YUV422="yuv422_yuy2"; // Prefixes for abstract image encodings const std::string ABSTRACT_ENCODING_PREFIXES[] = { diff --git a/src/video.cpp b/src/video.cpp index a91f452..00b1a7e 100644 --- a/src/video.cpp +++ b/src/video.cpp @@ -114,6 +114,7 @@ GstCaps *Image2rtsp::gst_caps_new_from_image(const sensor_msgs::msg::Image::Shar {sensor_msgs::image_encodings::BGRA16, "BGRA16"}, {sensor_msgs::image_encodings::MONO8, "GRAY8"}, {sensor_msgs::image_encodings::MONO16, "GRAY16_LE"}, + {sensor_msgs::image_encodings::YUV422, "YUY2"}, }; if (msg->is_bigendian){