summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2019-12-10 17:21:52 +0100
committerAlexis Ballier <aballier@gentoo.org>2019-12-10 18:34:47 +0100
commited5d0a390a90af5320dbf3c0929753be4fdd820d (patch)
tree906f4a584be514fc910acb477dc3a9b28e049057 /dev-ros/compressed_depth_image_transport/files
parentdev-ros/compressed_image_transport: fix build with opencv4 (diff)
downloadgentoo-ed5d0a390a90af5320dbf3c0929753be4fdd820d.tar.gz
gentoo-ed5d0a390a90af5320dbf3c0929753be4fdd820d.tar.bz2
gentoo-ed5d0a390a90af5320dbf3c0929753be4fdd820d.zip
dev-ros/compressed_depth_image_transport: fix build with opencv4
Package-Manager: Portage-2.3.81, Repoman-2.3.20 Signed-off-by: Alexis Ballier <aballier@gentoo.org>
Diffstat (limited to 'dev-ros/compressed_depth_image_transport/files')
-rw-r--r--dev-ros/compressed_depth_image_transport/files/ocv4.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/dev-ros/compressed_depth_image_transport/files/ocv4.patch b/dev-ros/compressed_depth_image_transport/files/ocv4.patch
new file mode 100644
index 000000000000..9d1c7d79ce62
--- /dev/null
+++ b/dev-ros/compressed_depth_image_transport/files/ocv4.patch
@@ -0,0 +1,13 @@
+Index: compressed_depth_image_transport/src/codec.cpp
+===================================================================
+--- compressed_depth_image_transport.orig/src/codec.cpp
++++ compressed_depth_image_transport/src/codec.cpp
+@@ -135,7 +135,7 @@ sensor_msgs::Image::Ptr decodeCompressed
+ // Decode raw image
+ try
+ {
+- cv_ptr->image = cv::imdecode(imageData, CV_LOAD_IMAGE_UNCHANGED);
++ cv_ptr->image = cv::imdecode(imageData, cv::IMREAD_UNCHANGED);
+ }
+ catch (cv::Exception& e)
+ {