Skip to content

Commit

Permalink
replace deprecated encodings in encoding test
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Rauch <Rauch.Christian@gmx.de>
  • Loading branch information
christianrauch committed May 14, 2024
1 parent 7da816a commit e6c33f7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sensor_msgs/test/test_image_encodings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ TEST(sensor_msgs, NumChannels)
ASSERT_EQ(sensor_msgs::image_encodings::numChannels("64FC"), 1);
ASSERT_EQ(sensor_msgs::image_encodings::numChannels("64FC3"), 3);
ASSERT_EQ(sensor_msgs::image_encodings::numChannels("64FC10"), 10);
ASSERT_EQ(sensor_msgs::image_encodings::numChannels("yuv422"), 2);
ASSERT_EQ(sensor_msgs::image_encodings::numChannels("yuv422_yuy2"), 2);
ASSERT_EQ(sensor_msgs::image_encodings::numChannels("uyvy"), 2);
ASSERT_EQ(sensor_msgs::image_encodings::numChannels("yuyv"), 2);
}

TEST(sensor_msgs, bitDepth)
Expand All @@ -68,6 +68,6 @@ TEST(sensor_msgs, bitDepth)
ASSERT_EQ(sensor_msgs::image_encodings::bitDepth("64FC"), 64);
ASSERT_EQ(sensor_msgs::image_encodings::bitDepth("64FC3"), 64);
ASSERT_EQ(sensor_msgs::image_encodings::bitDepth("64FC10"), 64);
ASSERT_EQ(sensor_msgs::image_encodings::bitDepth("yuv422"), 8);
ASSERT_EQ(sensor_msgs::image_encodings::bitDepth("yuv422_yuy2"), 8);
ASSERT_EQ(sensor_msgs::image_encodings::bitDepth("uyvy"), 8);
ASSERT_EQ(sensor_msgs::image_encodings::bitDepth("yuyv"), 8);
}

0 comments on commit e6c33f7

Please sign in to comment.