Mercurial > hg > orthanc
diff OrthancFramework/Sources/Images/PngWriter.h @ 4642:69bbb4bd35cb
PngWriter recreates a new libpng context for each encoding
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 28 Apr 2021 11:22:39 +0200 |
parents | d9473bd5ed43 |
children | 7053502fbf97 |
line wrap: on
line diff
--- a/OrthancFramework/Sources/Images/PngWriter.h Tue Apr 27 09:49:20 2021 +0200 +++ b/OrthancFramework/Sources/Images/PngWriter.h Wed Apr 28 11:22:39 2021 +0200 @@ -39,6 +39,9 @@ { class ORTHANC_PUBLIC PngWriter : public IImageWriter { + private: + class Context; + protected: #if ORTHANC_SANDBOXED == 0 virtual void WriteToFileInternal(const std::string& filename, @@ -55,25 +58,5 @@ unsigned int pitch, PixelFormat format, const void* buffer) ORTHANC_OVERRIDE; - - private: - struct PImpl; - boost::shared_ptr<PImpl> pimpl_; - - void Compress(unsigned int width, - unsigned int height, - unsigned int pitch, - PixelFormat format); - - void Prepare(unsigned int width, - unsigned int height, - unsigned int pitch, - PixelFormat format, - const void* buffer); - - public: - PngWriter(); - - ~PngWriter(); }; }