Mercurial > hg > orthanc
diff OrthancFramework/Sources/Images/ImageAccessor.h @ 4300:b30a8de92ad9
abi continued
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 05 Nov 2020 19:33:18 +0100 |
parents | 785a2713323e |
children | d9473bd5ed43 |
line wrap: on
line diff
--- a/OrthancFramework/Sources/Images/ImageAccessor.h Thu Nov 05 18:24:50 2020 +0100 +++ b/OrthancFramework/Sources/Images/ImageAccessor.h Thu Nov 05 19:33:18 2020 +0100 @@ -68,54 +68,25 @@ #endif public: - ImageAccessor() - { - AssignEmpty(PixelFormat_Grayscale8); - } + ImageAccessor(); - virtual ~ImageAccessor() - { - } + virtual ~ImageAccessor(); - bool IsReadOnly() const - { - return readOnly_; - } + bool IsReadOnly() const; - PixelFormat GetFormat() const - { - return format_; - } + PixelFormat GetFormat() const; - unsigned int GetBytesPerPixel() const - { - return ::Orthanc::GetBytesPerPixel(format_); - } + unsigned int GetBytesPerPixel() const; - unsigned int GetWidth() const - { - return width_; - } + unsigned int GetWidth() const; - unsigned int GetHeight() const - { - return height_; - } + unsigned int GetHeight() const; - unsigned int GetPitch() const - { - return pitch_; - } + unsigned int GetPitch() const; - unsigned int GetSize() const - { - return GetHeight() * GetPitch(); - } + unsigned int GetSize() const; - const void* GetConstBuffer() const - { - return buffer_; - } + const void* GetConstBuffer() const; void* GetBuffer(); @@ -131,10 +102,7 @@ unsigned int pitch, const void *buffer); - void GetReadOnlyAccessor(ImageAccessor& target) const - { - target.AssignReadOnly(format_, width_, height_, pitch_, buffer_); - } + void GetReadOnlyAccessor(ImageAccessor& target) const; void AssignWritable(PixelFormat format, unsigned int width,