Skip to content

Commit

Permalink
Return true for isColor if format is YUYV or UYUV (#229)
Browse files Browse the repository at this point in the history
Signed-off-by: ijnek <[email protected]>
  • Loading branch information
ijnek authored Oct 11, 2023
1 parent 366eea2 commit 546782d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sensor_msgs/include/sensor_msgs/image_encodings.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 546782d

Please sign in to comment.