Mercurial > hg > orthanc
comparison Core/Images/PamWriter.h @ 2705:5c18a22cb981
fix portability of PAM reader/writer
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 06 Jul 2018 16:33:03 +0200 |
parents | 52217dc47a4e |
children | 4e43e67f8ecf |
comparison
equal
deleted
inserted
replaced
2704:b71c59312bae | 2705:5c18a22cb981 |
---|---|
39 { | 39 { |
40 // https://en.wikipedia.org/wiki/Netpbm#PAM_graphics_format | 40 // https://en.wikipedia.org/wiki/Netpbm#PAM_graphics_format |
41 class PamWriter : public IImageWriter | 41 class PamWriter : public IImageWriter |
42 { | 42 { |
43 protected: | 43 protected: |
44 #if ORTHANC_SANDBOXED == 0 | 44 virtual void WriteToMemoryInternal(std::string& target, |
45 virtual void WriteToFileInternal(const std::string& filename, | |
46 unsigned int width, | |
47 unsigned int height, | |
48 unsigned int pitch, | |
49 PixelFormat format, | |
50 const void* buffer); | |
51 #endif | |
52 | |
53 virtual void WriteToMemoryInternal(std::string& png, | |
54 unsigned int width, | 45 unsigned int width, |
55 unsigned int height, | 46 unsigned int height, |
56 unsigned int pitch, | 47 unsigned int pitch, |
57 PixelFormat format, | 48 PixelFormat format, |
58 const void* buffer); | 49 const void* buffer); |
59 | |
60 public: | |
61 PamWriter() {} | |
62 | |
63 virtual ~PamWriter() {} | |
64 }; | 50 }; |
65 } | 51 } |