From 546782d8b970f229da9ae1496d153c6d9fc55328 Mon Sep 17 00:00:00 2001 From: Kenji Brameld Date: Wed, 11 Oct 2023 10:49:37 -0500 Subject: [PATCH] Return true for isColor if format is YUYV or UYUV (#229) Signed-off-by: ijnek --- sensor_msgs/include/sensor_msgs/image_encodings.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sensor_msgs/include/sensor_msgs/image_encodings.hpp b/sensor_msgs/include/sensor_msgs/image_encodings.hpp index b20b948f..c3274700 100644 --- a/sensor_msgs/include/sensor_msgs/image_encodings.hpp +++ b/sensor_msgs/include/sensor_msgs/image_encodings.hpp @@ -124,6 +124,8 @@ static inline bool isColor(const std::string & encoding) encoding == RGBA8 || encoding == BGRA8 || encoding == RGB16 || encoding == BGR16 || encoding == RGBA16 || encoding == BGRA16 || + encoding == YUV422 || encoding == YUV422_YUY2 || + encoding == UYVY || encoding == YUYV || encoding == NV21 || encoding == NV24; }