Mercurial > hg > orthanc
comparison Core/ImageFormats/JpegReader.cpp @ 1610:2dff2bdffdb8
font support within Orthanc
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 04 Sep 2015 13:44:21 +0200 |
parents | fd0464ce1962 |
children |
comparison
equal
deleted
inserted
replaced
1609:c74495267acf | 1610:2dff2bdffdb8 |
---|---|
74 catch (...) | 74 catch (...) |
75 { | 75 { |
76 throw OrthancException(ErrorCode_NotEnoughMemory); | 76 throw OrthancException(ErrorCode_NotEnoughMemory); |
77 } | 77 } |
78 | 78 |
79 accessor.AssignReadOnly(format, cinfo.output_width, cinfo.output_height, pitch, | 79 accessor.AssignWritable(format, cinfo.output_width, cinfo.output_height, pitch, |
80 content.empty() ? NULL : content.c_str()); | 80 content.empty() ? NULL : &content[0]); |
81 | 81 |
82 uint8_t* target = reinterpret_cast<uint8_t*>(&content[0]); | 82 uint8_t* target = reinterpret_cast<uint8_t*>(&content[0]); |
83 while (cinfo.output_scanline < cinfo.output_height) | 83 while (cinfo.output_scanline < cinfo.output_height) |
84 { | 84 { |
85 jpeg_read_scanlines(&cinfo, buffer, 1); | 85 jpeg_read_scanlines(&cinfo, buffer, 1); |