comparison OrthancFramework/Sources/Images/ImageAccessor.h @ 4273:0034f855c023

tuning log categories from command-line, and binary compat with orthanc framework 1.7.2
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 03 Nov 2020 12:24:50 +0100
parents 2d5209153b32
children 785a2713323e
comparison
equal deleted inserted replaced
4272:1661544ea94d 4273:0034f855c023
20 **/ 20 **/
21 21
22 22
23 #pragma once 23 #pragma once
24 24
25 #include "../Compatibility.h"
25 #include "../Enumerations.h" 26 #include "../Enumerations.h"
26 27
27 #include <string> 28 #include <string>
28 #include <stdint.h> 29 #include <stdint.h>
29 #include <boost/noncopyable.hpp> 30 #include <boost/noncopyable.hpp>
57 unsigned int y) 58 unsigned int y)
58 { 59 {
59 uint8_t* row = reinterpret_cast<uint8_t*>(buffer_) + y * pitch_; 60 uint8_t* row = reinterpret_cast<uint8_t*>(buffer_) + y * pitch_;
60 return reinterpret_cast<T*>(row) [x]; 61 return reinterpret_cast<T*>(row) [x];
61 } 62 }
63
64 #if ORTHANC_BUILDING_FRAMEWORK_LIBRARY == 1
65 // Alias for binary compatibility with Orthanc Framework 1.7.2 => don't use it anymore
66 void* GetBuffer() const;
67 void* GetRow(unsigned int y) const;
68 #endif
62 69
63 public: 70 public:
64 ImageAccessor() 71 ImageAccessor()
65 { 72 {
66 AssignEmpty(PixelFormat_Grayscale8); 73 AssignEmpty(PixelFormat_Grayscale8);