|
1 /* |
|
2 * Copyright (c) 2003, 2004 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: J2kComponentInfo class used to collect component related |
|
15 * information such as precincts size at each resolution level and |
|
16 * list of subbands. |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef __JP2KCOMPONENTINFO_INL__ |
|
22 #define __JP2KCOMPONENTINFO_INL__ |
|
23 |
|
24 // ============================ MEMBER FUNCTIONS =============================== |
|
25 |
|
26 // ----------------------------------------------------------------------------- |
|
27 // CJ2kComponentInfo::Levels |
|
28 // Get the resolution level |
|
29 // (other items were commented in a header). |
|
30 // ----------------------------------------------------------------------------- |
|
31 // |
|
32 inline TUint8 CJ2kComponentInfo::Levels() const |
|
33 { |
|
34 return iNumOfLevels; |
|
35 } |
|
36 |
|
37 // ----------------------------------------------------------------------------- |
|
38 // CJ2kComponentInfo::CodeBlockStyle |
|
39 // Get the codeblock style |
|
40 // (other items were commented in a header). |
|
41 // ----------------------------------------------------------------------------- |
|
42 // |
|
43 inline TUint8 CJ2kComponentInfo::CodeBlockStyle() const |
|
44 { |
|
45 return iCodeBlockStyle; |
|
46 } |
|
47 |
|
48 // ----------------------------------------------------------------------------- |
|
49 // CJ2kComponentInfo::NumGuard |
|
50 // Get the number of guard |
|
51 // (other items were commented in a header). |
|
52 // ----------------------------------------------------------------------------- |
|
53 // |
|
54 inline TUint8 CJ2kComponentInfo::NumGuard() const |
|
55 { |
|
56 return (TUint8)( ( iQc & 0xe0 ) >> 5 ); |
|
57 } |
|
58 |
|
59 // ----------------------------------------------------------------------------- |
|
60 // CJ2kComponentInfo::QuantizationStyle |
|
61 // Get the quantization style |
|
62 // (other items were commented in a header). |
|
63 // ----------------------------------------------------------------------------- |
|
64 // |
|
65 inline TUint8 CJ2kComponentInfo::QuantizationStyle() const |
|
66 { |
|
67 return (TUint8)( iQc & 0x1f ); |
|
68 } |
|
69 |
|
70 // ----------------------------------------------------------------------------- |
|
71 // CJ2kComponentInfo::RoiShift |
|
72 // Get the region of interest shifting |
|
73 // (other items were commented in a header). |
|
74 // ----------------------------------------------------------------------------- |
|
75 // |
|
76 inline TUint8 CJ2kComponentInfo::RoiShift() const |
|
77 { |
|
78 return iRoiShift; |
|
79 } |
|
80 |
|
81 // ----------------------------------------------------------------------------- |
|
82 // CJ2kComponentInfo::CodeBlockSize |
|
83 // Get the codeblock size |
|
84 // (other items were commented in a header). |
|
85 // ----------------------------------------------------------------------------- |
|
86 // |
|
87 inline const TSize& CJ2kComponentInfo::CodeBlockSize() const |
|
88 { |
|
89 return iCodeBlockSiz; |
|
90 } |
|
91 |
|
92 // ----------------------------------------------------------------------------- |
|
93 // CJ2kComponentInfo::ComponentCanvas |
|
94 // Get the canvas of the component |
|
95 // (other items were commented in a header). |
|
96 // ----------------------------------------------------------------------------- |
|
97 // |
|
98 inline const TRect& CJ2kComponentInfo::ComponentCanvas() const |
|
99 { |
|
100 return iComponentCanvas; |
|
101 } |
|
102 |
|
103 // ----------------------------------------------------------------------------- |
|
104 // CJ2kComponentInfo::PrecinctSizeAt |
|
105 // Get the precinct size at specific resolution level |
|
106 // (other items were commented in a header). |
|
107 // ----------------------------------------------------------------------------- |
|
108 // |
|
109 inline const TSize& CJ2kComponentInfo::PrecinctSizeAt( TUint8 aResLevel ) const |
|
110 { |
|
111 return iPrecinctSizeList[aResLevel]; |
|
112 } |
|
113 |
|
114 // ----------------------------------------------------------------------------- |
|
115 // CJ2kComponentInfo::MinGrid |
|
116 // Get the minimum grid size |
|
117 // (other items were commented in a header). |
|
118 // ----------------------------------------------------------------------------- |
|
119 // |
|
120 inline const TSize& CJ2kComponentInfo::MinGrid() const |
|
121 { |
|
122 return iMinGrid; |
|
123 } |
|
124 |
|
125 // ----------------------------------------------------------------------------- |
|
126 // CJ2kComponentInfo::IsSOPMarkerUsed |
|
127 // Is coding style shows SOP marker may exists in codestream |
|
128 // (other items were commented in a header). |
|
129 // ----------------------------------------------------------------------------- |
|
130 // |
|
131 inline TUint8 CJ2kComponentInfo::IsSOPMarkerUsed() const |
|
132 { |
|
133 return (TUint8)( iCod & 0x02 ); |
|
134 } |
|
135 |
|
136 // ----------------------------------------------------------------------------- |
|
137 // CJ2kComponentInfo::IsEPHMarkerUsed |
|
138 // Is coding style shows EPH marker may exists in codestream |
|
139 // (other items were commented in a header). |
|
140 // ----------------------------------------------------------------------------- |
|
141 // |
|
142 inline TUint8 CJ2kComponentInfo::IsEPHMarkerUsed() const |
|
143 { |
|
144 return (TUint8)( iCod & 0x04 ); |
|
145 } |
|
146 |
|
147 // ----------------------------------------------------------------------------- |
|
148 // CJ2kComponentInfo::IsACByPass |
|
149 // Is codeblock style shows AC bypass |
|
150 // (other items were commented in a header). |
|
151 // ----------------------------------------------------------------------------- |
|
152 // |
|
153 inline TUint8 CJ2kComponentInfo::IsACByPass() const |
|
154 { |
|
155 return (TUint8)( iCodeBlockStyle & 0x01 ); |
|
156 } |
|
157 |
|
158 // ----------------------------------------------------------------------------- |
|
159 // CJ2kComponentInfo::IsTermination |
|
160 // Is codeblock style shows termination |
|
161 // (other items were commented in a header). |
|
162 // ----------------------------------------------------------------------------- |
|
163 // |
|
164 inline TUint8 CJ2kComponentInfo::IsTermination() const |
|
165 { |
|
166 return (TUint8)( iCodeBlockStyle & 0x04 ); |
|
167 } |
|
168 |
|
169 // ----------------------------------------------------------------------------- |
|
170 // CJ2kComponentInfo::IsReversible |
|
171 // Is transformation reversible |
|
172 // (other items were commented in a header). |
|
173 // ----------------------------------------------------------------------------- |
|
174 // |
|
175 inline TUint8 CJ2kComponentInfo::IsReversible() const |
|
176 { |
|
177 return (TUint8)( iWaveletTransformation & 0x01 ); |
|
178 } |
|
179 |
|
180 #endif // __JP2KCOMPONENTINFO_INL__ |