comparison Core/Images/JpegWriter.cpp @ 2699:52217dc47a4e

new image/pam MIME TYPE supported in /instances/../frames/../image-uint8... routes
author am@osimis.io
date Thu, 05 Jul 2018 12:25:00 +0200
parents 964fb9a5786d
children d924f9bb61cc
comparison
equal deleted inserted replaced
2687:2c684841da15 2699:52217dc47a4e
164 fclose(fp); 164 fclose(fp);
165 } 165 }
166 #endif 166 #endif
167 167
168 168
169 #if ORTHANC_SANDBOXED == 0
170 void JpegWriter::WriteToMemoryInternal(std::string& jpeg, 169 void JpegWriter::WriteToMemoryInternal(std::string& jpeg,
171 unsigned int width, 170 unsigned int width,
172 unsigned int height, 171 unsigned int height,
173 unsigned int pitch, 172 unsigned int pitch,
174 PixelFormat format, 173 PixelFormat format,
209 // Everything went fine, "setjmp()" didn't get called 208 // Everything went fine, "setjmp()" didn't get called
210 209
211 jpeg.assign(reinterpret_cast<const char*>(data), size); 210 jpeg.assign(reinterpret_cast<const char*>(data), size);
212 free(data); 211 free(data);
213 } 212 }
214 #endif
215 } 213 }