00001 /* 00002 * 00003 * Copyright (C) 1997-2010, OFFIS e.V. 00004 * All rights reserved. See COPYRIGHT file for details. 00005 * 00006 * This software and supporting documentation were developed by 00007 * 00008 * OFFIS e.V. 00009 * R&D Division Health 00010 * Escherweg 2 00011 * D-26121 Oldenburg, Germany 00012 * 00013 * 00014 * Module: dcmjpls 00015 * 00016 * Author: Martin Willkomm 00017 * 00018 * Purpose: singleton class that registers the decoder for all supported JPEG-LS processes. 00019 * 00020 * Last Update: $Author: joergr $ 00021 * Update Date: $Date: 2010-10-14 13:17:19 $ 00022 * CVS/RCS Revision: $Revision: 1.5 $ 00023 * Status: $State: Exp $ 00024 * 00025 * CVS/RCS Log at end of file 00026 * 00027 */ 00028 00029 #ifndef DCMJPLS_DJDECODE_H 00030 #define DCMJPLS_DJDECODE_H 00031 00032 #include "dcmtk/config/osconfig.h" 00033 #include "dcmtk/ofstd/oftypes.h" /* for OFBool */ 00034 #include "dcmtk/dcmjpls/djlsutil.h" /* for enums */ 00035 00036 class DJLSCodecParameter; 00037 class DJLSLosslessDecoder; 00038 class DJLSNearLosslessDecoder; 00039 00042 class DJLSDecoderRegistration 00043 { 00044 public: 00045 00055 static void registerCodecs( 00056 JLS_UIDCreation uidcreation = EJLSUC_default, 00057 JLS_PlanarConfiguration planarconfig = EJLSPC_restore, 00058 OFBool ignoreOffsetTable = OFFalse); 00059 00065 static void cleanup(); 00066 00067 private: 00068 00070 static OFBool registered_; 00071 00073 static DJLSCodecParameter *cp_; 00074 00076 static DJLSLosslessDecoder *losslessdecoder_; 00077 00079 static DJLSNearLosslessDecoder *nearlosslessdecoder_; 00080 00081 }; 00082 00083 #endif 00084 00085 /* 00086 * CVS/RCS Log: 00087 * $Log: djdecode.h,v $ 00088 * Revision 1.5 2010-10-14 13:17:19 joergr 00089 * Updated copyright header. Added reference to COPYRIGHT file. 00090 * 00091 * Revision 1.4 2010-03-01 10:35:28 uli 00092 * Renamed include guards to avoid name clash with e.g. dcmjpeg. 00093 * 00094 * Revision 1.3 2010-02-25 10:17:14 uli 00095 * Fix doxygen comments in a couple of places. 00096 * 00097 * Revision 1.2 2009-10-07 13:16:47 uli 00098 * Switched to logging mechanism provided by the "new" oflog module. 00099 * 00100 * Revision 1.1 2009-07-29 14:46:46 meichel 00101 * Initial release of module dcmjpls, a JPEG-LS codec for DCMTK based on CharLS 00102 * 00103 * Revision 1.1 2007-06-15 14:35:45 meichel 00104 * Renamed CMake project and include directory from dcmjpgls to dcmjpls 00105 * 00106 * Revision 1.4 2007/06/15 10:39:15 meichel 00107 * Completed implementation of decoder, which now correctly processes all 00108 * of the NEMA JPEG-LS sample images, including fragmented frames. 00109 * 00110 * Revision 1.3 2007/06/14 12:36:14 meichel 00111 * Further code clean-up. Updated doxygen comments. 00112 * 00113 * Revision 1.2 2007/06/13 16:41:07 meichel 00114 * Code clean-up and removal of dead code 00115 * 00116 * 00117 */