Mercurial > hg > orthanc-stone
comparison Framework/Orthanc/Core/Images/JpegReader.cpp @ 15:da2cf3ace87a
sync
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 09 Nov 2016 17:20:44 +0100 |
parents | 2dbe613f6c93 |
children |
comparison
equal
deleted
inserted
replaced
14:0b9034112fde | 15:da2cf3ace87a |
---|---|
34 #include "JpegReader.h" | 34 #include "JpegReader.h" |
35 | 35 |
36 #include "JpegErrorManager.h" | 36 #include "JpegErrorManager.h" |
37 #include "../OrthancException.h" | 37 #include "../OrthancException.h" |
38 #include "../Logging.h" | 38 #include "../Logging.h" |
39 #include "../Toolbox.h" | 39 #include "../SystemToolbox.h" |
40 | 40 |
41 namespace Orthanc | 41 namespace Orthanc |
42 { | 42 { |
43 static void Uncompress(struct jpeg_decompress_struct& cinfo, | 43 static void Uncompress(struct jpeg_decompress_struct& cinfo, |
44 std::string& content, | 44 std::string& content, |
94 } | 94 } |
95 | 95 |
96 | 96 |
97 void JpegReader::ReadFromFile(const std::string& filename) | 97 void JpegReader::ReadFromFile(const std::string& filename) |
98 { | 98 { |
99 FILE* fp = Toolbox::OpenFile(filename, FileMode_ReadBinary); | 99 FILE* fp = SystemToolbox::OpenFile(filename, FileMode_ReadBinary); |
100 if (!fp) | 100 if (!fp) |
101 { | 101 { |
102 throw OrthancException(ErrorCode_InexistentFile); | 102 throw OrthancException(ErrorCode_InexistentFile); |
103 } | 103 } |
104 | 104 |