Mercurial > hg > orthanc
annotate Plugins/Samples/GdcmDecoder/GdcmImageDecoder.h @ 3916:0e3849268a55 transcoding
new plugin SDK primitives related to OrthancPluginDicomInstance
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 11 May 2020 21:07:36 +0200 |
parents | 7e33516965f8 |
children |
rev | line source |
---|---|
1834 | 1 /** |
2 * Orthanc - A Lightweight, RESTful DICOM Store | |
1900 | 3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics |
1834 | 4 * Department, University Hospital of Liege, Belgium |
3640
94f4a18a79cc
upgrade to year 2020
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3060
diff
changeset
|
5 * Copyright (C) 2017-2020 Osimis S.A., Belgium |
1834 | 6 * |
7 * This program is free software: you can redistribute it and/or | |
8 * modify it under the terms of the GNU General Public License as | |
9 * published by the Free Software Foundation, either version 3 of the | |
10 * License, or (at your option) any later version. | |
11 * | |
12 * This program is distributed in the hope that it will be useful, but | |
13 * WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
15 * General Public License for more details. | |
16 * | |
17 * You should have received a copy of the GNU General Public License | |
18 * along with this program. If not, see <http://www.gnu.org/licenses/>. | |
19 **/ | |
20 | |
21 | |
22 #pragma once | |
23 | |
3915
7e33516965f8
merging sample GDCM decoder and Orthanc Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3640
diff
changeset
|
24 #include "../Common/OrthancPluginCppWrapper.h" |
7e33516965f8
merging sample GDCM decoder and Orthanc Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3640
diff
changeset
|
25 |
1834 | 26 #include <stdint.h> |
27 #include <boost/noncopyable.hpp> | |
28 #include <boost/shared_ptr.hpp> | |
29 | |
2426 | 30 |
1834 | 31 namespace OrthancPlugins |
32 { | |
33 class GdcmImageDecoder : public boost::noncopyable | |
34 { | |
35 private: | |
36 struct PImpl; | |
37 boost::shared_ptr<PImpl> pimpl_; | |
38 | |
39 public: | |
40 GdcmImageDecoder(const void* dicom, | |
41 size_t size); | |
42 | |
43 OrthancPluginPixelFormat GetFormat() const; | |
44 | |
45 unsigned int GetWidth() const; | |
46 | |
47 unsigned int GetHeight() const; | |
48 | |
49 unsigned int GetFramesCount() const; | |
50 | |
51 static size_t GetBytesPerPixel(OrthancPluginPixelFormat format); | |
52 | |
3915
7e33516965f8
merging sample GDCM decoder and Orthanc Web viewer
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
3640
diff
changeset
|
53 OrthancPluginImage* Decode(unsigned int frameIndex) const; |
1834 | 54 }; |
55 } |