comparison Framework/Orthanc/Core/Images/JpegWriter.cpp @ 54:06847108819c

sync
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 24 Nov 2016 12:59:50 +0100
parents 9621fd6f17c9
children
comparison
equal deleted inserted replaced
53:175d06fa292e 54:06847108819c
33 #include "../PrecompiledHeaders.h" 33 #include "../PrecompiledHeaders.h"
34 #include "JpegWriter.h" 34 #include "JpegWriter.h"
35 35
36 #include "../OrthancException.h" 36 #include "../OrthancException.h"
37 #include "../Logging.h" 37 #include "../Logging.h"
38 #include "../SystemToolbox.h"
39
40 #include "JpegErrorManager.h" 38 #include "JpegErrorManager.h"
39
40 #if ORTHANC_SANDBOXED == 0
41 # include "../SystemToolbox.h"
42 #endif
41 43
42 #include <stdlib.h> 44 #include <stdlib.h>
43 #include <vector> 45 #include <vector>
44 46
45 namespace Orthanc 47 namespace Orthanc
110 112
111 quality_ = quality; 113 quality_ = quality;
112 } 114 }
113 115
114 116
117 #if ORTHANC_SANDBOXED == 0
115 void JpegWriter::WriteToFileInternal(const std::string& filename, 118 void JpegWriter::WriteToFileInternal(const std::string& filename,
116 unsigned int width, 119 unsigned int width,
117 unsigned int height, 120 unsigned int height,
118 unsigned int pitch, 121 unsigned int pitch,
119 PixelFormat format, 122 PixelFormat format,
153 156
154 // Everything went fine, "setjmp()" didn't get called 157 // Everything went fine, "setjmp()" didn't get called
155 158
156 fclose(fp); 159 fclose(fp);
157 } 160 }
161 #endif
158 162
159 163
160 void JpegWriter::WriteToMemoryInternal(std::string& jpeg, 164 void JpegWriter::WriteToMemoryInternal(std::string& jpeg,
161 unsigned int width, 165 unsigned int width,
162 unsigned int height, 166 unsigned int height,