/src/dcmtk/dcmjpls/libsrc/djcparam.cc
Line | Count | Source |
1 | | /* |
2 | | * |
3 | | * Copyright (C) 1997-2019, OFFIS e.V. |
4 | | * All rights reserved. See COPYRIGHT file for details. |
5 | | * |
6 | | * This software and supporting documentation were developed by |
7 | | * |
8 | | * OFFIS e.V. |
9 | | * R&D Division Health |
10 | | * Escherweg 2 |
11 | | * D-26121 Oldenburg, Germany |
12 | | * |
13 | | * |
14 | | * Module: dcmjpls |
15 | | * |
16 | | * Author: Martin Willkomm, Uli Schlachter |
17 | | * |
18 | | * Purpose: codec parameter class for JPEG-LS codecs |
19 | | * |
20 | | */ |
21 | | |
22 | | #include "dcmtk/config/osconfig.h" |
23 | | #include "dcmtk/dcmjpls/djcparam.h" |
24 | | #include "dcmtk/ofstd/ofstd.h" |
25 | | |
26 | | DJLSCodecParameter::DJLSCodecParameter( |
27 | | OFBool preferCookedEncoding, |
28 | | Uint16 jpls_t1, |
29 | | Uint16 jpls_t2, |
30 | | Uint16 jpls_t3, |
31 | | Uint16 jpls_reset, |
32 | | Uint32 fragmentSize, |
33 | | OFBool createOffsetTable, |
34 | | JLS_UIDCreation uidCreation, |
35 | | OFBool convertToSC, |
36 | | JLS_PlanarConfiguration planarConfiguration, |
37 | | OFBool ignoreOffsetTble, |
38 | | interleaveMode jplsInterleaveMode, |
39 | | OFBool useFFbitstreamPadding) |
40 | 0 | : DcmCodecParameter() |
41 | 0 | , preferCookedEncoding_(preferCookedEncoding) |
42 | 0 | , jpls_t1_(jpls_t1) |
43 | 0 | , jpls_t2_(jpls_t2) |
44 | 0 | , jpls_t3_(jpls_t3) |
45 | 0 | , jpls_reset_(jpls_reset) |
46 | 0 | , fragmentSize_(fragmentSize) |
47 | 0 | , createOffsetTable_(createOffsetTable) |
48 | 0 | , uidCreation_(uidCreation) |
49 | 0 | , convertToSC_(convertToSC) |
50 | 0 | , jplsInterleaveMode_(jplsInterleaveMode) |
51 | 0 | , useFFbitstreamPadding_(useFFbitstreamPadding) |
52 | 0 | , planarConfiguration_(planarConfiguration) |
53 | 0 | , ignoreOffsetTable_(ignoreOffsetTble) |
54 | 0 | , forceSingleFragmentPerFrame_(OFFalse) |
55 | 0 | { |
56 | 0 | } |
57 | | |
58 | | |
59 | | DJLSCodecParameter::DJLSCodecParameter( |
60 | | JLS_UIDCreation uidCreation, |
61 | | JLS_PlanarConfiguration planarConfiguration, |
62 | | OFBool ignoreOffsetTble, |
63 | | OFBool forceSingleFragmentPerFrame) |
64 | 1 | : DcmCodecParameter() |
65 | 1 | , preferCookedEncoding_(OFTrue) |
66 | 1 | , jpls_t1_(0) |
67 | 1 | , jpls_t2_(0) |
68 | 1 | , jpls_t3_(0) |
69 | 1 | , jpls_reset_(0) |
70 | 1 | , fragmentSize_(0) |
71 | 1 | , createOffsetTable_(OFTrue) |
72 | 1 | , uidCreation_(uidCreation) |
73 | 1 | , convertToSC_(OFFalse) |
74 | 1 | , jplsInterleaveMode_(interleaveDefault) |
75 | 1 | , useFFbitstreamPadding_(OFTrue) |
76 | 1 | , planarConfiguration_(planarConfiguration) |
77 | 1 | , ignoreOffsetTable_(ignoreOffsetTble) |
78 | 1 | , forceSingleFragmentPerFrame_(forceSingleFragmentPerFrame) |
79 | 1 | { |
80 | 1 | } |
81 | | |
82 | | DJLSCodecParameter::DJLSCodecParameter(const DJLSCodecParameter& arg) |
83 | 0 | : DcmCodecParameter(arg) |
84 | 0 | , preferCookedEncoding_(arg.preferCookedEncoding_) |
85 | 0 | , jpls_t1_(arg.jpls_t1_) |
86 | 0 | , jpls_t2_(arg.jpls_t2_) |
87 | 0 | , jpls_t3_(arg.jpls_t3_) |
88 | 0 | , jpls_reset_(arg.jpls_reset_) |
89 | 0 | , fragmentSize_(arg.fragmentSize_) |
90 | 0 | , createOffsetTable_(arg.createOffsetTable_) |
91 | 0 | , uidCreation_(arg.uidCreation_) |
92 | 0 | , convertToSC_(arg.convertToSC_) |
93 | 0 | , jplsInterleaveMode_(arg.jplsInterleaveMode_) |
94 | 0 | , useFFbitstreamPadding_(arg.useFFbitstreamPadding_) |
95 | 0 | , planarConfiguration_(arg.planarConfiguration_) |
96 | 0 | , ignoreOffsetTable_(arg.ignoreOffsetTable_) |
97 | 0 | , forceSingleFragmentPerFrame_(arg.forceSingleFragmentPerFrame_) |
98 | 0 | { |
99 | 0 | } |
100 | | |
101 | | DJLSCodecParameter::~DJLSCodecParameter() |
102 | 1 | { |
103 | 1 | } |
104 | | |
105 | | DcmCodecParameter *DJLSCodecParameter::clone() const |
106 | 0 | { |
107 | 0 | return new DJLSCodecParameter(*this); |
108 | 0 | } |
109 | | |
110 | | const char *DJLSCodecParameter::className() const |
111 | 0 | { |
112 | 0 | return "DJLSCodecParameter"; |
113 | 0 | } |