comparison Core/Images/JpegWriter.cpp @ 2170:baf8dd89b4e0

improved support for sandboxed environments
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 23 Nov 2016 11:45:02 +0100
parents fd5875662670
children 35febe19e874
comparison
equal deleted inserted replaced
2169:d15de5685ad8 2170:baf8dd89b4e0
110 110
111 quality_ = quality; 111 quality_ = quality;
112 } 112 }
113 113
114 114
115 #if ORTHANC_SANDBOXED == 0
115 void JpegWriter::WriteToFileInternal(const std::string& filename, 116 void JpegWriter::WriteToFileInternal(const std::string& filename,
116 unsigned int width, 117 unsigned int width,
117 unsigned int height, 118 unsigned int height,
118 unsigned int pitch, 119 unsigned int pitch,
119 PixelFormat format, 120 PixelFormat format,
153 154
154 // Everything went fine, "setjmp()" didn't get called 155 // Everything went fine, "setjmp()" didn't get called
155 156
156 fclose(fp); 157 fclose(fp);
157 } 158 }
159 #endif
158 160
159 161
160 void JpegWriter::WriteToMemoryInternal(std::string& jpeg, 162 void JpegWriter::WriteToMemoryInternal(std::string& jpeg,
161 unsigned int width, 163 unsigned int width,
162 unsigned int height, 164 unsigned int height,