diff Plugin/ParsedDicomImage.cpp @ 18:54d5dd1df2e5

support of FreeBSD
author jodogne
date Tue, 07 Apr 2015 17:09:25 +0200
parents 828c61fc8253
children a6492d20b2a8
line wrap: on
line diff
--- a/Plugin/ParsedDicomImage.cpp	Tue Apr 07 16:45:45 2015 +0200
+++ b/Plugin/ParsedDicomImage.cpp	Tue Apr 07 17:09:25 2015 +0200
@@ -244,6 +244,9 @@
         case gdcm::PixelFormat::UINT8:
           accessor.AssignWritable(Orthanc::PixelFormat_Grayscale8, width, height, width, buffer);
           return true;
+
+      default:
+	return false;
       }
     }
     else if (image.GetPixelFormat().GetSamplesPerPixel() == 3 &&
@@ -254,6 +257,9 @@
         case gdcm::PixelFormat::UINT8:
           accessor.AssignWritable(Orthanc::PixelFormat_RGB24, width, height, 3 * width, buffer);
           return true;
+
+      default:
+	return false;
       }      
     }