fw4spl
Codec.cpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2016.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #include "fwDcmtkIO/helper/Codec.hpp"
8 
9 #include <dcmtk/dcmdata/dcrledrg.h>
10 #include <dcmtk/dcmjpeg/djdecode.h>
11 #include <dcmtk/dcmjpeg/dipijpeg.h>
12 
13 namespace fwDcmtkIO
14 {
15 namespace helper
16 {
17 
19 {
20  // Register RLE decompression codecs
21  DcmRLEDecoderRegistration::registerCodecs();
22 
23  // Register JPEG decompression codecs
24  DJDecoderRegistration::registerCodecs();
25 }
26 
27 // ----------------------------------------------------------------------------
28 
30 {
31  // Deregister RLE decompression codecs
32  DcmRLEDecoderRegistration::cleanup();
33 
34  // Deregister JPEG decompression codecs
35  DJDecoderRegistration::cleanup();
36 }
37 
38 
39 } //helper
40 } //fwDcmtkIO
static FWDCMTKIO_API void registerCodecs()
Load DICOM codec.
Definition: Codec.cpp:18
static FWDCMTKIO_API void cleanup()
Clean up codec register.
Definition: Codec.cpp:29
fwDcmtkIO contains classes used to pull Dicom images from a pacs using dcmtk library.
Definition: Codec.hpp:12