Mercurial > hg > orthanc-wsi
comparison ViewerPlugin/RawTile.h @ 276:ef8a673b5fb9 iiif
clarification of RawTile::Answer()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 12 Jul 2023 14:51:46 +0200 |
parents | c72fbdecdc38 |
children | 7020852a8fa9 |
comparison
equal
deleted
inserted
replaced
275:801790c81f20 | 276:ef8a673b5fb9 |
---|---|
42 | 42 |
43 Orthanc::ImageAccessor* DecodeInternal(); | 43 Orthanc::ImageAccessor* DecodeInternal(); |
44 | 44 |
45 static void EncodeInternal(std::string& encoded, | 45 static void EncodeInternal(std::string& encoded, |
46 const Orthanc::ImageAccessor& decoded, | 46 const Orthanc::ImageAccessor& decoded, |
47 Orthanc::MimeType transcodingType); | 47 Orthanc::MimeType encoding); |
48 | 48 |
49 public: | 49 public: |
50 RawTile(ITiledPyramid& pyramid, | 50 RawTile(ITiledPyramid& pyramid, |
51 unsigned int level, | 51 unsigned int level, |
52 unsigned int tileX, | 52 unsigned int tileX, |
53 unsigned int tileY); | 53 unsigned int tileY); |
54 | 54 |
55 ImageCompression GetCompression() const | |
56 { | |
57 return compression_; | |
58 } | |
59 | |
55 void Answer(OrthancPluginRestOutput* output, | 60 void Answer(OrthancPluginRestOutput* output, |
56 Orthanc::MimeType transcodingType); | 61 Orthanc::MimeType encoding); |
57 | 62 |
58 Orthanc::ImageAccessor* Decode(); | 63 Orthanc::ImageAccessor* Decode(); |
59 | 64 |
60 static void Encode(std::string& encoded, | 65 static void Encode(std::string& encoded, |
61 const Orthanc::ImageAccessor& decoded, | 66 const Orthanc::ImageAccessor& decoded, |
62 Orthanc::MimeType transcodingType); | 67 Orthanc::MimeType encoding); |
63 | 68 |
64 // This semaphore is used to implement throttling for the | 69 // This semaphore is used to implement throttling for the |
65 // decoding/encoding of tiles | 70 // decoding/encoding of tiles |
66 static void InitializeTranscoderSemaphore(unsigned int maxThreads); | 71 static void InitializeTranscoderSemaphore(unsigned int maxThreads); |
67 | 72 |