1 | /* The copyright in this software is being made available under the BSD |
---|
2 | * License, included below. This software may be subject to other third party |
---|
3 | * and contributor rights, including patent rights, and no such rights are |
---|
4 | * granted under this license. |
---|
5 | * |
---|
6 | * Copyright (c) 2010-2013, ITU/ISO/IEC |
---|
7 | * All rights reserved. |
---|
8 | * |
---|
9 | * Redistribution and use in source and binary forms, with or without |
---|
10 | * modification, are permitted provided that the following conditions are met: |
---|
11 | * |
---|
12 | * * Redistributions of source code must retain the above copyright notice, |
---|
13 | * this list of conditions and the following disclaimer. |
---|
14 | * * Redistributions in binary form must reproduce the above copyright notice, |
---|
15 | * this list of conditions and the following disclaimer in the documentation |
---|
16 | * and/or other materials provided with the distribution. |
---|
17 | * * Neither the name of the ITU/ISO/IEC nor the names of its contributors may |
---|
18 | * be used to endorse or promote products derived from this software without |
---|
19 | * specific prior written permission. |
---|
20 | * |
---|
21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
---|
22 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
---|
23 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
---|
24 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS |
---|
25 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
---|
26 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
---|
27 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
---|
28 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
---|
29 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
---|
30 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF |
---|
31 | * THE POSSIBILITY OF SUCH DAMAGE. |
---|
32 | */ |
---|
33 | |
---|
34 | /** \file TComSlice.h |
---|
35 | \brief slice header and SPS class (header) |
---|
36 | */ |
---|
37 | |
---|
38 | #ifndef __TCOMSLICE__ |
---|
39 | #define __TCOMSLICE__ |
---|
40 | |
---|
41 | #include <cstring> |
---|
42 | #include <map> |
---|
43 | #include <vector> |
---|
44 | #include "CommonDef.h" |
---|
45 | #include "TComRom.h" |
---|
46 | #include "TComList.h" |
---|
47 | |
---|
48 | //! \ingroup TLibCommon |
---|
49 | //! \{ |
---|
50 | |
---|
51 | class TComPic; |
---|
52 | class TComTrQuant; |
---|
53 | |
---|
54 | #if SVC_EXTENSION |
---|
55 | class TComPicYuv; |
---|
56 | #endif |
---|
57 | // ==================================================================================================================== |
---|
58 | // Constants |
---|
59 | // ==================================================================================================================== |
---|
60 | |
---|
61 | // ==================================================================================================================== |
---|
62 | // Class definition |
---|
63 | // ==================================================================================================================== |
---|
64 | |
---|
65 | /// Reference Picture Set class |
---|
66 | class TComReferencePictureSet |
---|
67 | { |
---|
68 | private: |
---|
69 | Int m_numberOfPictures; |
---|
70 | Int m_numberOfNegativePictures; |
---|
71 | Int m_numberOfPositivePictures; |
---|
72 | Int m_numberOfLongtermPictures; |
---|
73 | Int m_deltaPOC[MAX_NUM_REF_PICS]; |
---|
74 | Int m_POC[MAX_NUM_REF_PICS]; |
---|
75 | Bool m_used[MAX_NUM_REF_PICS]; |
---|
76 | Bool m_interRPSPrediction; |
---|
77 | Int m_deltaRIdxMinus1; |
---|
78 | Int m_deltaRPS; |
---|
79 | Int m_numRefIdc; |
---|
80 | Int m_refIdc[MAX_NUM_REF_PICS+1]; |
---|
81 | Bool m_bCheckLTMSB[MAX_NUM_REF_PICS]; |
---|
82 | Int m_pocLSBLT[MAX_NUM_REF_PICS]; |
---|
83 | Int m_deltaPOCMSBCycleLT[MAX_NUM_REF_PICS]; |
---|
84 | Bool m_deltaPocMSBPresentFlag[MAX_NUM_REF_PICS]; |
---|
85 | |
---|
86 | public: |
---|
87 | TComReferencePictureSet(); |
---|
88 | virtual ~TComReferencePictureSet(); |
---|
89 | Int getPocLSBLT(Int i) { return m_pocLSBLT[i]; } |
---|
90 | Void setPocLSBLT(Int i, Int x) { m_pocLSBLT[i] = x; } |
---|
91 | Int getDeltaPocMSBCycleLT(Int i) { return m_deltaPOCMSBCycleLT[i]; } |
---|
92 | Void setDeltaPocMSBCycleLT(Int i, Int x) { m_deltaPOCMSBCycleLT[i] = x; } |
---|
93 | Bool getDeltaPocMSBPresentFlag(Int i) { return m_deltaPocMSBPresentFlag[i]; } |
---|
94 | Void setDeltaPocMSBPresentFlag(Int i, Bool x) { m_deltaPocMSBPresentFlag[i] = x; } |
---|
95 | Void setUsed(Int bufferNum, Bool used); |
---|
96 | Void setDeltaPOC(Int bufferNum, Int deltaPOC); |
---|
97 | Void setPOC(Int bufferNum, Int deltaPOC); |
---|
98 | Void setNumberOfPictures(Int numberOfPictures); |
---|
99 | Void setCheckLTMSBPresent(Int bufferNum, Bool b ); |
---|
100 | Bool getCheckLTMSBPresent(Int bufferNum); |
---|
101 | |
---|
102 | Int getUsed(Int bufferNum); |
---|
103 | Int getDeltaPOC(Int bufferNum); |
---|
104 | Int getPOC(Int bufferNum); |
---|
105 | Int getNumberOfPictures(); |
---|
106 | |
---|
107 | Void setNumberOfNegativePictures(Int number) { m_numberOfNegativePictures = number; } |
---|
108 | Int getNumberOfNegativePictures() { return m_numberOfNegativePictures; } |
---|
109 | Void setNumberOfPositivePictures(Int number) { m_numberOfPositivePictures = number; } |
---|
110 | Int getNumberOfPositivePictures() { return m_numberOfPositivePictures; } |
---|
111 | Void setNumberOfLongtermPictures(Int number) { m_numberOfLongtermPictures = number; } |
---|
112 | Int getNumberOfLongtermPictures() { return m_numberOfLongtermPictures; } |
---|
113 | |
---|
114 | Void setInterRPSPrediction(Bool flag) { m_interRPSPrediction = flag; } |
---|
115 | Bool getInterRPSPrediction() { return m_interRPSPrediction; } |
---|
116 | Void setDeltaRIdxMinus1(Int x) { m_deltaRIdxMinus1 = x; } |
---|
117 | Int getDeltaRIdxMinus1() { return m_deltaRIdxMinus1; } |
---|
118 | Void setDeltaRPS(Int x) { m_deltaRPS = x; } |
---|
119 | Int getDeltaRPS() { return m_deltaRPS; } |
---|
120 | Void setNumRefIdc(Int x) { m_numRefIdc = x; } |
---|
121 | Int getNumRefIdc() { return m_numRefIdc; } |
---|
122 | |
---|
123 | Void setRefIdc(Int bufferNum, Int refIdc); |
---|
124 | Int getRefIdc(Int bufferNum); |
---|
125 | |
---|
126 | Void sortDeltaPOC(); |
---|
127 | Void printDeltaPOC(); |
---|
128 | }; |
---|
129 | |
---|
130 | /// Reference Picture Set set class |
---|
131 | class TComRPSList |
---|
132 | { |
---|
133 | private: |
---|
134 | Int m_numberOfReferencePictureSets; |
---|
135 | TComReferencePictureSet* m_referencePictureSets; |
---|
136 | |
---|
137 | public: |
---|
138 | TComRPSList(); |
---|
139 | virtual ~TComRPSList(); |
---|
140 | |
---|
141 | Void create (Int numberOfEntries); |
---|
142 | Void destroy (); |
---|
143 | |
---|
144 | |
---|
145 | TComReferencePictureSet* getReferencePictureSet(Int referencePictureSetNum); |
---|
146 | Int getNumberOfReferencePictureSets(); |
---|
147 | Void setNumberOfReferencePictureSets(Int numberOfReferencePictureSets); |
---|
148 | }; |
---|
149 | |
---|
150 | /// SCALING_LIST class |
---|
151 | class TComScalingList |
---|
152 | { |
---|
153 | public: |
---|
154 | TComScalingList(); |
---|
155 | virtual ~TComScalingList(); |
---|
156 | Void setScalingListPresentFlag (Bool b) { m_scalingListPresentFlag = b; } |
---|
157 | Bool getScalingListPresentFlag () { return m_scalingListPresentFlag; } |
---|
158 | Int* getScalingListAddress (UInt sizeId, UInt listId) { return m_scalingListCoef[sizeId][listId]; } //!< get matrix coefficient |
---|
159 | Bool checkPredMode (UInt sizeId, UInt listId); |
---|
160 | Void setRefMatrixId (UInt sizeId, UInt listId, UInt u) { m_refMatrixId[sizeId][listId] = u; } //!< set reference matrix ID |
---|
161 | UInt getRefMatrixId (UInt sizeId, UInt listId) { return m_refMatrixId[sizeId][listId]; } //!< get reference matrix ID |
---|
162 | Int* getScalingListDefaultAddress (UInt sizeId, UInt listId); //!< get default matrix coefficient |
---|
163 | Void processDefaultMatrix (UInt sizeId, UInt listId); |
---|
164 | Void setScalingListDC (UInt sizeId, UInt listId, UInt u) { m_scalingListDC[sizeId][listId] = u; } //!< set DC value |
---|
165 | |
---|
166 | Int getScalingListDC (UInt sizeId, UInt listId) { return m_scalingListDC[sizeId][listId]; } //!< get DC value |
---|
167 | Void checkDcOfMatrix (); |
---|
168 | Void processRefMatrix (UInt sizeId, UInt listId , UInt refListId ); |
---|
169 | Bool xParseScalingList (Char* pchFile); |
---|
170 | |
---|
171 | private: |
---|
172 | Void init (); |
---|
173 | Void destroy (); |
---|
174 | Int m_scalingListDC [SCALING_LIST_SIZE_NUM][SCALING_LIST_NUM]; //!< the DC value of the matrix coefficient for 16x16 |
---|
175 | Bool m_useDefaultScalingMatrixFlag [SCALING_LIST_SIZE_NUM][SCALING_LIST_NUM]; //!< UseDefaultScalingMatrixFlag |
---|
176 | UInt m_refMatrixId [SCALING_LIST_SIZE_NUM][SCALING_LIST_NUM]; //!< RefMatrixID |
---|
177 | Bool m_scalingListPresentFlag; //!< flag for using default matrix |
---|
178 | UInt m_predMatrixId [SCALING_LIST_SIZE_NUM][SCALING_LIST_NUM]; //!< reference list index |
---|
179 | Int *m_scalingListCoef [SCALING_LIST_SIZE_NUM][SCALING_LIST_NUM]; //!< quantization matrix |
---|
180 | }; |
---|
181 | |
---|
182 | class ProfileTierLevel |
---|
183 | { |
---|
184 | Int m_profileSpace; |
---|
185 | Bool m_tierFlag; |
---|
186 | Int m_profileIdc; |
---|
187 | Bool m_profileCompatibilityFlag[32]; |
---|
188 | Int m_levelIdc; |
---|
189 | |
---|
190 | Bool m_progressiveSourceFlag; |
---|
191 | Bool m_interlacedSourceFlag; |
---|
192 | Bool m_nonPackedConstraintFlag; |
---|
193 | Bool m_frameOnlyConstraintFlag; |
---|
194 | |
---|
195 | public: |
---|
196 | ProfileTierLevel(); |
---|
197 | |
---|
198 | Int getProfileSpace() const { return m_profileSpace; } |
---|
199 | Void setProfileSpace(Int x) { m_profileSpace = x; } |
---|
200 | |
---|
201 | Bool getTierFlag() const { return m_tierFlag; } |
---|
202 | Void setTierFlag(Bool x) { m_tierFlag = x; } |
---|
203 | |
---|
204 | Int getProfileIdc() const { return m_profileIdc; } |
---|
205 | Void setProfileIdc(Int x) { m_profileIdc = x; } |
---|
206 | |
---|
207 | Bool getProfileCompatibilityFlag(Int i) const { return m_profileCompatibilityFlag[i]; } |
---|
208 | Void setProfileCompatibilityFlag(Int i, Bool x) { m_profileCompatibilityFlag[i] = x; } |
---|
209 | |
---|
210 | Int getLevelIdc() const { return m_levelIdc; } |
---|
211 | Void setLevelIdc(Int x) { m_levelIdc = x; } |
---|
212 | |
---|
213 | Bool getProgressiveSourceFlag() const { return m_progressiveSourceFlag; } |
---|
214 | Void setProgressiveSourceFlag(Bool b) { m_progressiveSourceFlag = b; } |
---|
215 | |
---|
216 | Bool getInterlacedSourceFlag() const { return m_interlacedSourceFlag; } |
---|
217 | Void setInterlacedSourceFlag(Bool b) { m_interlacedSourceFlag = b; } |
---|
218 | |
---|
219 | Bool getNonPackedConstraintFlag() const { return m_nonPackedConstraintFlag; } |
---|
220 | Void setNonPackedConstraintFlag(Bool b) { m_nonPackedConstraintFlag = b; } |
---|
221 | |
---|
222 | Bool getFrameOnlyConstraintFlag() const { return m_frameOnlyConstraintFlag; } |
---|
223 | Void setFrameOnlyConstraintFlag(Bool b) { m_frameOnlyConstraintFlag = b; } |
---|
224 | #if VPS_EXTN_PROFILE_INFO |
---|
225 | Void copyProfileInfo(ProfileTierLevel *ptl); |
---|
226 | #endif |
---|
227 | }; |
---|
228 | |
---|
229 | |
---|
230 | class TComPTL |
---|
231 | { |
---|
232 | ProfileTierLevel m_generalPTL; |
---|
233 | ProfileTierLevel m_subLayerPTL[6]; // max. value of max_sub_layers_minus1 is 6 |
---|
234 | Bool m_subLayerProfilePresentFlag[6]; |
---|
235 | Bool m_subLayerLevelPresentFlag[6]; |
---|
236 | |
---|
237 | public: |
---|
238 | TComPTL(); |
---|
239 | Bool getSubLayerProfilePresentFlag(Int i) const { return m_subLayerProfilePresentFlag[i]; } |
---|
240 | Void setSubLayerProfilePresentFlag(Int i, Bool x) { m_subLayerProfilePresentFlag[i] = x; } |
---|
241 | |
---|
242 | Bool getSubLayerLevelPresentFlag(Int i) const { return m_subLayerLevelPresentFlag[i]; } |
---|
243 | Void setSubLayerLevelPresentFlag(Int i, Bool x) { m_subLayerLevelPresentFlag[i] = x; } |
---|
244 | |
---|
245 | ProfileTierLevel* getGeneralPTL() { return &m_generalPTL; } |
---|
246 | ProfileTierLevel* getSubLayerPTL(Int i) { return &m_subLayerPTL[i]; } |
---|
247 | #if VPS_EXTN_PROFILE_INFO |
---|
248 | Void copyProfileInfo(TComPTL *ptl); |
---|
249 | #endif |
---|
250 | }; |
---|
251 | /// VPS class |
---|
252 | |
---|
253 | struct HrdSubLayerInfo |
---|
254 | { |
---|
255 | Bool fixedPicRateFlag; |
---|
256 | Bool fixedPicRateWithinCvsFlag; |
---|
257 | UInt picDurationInTcMinus1; |
---|
258 | Bool lowDelayHrdFlag; |
---|
259 | UInt cpbCntMinus1; |
---|
260 | UInt bitRateValueMinus1[MAX_CPB_CNT][2]; |
---|
261 | UInt cpbSizeValue [MAX_CPB_CNT][2]; |
---|
262 | UInt ducpbSizeValue [MAX_CPB_CNT][2]; |
---|
263 | UInt cbrFlag [MAX_CPB_CNT][2]; |
---|
264 | UInt duBitRateValue [MAX_CPB_CNT][2]; |
---|
265 | }; |
---|
266 | |
---|
267 | class TComHRD |
---|
268 | { |
---|
269 | private: |
---|
270 | Bool m_nalHrdParametersPresentFlag; |
---|
271 | Bool m_vclHrdParametersPresentFlag; |
---|
272 | Bool m_subPicCpbParamsPresentFlag; |
---|
273 | UInt m_tickDivisorMinus2; |
---|
274 | UInt m_duCpbRemovalDelayLengthMinus1; |
---|
275 | Bool m_subPicCpbParamsInPicTimingSEIFlag; |
---|
276 | UInt m_dpbOutputDelayDuLengthMinus1; |
---|
277 | UInt m_bitRateScale; |
---|
278 | UInt m_cpbSizeScale; |
---|
279 | UInt m_ducpbSizeScale; |
---|
280 | UInt m_initialCpbRemovalDelayLengthMinus1; |
---|
281 | UInt m_cpbRemovalDelayLengthMinus1; |
---|
282 | UInt m_dpbOutputDelayLengthMinus1; |
---|
283 | UInt m_numDU; |
---|
284 | HrdSubLayerInfo m_HRD[MAX_TLAYER]; |
---|
285 | |
---|
286 | public: |
---|
287 | TComHRD() |
---|
288 | :m_nalHrdParametersPresentFlag(0) |
---|
289 | ,m_vclHrdParametersPresentFlag(0) |
---|
290 | ,m_subPicCpbParamsPresentFlag(false) |
---|
291 | ,m_tickDivisorMinus2(0) |
---|
292 | ,m_duCpbRemovalDelayLengthMinus1(0) |
---|
293 | ,m_subPicCpbParamsInPicTimingSEIFlag(false) |
---|
294 | ,m_dpbOutputDelayDuLengthMinus1(0) |
---|
295 | ,m_bitRateScale(0) |
---|
296 | ,m_cpbSizeScale(0) |
---|
297 | ,m_initialCpbRemovalDelayLengthMinus1(0) |
---|
298 | ,m_cpbRemovalDelayLengthMinus1(0) |
---|
299 | ,m_dpbOutputDelayLengthMinus1(0) |
---|
300 | {} |
---|
301 | |
---|
302 | virtual ~TComHRD() {} |
---|
303 | |
---|
304 | Void setNalHrdParametersPresentFlag ( Bool flag ) { m_nalHrdParametersPresentFlag = flag; } |
---|
305 | Bool getNalHrdParametersPresentFlag ( ) { return m_nalHrdParametersPresentFlag; } |
---|
306 | |
---|
307 | Void setVclHrdParametersPresentFlag ( Bool flag ) { m_vclHrdParametersPresentFlag = flag; } |
---|
308 | Bool getVclHrdParametersPresentFlag ( ) { return m_vclHrdParametersPresentFlag; } |
---|
309 | |
---|
310 | Void setSubPicCpbParamsPresentFlag ( Bool flag ) { m_subPicCpbParamsPresentFlag = flag; } |
---|
311 | Bool getSubPicCpbParamsPresentFlag ( ) { return m_subPicCpbParamsPresentFlag; } |
---|
312 | |
---|
313 | Void setTickDivisorMinus2 ( UInt value ) { m_tickDivisorMinus2 = value; } |
---|
314 | UInt getTickDivisorMinus2 ( ) { return m_tickDivisorMinus2; } |
---|
315 | |
---|
316 | Void setDuCpbRemovalDelayLengthMinus1 ( UInt value ) { m_duCpbRemovalDelayLengthMinus1 = value; } |
---|
317 | UInt getDuCpbRemovalDelayLengthMinus1 ( ) { return m_duCpbRemovalDelayLengthMinus1; } |
---|
318 | |
---|
319 | Void setSubPicCpbParamsInPicTimingSEIFlag ( Bool flag) { m_subPicCpbParamsInPicTimingSEIFlag = flag; } |
---|
320 | Bool getSubPicCpbParamsInPicTimingSEIFlag () { return m_subPicCpbParamsInPicTimingSEIFlag; } |
---|
321 | |
---|
322 | Void setDpbOutputDelayDuLengthMinus1 (UInt value ) { m_dpbOutputDelayDuLengthMinus1 = value; } |
---|
323 | UInt getDpbOutputDelayDuLengthMinus1 () { return m_dpbOutputDelayDuLengthMinus1; } |
---|
324 | |
---|
325 | Void setBitRateScale ( UInt value ) { m_bitRateScale = value; } |
---|
326 | UInt getBitRateScale ( ) { return m_bitRateScale; } |
---|
327 | |
---|
328 | Void setCpbSizeScale ( UInt value ) { m_cpbSizeScale = value; } |
---|
329 | UInt getCpbSizeScale ( ) { return m_cpbSizeScale; } |
---|
330 | Void setDuCpbSizeScale ( UInt value ) { m_ducpbSizeScale = value; } |
---|
331 | UInt getDuCpbSizeScale ( ) { return m_ducpbSizeScale; } |
---|
332 | |
---|
333 | Void setInitialCpbRemovalDelayLengthMinus1( UInt value ) { m_initialCpbRemovalDelayLengthMinus1 = value; } |
---|
334 | UInt getInitialCpbRemovalDelayLengthMinus1( ) { return m_initialCpbRemovalDelayLengthMinus1; } |
---|
335 | |
---|
336 | Void setCpbRemovalDelayLengthMinus1 ( UInt value ) { m_cpbRemovalDelayLengthMinus1 = value; } |
---|
337 | UInt getCpbRemovalDelayLengthMinus1 ( ) { return m_cpbRemovalDelayLengthMinus1; } |
---|
338 | |
---|
339 | Void setDpbOutputDelayLengthMinus1 ( UInt value ) { m_dpbOutputDelayLengthMinus1 = value; } |
---|
340 | UInt getDpbOutputDelayLengthMinus1 ( ) { return m_dpbOutputDelayLengthMinus1; } |
---|
341 | |
---|
342 | Void setFixedPicRateFlag ( Int layer, Bool flag ) { m_HRD[layer].fixedPicRateFlag = flag; } |
---|
343 | Bool getFixedPicRateFlag ( Int layer ) { return m_HRD[layer].fixedPicRateFlag; } |
---|
344 | |
---|
345 | Void setFixedPicRateWithinCvsFlag ( Int layer, Bool flag ) { m_HRD[layer].fixedPicRateWithinCvsFlag = flag; } |
---|
346 | Bool getFixedPicRateWithinCvsFlag ( Int layer ) { return m_HRD[layer].fixedPicRateWithinCvsFlag; } |
---|
347 | |
---|
348 | Void setPicDurationInTcMinus1 ( Int layer, UInt value ) { m_HRD[layer].picDurationInTcMinus1 = value; } |
---|
349 | UInt getPicDurationInTcMinus1 ( Int layer ) { return m_HRD[layer].picDurationInTcMinus1; } |
---|
350 | |
---|
351 | Void setLowDelayHrdFlag ( Int layer, Bool flag ) { m_HRD[layer].lowDelayHrdFlag = flag; } |
---|
352 | Bool getLowDelayHrdFlag ( Int layer ) { return m_HRD[layer].lowDelayHrdFlag; } |
---|
353 | |
---|
354 | Void setCpbCntMinus1 ( Int layer, UInt value ) { m_HRD[layer].cpbCntMinus1 = value; } |
---|
355 | UInt getCpbCntMinus1 ( Int layer ) { return m_HRD[layer].cpbCntMinus1; } |
---|
356 | |
---|
357 | Void setBitRateValueMinus1 ( Int layer, Int cpbcnt, Int nalOrVcl, UInt value ) { m_HRD[layer].bitRateValueMinus1[cpbcnt][nalOrVcl] = value; } |
---|
358 | UInt getBitRateValueMinus1 ( Int layer, Int cpbcnt, Int nalOrVcl ) { return m_HRD[layer].bitRateValueMinus1[cpbcnt][nalOrVcl]; } |
---|
359 | |
---|
360 | Void setCpbSizeValueMinus1 ( Int layer, Int cpbcnt, Int nalOrVcl, UInt value ) { m_HRD[layer].cpbSizeValue[cpbcnt][nalOrVcl] = value; } |
---|
361 | UInt getCpbSizeValueMinus1 ( Int layer, Int cpbcnt, Int nalOrVcl ) { return m_HRD[layer].cpbSizeValue[cpbcnt][nalOrVcl]; } |
---|
362 | Void setDuCpbSizeValueMinus1 ( Int layer, Int cpbcnt, Int nalOrVcl, UInt value ) { m_HRD[layer].ducpbSizeValue[cpbcnt][nalOrVcl] = value; } |
---|
363 | UInt getDuCpbSizeValueMinus1 ( Int layer, Int cpbcnt, Int nalOrVcl ) { return m_HRD[layer].ducpbSizeValue[cpbcnt][nalOrVcl]; } |
---|
364 | Void setDuBitRateValueMinus1 ( Int layer, Int cpbcnt, Int nalOrVcl, UInt value ) { m_HRD[layer].duBitRateValue[cpbcnt][nalOrVcl] = value; } |
---|
365 | UInt getDuBitRateValueMinus1 (Int layer, Int cpbcnt, Int nalOrVcl ) { return m_HRD[layer].duBitRateValue[cpbcnt][nalOrVcl]; } |
---|
366 | Void setCbrFlag ( Int layer, Int cpbcnt, Int nalOrVcl, UInt value ) { m_HRD[layer].cbrFlag[cpbcnt][nalOrVcl] = value; } |
---|
367 | Bool getCbrFlag ( Int layer, Int cpbcnt, Int nalOrVcl ) { return m_HRD[layer].cbrFlag[cpbcnt][nalOrVcl]; } |
---|
368 | |
---|
369 | Void setNumDU ( UInt value ) { m_numDU = value; } |
---|
370 | UInt getNumDU ( ) { return m_numDU; } |
---|
371 | Bool getCpbDpbDelaysPresentFlag() { return getNalHrdParametersPresentFlag() || getVclHrdParametersPresentFlag(); } |
---|
372 | }; |
---|
373 | |
---|
374 | class TimingInfo |
---|
375 | { |
---|
376 | Bool m_timingInfoPresentFlag; |
---|
377 | UInt m_numUnitsInTick; |
---|
378 | UInt m_timeScale; |
---|
379 | Bool m_pocProportionalToTimingFlag; |
---|
380 | Int m_numTicksPocDiffOneMinus1; |
---|
381 | public: |
---|
382 | TimingInfo() |
---|
383 | : m_timingInfoPresentFlag(false) |
---|
384 | , m_numUnitsInTick(1001) |
---|
385 | , m_timeScale(60000) |
---|
386 | , m_pocProportionalToTimingFlag(false) |
---|
387 | , m_numTicksPocDiffOneMinus1(0) {} |
---|
388 | |
---|
389 | Void setTimingInfoPresentFlag ( Bool flag ) { m_timingInfoPresentFlag = flag; } |
---|
390 | Bool getTimingInfoPresentFlag ( ) { return m_timingInfoPresentFlag; } |
---|
391 | |
---|
392 | Void setNumUnitsInTick ( UInt value ) { m_numUnitsInTick = value; } |
---|
393 | UInt getNumUnitsInTick ( ) { return m_numUnitsInTick; } |
---|
394 | |
---|
395 | Void setTimeScale ( UInt value ) { m_timeScale = value; } |
---|
396 | UInt getTimeScale ( ) { return m_timeScale; } |
---|
397 | |
---|
398 | Bool getPocProportionalToTimingFlag ( ) { return m_pocProportionalToTimingFlag; } |
---|
399 | Void setPocProportionalToTimingFlag (Bool x ) { m_pocProportionalToTimingFlag = x; } |
---|
400 | |
---|
401 | Int getNumTicksPocDiffOneMinus1 ( ) { return m_numTicksPocDiffOneMinus1; } |
---|
402 | Void setNumTicksPocDiffOneMinus1 (Int x ) { m_numTicksPocDiffOneMinus1 = x; } |
---|
403 | }; |
---|
404 | |
---|
405 | #if REPN_FORMAT_IN_VPS |
---|
406 | class RepFormat |
---|
407 | { |
---|
408 | #if REPN_FORMAT_CONTROL_FLAG |
---|
409 | Bool m_chromaAndBitDepthVpsPresentFlag; |
---|
410 | #endif |
---|
411 | #if AUXILIARY_PICTURES |
---|
412 | ChromaFormat m_chromaFormatVpsIdc; |
---|
413 | #else |
---|
414 | Int m_chromaFormatVpsIdc; |
---|
415 | #endif |
---|
416 | Bool m_separateColourPlaneVpsFlag; |
---|
417 | Int m_picWidthVpsInLumaSamples; |
---|
418 | Int m_picHeightVpsInLumaSamples; |
---|
419 | Int m_bitDepthVpsLuma; // coded as minus8 |
---|
420 | Int m_bitDepthVpsChroma; // coded as minus8 |
---|
421 | |
---|
422 | public: |
---|
423 | RepFormat(); |
---|
424 | |
---|
425 | #if REPN_FORMAT_CONTROL_FLAG |
---|
426 | Bool getChromaAndBitDepthVpsPresentFlag() { return m_chromaAndBitDepthVpsPresentFlag; } |
---|
427 | void setChromaAndBitDepthVpsPresentFlag(Bool x) { m_chromaAndBitDepthVpsPresentFlag = x; } |
---|
428 | #endif |
---|
429 | |
---|
430 | #if AUXILIARY_PICTURES |
---|
431 | ChromaFormat getChromaFormatVpsIdc() { return m_chromaFormatVpsIdc; } |
---|
432 | Void setChromaFormatVpsIdc(ChromaFormat x) { m_chromaFormatVpsIdc = x; } |
---|
433 | #else |
---|
434 | Int getChromaFormatVpsIdc() { return m_chromaFormatVpsIdc; } |
---|
435 | Void setChromaFormatVpsIdc(Int x) { m_chromaFormatVpsIdc = x; } |
---|
436 | #endif |
---|
437 | |
---|
438 | Bool getSeparateColourPlaneVpsFlag() { return m_separateColourPlaneVpsFlag; } |
---|
439 | Void setSeparateColourPlaneVpsFlag(Bool x) { m_separateColourPlaneVpsFlag = x; } |
---|
440 | |
---|
441 | Int getPicWidthVpsInLumaSamples() { return m_picWidthVpsInLumaSamples; } |
---|
442 | Void setPicWidthVpsInLumaSamples(Int x) { m_picWidthVpsInLumaSamples = x; } |
---|
443 | |
---|
444 | Int getPicHeightVpsInLumaSamples() { return m_picHeightVpsInLumaSamples; } |
---|
445 | Void setPicHeightVpsInLumaSamples(Int x) { m_picHeightVpsInLumaSamples = x; } |
---|
446 | |
---|
447 | Int getBitDepthVpsLuma() { return m_bitDepthVpsLuma; } |
---|
448 | Void setBitDepthVpsLuma(Int x) { m_bitDepthVpsLuma = x; } |
---|
449 | |
---|
450 | Int getBitDepthVpsChroma() { return m_bitDepthVpsChroma; } |
---|
451 | Void setBitDepthVpsChroma(Int x) { m_bitDepthVpsChroma = x; } |
---|
452 | }; |
---|
453 | #endif |
---|
454 | class TComVPS |
---|
455 | { |
---|
456 | private: |
---|
457 | Int m_VPSId; |
---|
458 | UInt m_uiMaxTLayers; |
---|
459 | UInt m_uiMaxLayers; |
---|
460 | Bool m_bTemporalIdNestingFlag; |
---|
461 | |
---|
462 | UInt m_numReorderPics[MAX_TLAYER]; |
---|
463 | UInt m_uiMaxDecPicBuffering[MAX_TLAYER]; |
---|
464 | UInt m_uiMaxLatencyIncrease[MAX_TLAYER]; // Really max latency increase plus 1 (value 0 expresses no limit) |
---|
465 | |
---|
466 | UInt m_numHrdParameters; |
---|
467 | #if !VPS_RENAME |
---|
468 | UInt m_maxNuhReservedZeroLayerId; |
---|
469 | #endif |
---|
470 | TComHRD* m_hrdParameters; |
---|
471 | UInt* m_hrdOpSetIdx; |
---|
472 | Bool* m_cprmsPresentFlag; |
---|
473 | #if !SVC_EXTENSION |
---|
474 | UInt m_numOpSets; |
---|
475 | Bool m_layerIdIncludedFlag[MAX_VPS_OP_SETS_PLUS1][MAX_VPS_NUH_RESERVED_ZERO_LAYER_ID_PLUS1]; |
---|
476 | #endif |
---|
477 | TComPTL m_pcPTL; |
---|
478 | TimingInfo m_timingInfo; |
---|
479 | |
---|
480 | #if SVC_EXTENSION |
---|
481 | #if DERIVE_LAYER_ID_LIST_VARIABLES |
---|
482 | Int m_layerSetLayerIdList[MAX_VPS_LAYER_SETS_PLUS1][MAX_VPS_LAYER_ID_PLUS1]; |
---|
483 | Int m_numLayerInIdList[MAX_VPS_LAYER_SETS_PLUS1]; |
---|
484 | #endif |
---|
485 | #if VPS_EXTN_OFFSET |
---|
486 | UInt m_extensionOffset; |
---|
487 | #endif |
---|
488 | #if VPS_RENAME |
---|
489 | UInt m_maxLayerId; |
---|
490 | UInt m_numLayerSets; |
---|
491 | Bool m_layerIdIncludedFlag[MAX_VPS_LAYER_SETS_PLUS1][MAX_VPS_LAYER_ID_PLUS1]; |
---|
492 | #endif |
---|
493 | |
---|
494 | // ------------------------------------------ |
---|
495 | // Variables related to VPS extensions |
---|
496 | // ------------------------------------------ |
---|
497 | #if VPS_EXTN_MASK_AND_DIM_INFO |
---|
498 | Bool m_avcBaseLayerFlag; // For now, always set to true. |
---|
499 | Bool m_splittingFlag; |
---|
500 | Bool m_scalabilityMask[MAX_VPS_NUM_SCALABILITY_TYPES]; |
---|
501 | UInt m_dimensionIdLen[MAX_VPS_NUM_SCALABILITY_TYPES]; |
---|
502 | Bool m_nuhLayerIdPresentFlag; |
---|
503 | UInt m_layerIdInNuh[MAX_VPS_LAYER_ID_PLUS1]; // Maps layer ID in the VPS with layer_id_in_nuh |
---|
504 | UInt m_dimensionId[MAX_VPS_LAYER_ID_PLUS1][MAX_VPS_NUM_SCALABILITY_TYPES]; |
---|
505 | |
---|
506 | // Below are derived variables |
---|
507 | UInt m_numScalabilityTypes; |
---|
508 | UInt m_layerIdInVps[MAX_VPS_LAYER_ID_PLUS1]; // Maps layer_id_in_nuh with the layer ID in the VPS |
---|
509 | #endif |
---|
510 | #if ILP_SSH_SIG |
---|
511 | Bool m_ilpSshSignalingEnabledFlag; |
---|
512 | #endif |
---|
513 | #if VPS_EXTN_PROFILE_INFO |
---|
514 | // Profile-tier-level signalling related |
---|
515 | Bool m_profilePresentFlag[MAX_VPS_LAYER_SETS_PLUS1]; // The value with index 0 will not be used. |
---|
516 | #if !P0048_REMOVE_PROFILE_REF |
---|
517 | UInt m_profileLayerSetRef[MAX_VPS_LAYER_SETS_PLUS1]; // The value with index 0 will not be used. |
---|
518 | #endif |
---|
519 | std::vector<TComPTL> m_pcPTLForExtn; |
---|
520 | #endif |
---|
521 | #if VPS_EXTN_OP_LAYER_SETS |
---|
522 | // .. More declarations here |
---|
523 | // Target output layer signalling related |
---|
524 | UInt m_numOutputLayerSets; |
---|
525 | UInt m_outputLayerSetIdx[MAX_VPS_LAYER_SETS_PLUS1]; |
---|
526 | Bool m_outputLayerFlag[MAX_VPS_LAYER_SETS_PLUS1][MAX_VPS_LAYER_ID_PLUS1]; |
---|
527 | #endif |
---|
528 | #if VPS_EXTN_DIRECT_REF_LAYERS |
---|
529 | Bool m_directDependencyFlag[MAX_VPS_LAYER_ID_PLUS1][MAX_VPS_LAYER_ID_PLUS1]; |
---|
530 | UInt m_numDirectRefLayers[MAX_VPS_LAYER_ID_PLUS1]; |
---|
531 | UInt m_refLayerId[MAX_VPS_LAYER_ID_PLUS1][MAX_VPS_LAYER_ID_PLUS1]; |
---|
532 | UInt m_directDepTypeLen; |
---|
533 | #if O0096_DEFAULT_DEPENDENCY_TYPE |
---|
534 | Bool m_defaultDirectDependencyTypeFlag; |
---|
535 | UInt m_defaultDirectDependencyType; |
---|
536 | #endif |
---|
537 | UInt m_directDependencyType[MAX_VPS_LAYER_ID_PLUS1][MAX_VPS_LAYER_ID_PLUS1]; |
---|
538 | #endif |
---|
539 | UInt m_numProfileTierLevel; |
---|
540 | Bool m_moreOutputLayerSetsThanDefaultFlag; |
---|
541 | Int m_numAddOutputLayerSets; |
---|
542 | #if O0109_DEFAULT_ONE_OUT_LAYER_IDC |
---|
543 | UInt m_defaultOneTargetOutputLayerIdc; |
---|
544 | #else |
---|
545 | Bool m_defaultOneTargetOutputLayerFlag; |
---|
546 | #endif |
---|
547 | Int m_profileLevelTierIdx[64]; |
---|
548 | Bool m_maxOneActiveRefLayerFlag; |
---|
549 | #if O0062_POC_LSB_NOT_PRESENT_FLAG |
---|
550 | Bool m_pocLsbNotPresentFlag[MAX_VPS_LAYER_ID_PLUS1]; |
---|
551 | #endif |
---|
552 | #if O0223_PICTURE_TYPES_ALIGN_FLAG |
---|
553 | Bool m_crossLayerPictureTypeAlignFlag; |
---|
554 | #endif |
---|
555 | #if N0147_IRAP_ALIGN_FLAG |
---|
556 | Bool m_crossLayerIrapAlignFlag; |
---|
557 | #endif |
---|
558 | #if O0225_MAX_TID_FOR_REF_LAYERS |
---|
559 | UInt m_maxTidIlRefPicsPlus1[MAX_VPS_LAYER_ID_PLUS1 - 1][MAX_VPS_LAYER_ID_PLUS1]; |
---|
560 | #else |
---|
561 | UInt m_maxTidIlRefPicsPlus1[MAX_VPS_LAYER_ID_PLUS1 - 1]; |
---|
562 | #endif |
---|
563 | #if N0120_MAX_TID_REF_PRESENT_FLAG |
---|
564 | Bool m_maxTidRefPresentFlag; |
---|
565 | #endif |
---|
566 | #if VPS_TSLAYERS |
---|
567 | Bool m_maxTSLayersPresentFlag; |
---|
568 | UInt m_maxTSLayerMinus1[MAX_VPS_LAYER_ID_PLUS1 - 1]; |
---|
569 | #endif |
---|
570 | #if M0040_ADAPTIVE_RESOLUTION_CHANGE |
---|
571 | Bool m_singleLayerForNonIrapFlag; |
---|
572 | #endif |
---|
573 | #if HIGHER_LAYER_IRAP_SKIP_FLAG |
---|
574 | Bool m_higherLayerIrapSkipFlag; |
---|
575 | #endif |
---|
576 | #if VPS_VUI_TILES_NOT_IN_USE__FLAG |
---|
577 | Bool m_tilesNotInUseFlag; |
---|
578 | Bool m_tilesInUseFlag[MAX_VPS_LAYER_ID_PLUS1]; |
---|
579 | Bool m_loopFilterNotAcrossTilesFlag[MAX_VPS_LAYER_ID_PLUS1]; |
---|
580 | #endif |
---|
581 | #if TILE_BOUNDARY_ALIGNED_FLAG |
---|
582 | Bool m_tileBoundariesAlignedFlag[MAX_VPS_LAYER_ID_PLUS1][MAX_VPS_LAYER_ID_PLUS1]; |
---|
583 | #endif |
---|
584 | #if VPS_VUI_WPP_NOT_IN_USE__FLAG |
---|
585 | Bool m_wppNotInUseFlag; |
---|
586 | Bool m_wppInUseFlag[MAX_VPS_LAYER_ID_PLUS1]; |
---|
587 | #endif |
---|
588 | #if N0160_VUI_EXT_ILP_REF |
---|
589 | Bool m_ilpRestrictedRefLayersFlag; |
---|
590 | Int m_minSpatialSegmentOffsetPlus1[MAX_VPS_LAYER_ID_PLUS1][MAX_VPS_LAYER_ID_PLUS1]; |
---|
591 | Bool m_ctuBasedOffsetEnabledFlag [MAX_VPS_LAYER_ID_PLUS1][MAX_VPS_LAYER_ID_PLUS1]; |
---|
592 | Int m_minHorizontalCtuOffsetPlus1 [MAX_VPS_LAYER_ID_PLUS1][MAX_VPS_LAYER_ID_PLUS1]; |
---|
593 | #endif |
---|
594 | #if VPS_VUI_VIDEO_SIGNAL |
---|
595 | Bool m_vidSigPresentVpsFlag; |
---|
596 | Int m_vpsVidSigInfo; |
---|
597 | Int m_vpsVidSigIdx[MAX_VPS_LAYER_ID_PLUS1]; |
---|
598 | Int m_vpsVidFormat[16]; |
---|
599 | Bool m_vpsFullRangeFlag[16]; |
---|
600 | Int m_vpsColorPrimaries[16]; |
---|
601 | Int m_vpsTransChar[16]; |
---|
602 | Int m_vpsMatCoeff[16]; |
---|
603 | #endif |
---|
604 | #if VPS_VUI_BITRATE_PICRATE |
---|
605 | Bool m_bitRatePresentVpsFlag; |
---|
606 | Bool m_picRatePresentVpsFlag; |
---|
607 | Bool m_bitRatePresentFlag [MAX_VPS_LAYER_SETS_PLUS1][MAX_TLAYER]; |
---|
608 | Bool m_picRatePresentFlag [MAX_VPS_LAYER_SETS_PLUS1][MAX_TLAYER]; |
---|
609 | Int m_avgBitRate [MAX_VPS_LAYER_SETS_PLUS1][MAX_TLAYER]; |
---|
610 | Int m_maxBitRate [MAX_VPS_LAYER_SETS_PLUS1][MAX_TLAYER]; |
---|
611 | Int m_constPicRateIdc [MAX_VPS_LAYER_SETS_PLUS1][MAX_TLAYER]; |
---|
612 | Int m_avgPicRate [MAX_VPS_LAYER_SETS_PLUS1][MAX_TLAYER]; |
---|
613 | #endif |
---|
614 | #if O0153_ALT_OUTPUT_LAYER_FLAG |
---|
615 | Bool m_altOutputLayerFlag; |
---|
616 | #endif |
---|
617 | #if REPN_FORMAT_IN_VPS |
---|
618 | Bool m_repFormatIdxPresentFlag; |
---|
619 | Int m_vpsNumRepFormats; // coded as minus1 |
---|
620 | RepFormat m_vpsRepFormat[16]; |
---|
621 | Int m_vpsRepFormatIdx[16]; |
---|
622 | #endif |
---|
623 | #if VIEW_ID_RELATED_SIGNALING |
---|
624 | #if O0109_VIEW_ID_LEN |
---|
625 | Int m_viewIdLen; |
---|
626 | #else |
---|
627 | Int m_viewIdLenMinus1; |
---|
628 | #endif |
---|
629 | Int m_viewIdVal [MAX_LAYERS]; |
---|
630 | #endif |
---|
631 | |
---|
632 | #if O0215_PHASE_ALIGNMENT |
---|
633 | Bool m_phaseAlignFlag; |
---|
634 | #endif |
---|
635 | |
---|
636 | #if O0092_0094_DEPENDENCY_CONSTRAINT |
---|
637 | Int m_numberRefLayers[MAX_NUM_LAYER_IDS]; // number of direct and indirect reference layers of a coding layer |
---|
638 | Bool m_recursiveRefLayerFlag[MAX_NUM_LAYER_IDS][MAX_NUM_LAYER_IDS]; // flag to indicate if j-th layer is a direct or indirect reference layer of i-th layer |
---|
639 | #endif |
---|
640 | #if VPS_DPB_SIZE_TABLE |
---|
641 | Bool m_subLayerFlagInfoPresentFlag [MAX_VPS_OP_LAYER_SETS_PLUS1]; |
---|
642 | Bool m_subLayerDpbInfoPresentFlag [MAX_VPS_OP_LAYER_SETS_PLUS1][MAX_LAYERS]; |
---|
643 | Int m_maxVpsDecPicBufferingMinus1 [MAX_VPS_OP_LAYER_SETS_PLUS1][MAX_LAYERS][MAX_TLAYER]; |
---|
644 | Int m_maxVpsNumReorderPics [MAX_VPS_OP_LAYER_SETS_PLUS1][MAX_LAYERS]; |
---|
645 | Int m_maxVpsLatencyIncreasePlus1 [MAX_VPS_OP_LAYER_SETS_PLUS1][MAX_LAYERS]; |
---|
646 | Int m_numSubDpbs [MAX_VPS_OP_LAYER_SETS_PLUS1]; |
---|
647 | #endif |
---|
648 | |
---|
649 | #if O0109_MOVE_VPS_VUI_FLAG |
---|
650 | Bool m_vpsVuiPresentFlag; |
---|
651 | #endif |
---|
652 | |
---|
653 | #if !P0307_REMOVE_VPS_VUI_OFFSET |
---|
654 | #if VPS_VUI_OFFSET |
---|
655 | Int m_vpsVuiOffset; |
---|
656 | #endif |
---|
657 | #endif |
---|
658 | #if P0307_VPS_NON_VUI_EXTENSION |
---|
659 | Int m_vpsNonVuiExtLength; |
---|
660 | #endif |
---|
661 | #endif //SVC_EXTENSION |
---|
662 | public: |
---|
663 | TComVPS(); |
---|
664 | virtual ~TComVPS(); |
---|
665 | |
---|
666 | Void createHrdParamBuffer() |
---|
667 | { |
---|
668 | m_hrdParameters = new TComHRD[ getNumHrdParameters() ]; |
---|
669 | m_hrdOpSetIdx = new UInt [ getNumHrdParameters() ]; |
---|
670 | m_cprmsPresentFlag = new Bool [ getNumHrdParameters() ]; |
---|
671 | } |
---|
672 | |
---|
673 | TComHRD* getHrdParameters ( UInt i ) { return &m_hrdParameters[ i ]; } |
---|
674 | UInt getHrdOpSetIdx ( UInt i ) { return m_hrdOpSetIdx[ i ]; } |
---|
675 | Void setHrdOpSetIdx ( UInt val, UInt i ) { m_hrdOpSetIdx[ i ] = val; } |
---|
676 | Bool getCprmsPresentFlag ( UInt i ) { return m_cprmsPresentFlag[ i ]; } |
---|
677 | Void setCprmsPresentFlag ( Bool val, UInt i ) { m_cprmsPresentFlag[ i ] = val; } |
---|
678 | |
---|
679 | Int getVPSId () { return m_VPSId; } |
---|
680 | Void setVPSId (Int i) { m_VPSId = i; } |
---|
681 | |
---|
682 | UInt getMaxTLayers () { return m_uiMaxTLayers; } |
---|
683 | Void setMaxTLayers (UInt t) { m_uiMaxTLayers = t; } |
---|
684 | |
---|
685 | UInt getMaxLayers () { return m_uiMaxLayers; } |
---|
686 | Void setMaxLayers (UInt l) { m_uiMaxLayers = l; } |
---|
687 | |
---|
688 | Bool getTemporalNestingFlag () { return m_bTemporalIdNestingFlag; } |
---|
689 | Void setTemporalNestingFlag (Bool t) { m_bTemporalIdNestingFlag = t; } |
---|
690 | |
---|
691 | Void setNumReorderPics(UInt v, UInt tLayer) { m_numReorderPics[tLayer] = v; } |
---|
692 | UInt getNumReorderPics(UInt tLayer) { return m_numReorderPics[tLayer]; } |
---|
693 | |
---|
694 | Void setMaxDecPicBuffering(UInt v, UInt tLayer) { m_uiMaxDecPicBuffering[tLayer] = v; } |
---|
695 | UInt getMaxDecPicBuffering(UInt tLayer) { return m_uiMaxDecPicBuffering[tLayer]; } |
---|
696 | |
---|
697 | Void setMaxLatencyIncrease(UInt v, UInt tLayer) { m_uiMaxLatencyIncrease[tLayer] = v; } |
---|
698 | UInt getMaxLatencyIncrease(UInt tLayer) { return m_uiMaxLatencyIncrease[tLayer]; } |
---|
699 | |
---|
700 | UInt getNumHrdParameters() { return m_numHrdParameters; } |
---|
701 | Void setNumHrdParameters(UInt v) { m_numHrdParameters = v; } |
---|
702 | |
---|
703 | #if !SVC_EXTENSION |
---|
704 | UInt getMaxNuhReservedZeroLayerId() { return m_maxNuhReservedZeroLayerId; } |
---|
705 | Void setMaxNuhReservedZeroLayerId(UInt v) { m_maxNuhReservedZeroLayerId = v; } |
---|
706 | |
---|
707 | UInt getMaxOpSets() { return m_numOpSets; } |
---|
708 | Void setMaxOpSets(UInt v) { m_numOpSets = v; } |
---|
709 | #endif |
---|
710 | Bool getLayerIdIncludedFlag(UInt opsIdx, UInt id) { return m_layerIdIncludedFlag[opsIdx][id]; } |
---|
711 | Void setLayerIdIncludedFlag(Bool v, UInt opsIdx, UInt id) { m_layerIdIncludedFlag[opsIdx][id] = v; } |
---|
712 | |
---|
713 | TComPTL* getPTL() { return &m_pcPTL; } |
---|
714 | TimingInfo* getTimingInfo() { return &m_timingInfo; } |
---|
715 | |
---|
716 | #if SVC_EXTENSION |
---|
717 | #if DERIVE_LAYER_ID_LIST_VARIABLES |
---|
718 | Int getLayerSetLayerIdList(Int set, Int layerId) { return m_layerSetLayerIdList[set][layerId]; } |
---|
719 | Void setLayerSetLayerIdList(Int set, Int layerId, Int x) { m_layerSetLayerIdList[set][layerId] = x ; } |
---|
720 | |
---|
721 | Int getNumLayersInIdList(Int set) { return m_numLayerInIdList[set]; } |
---|
722 | Void setNumLayersInIdList(Int set, Int x) { m_numLayerInIdList[set] = x ; } |
---|
723 | |
---|
724 | Void deriveLayerIdListVariables(); |
---|
725 | #endif |
---|
726 | #if VPS_DPB_SIZE_TABLE |
---|
727 | Void deriveNumberOfSubDpbs(); |
---|
728 | #endif |
---|
729 | |
---|
730 | #if O0092_0094_DEPENDENCY_CONSTRAINT |
---|
731 | Void setRefLayersFlags(Int currLayerId); |
---|
732 | Bool getRecursiveRefLayerFlag(Int currLayerId, Int refLayerId) { return m_recursiveRefLayerFlag[currLayerId][refLayerId];} |
---|
733 | Void setRecursiveRefLayerFlag(Int currLayerId, Int refLayerId, Bool x) { m_recursiveRefLayerFlag[currLayerId][refLayerId] = x; } |
---|
734 | Int getNumRefLayers(Int currLayerId) { return m_numberRefLayers[currLayerId]; } |
---|
735 | Void setNumRefLayers(Int currLayerId); |
---|
736 | #endif |
---|
737 | #if VPS_RENAME |
---|
738 | UInt getMaxLayerId() { return m_maxLayerId; } |
---|
739 | Void setMaxLayerId(UInt v) { m_maxLayerId = v; } |
---|
740 | |
---|
741 | UInt getNumLayerSets() { return m_numLayerSets; } |
---|
742 | Void setNumLayerSets(UInt v) { m_numLayerSets = v; } |
---|
743 | #endif |
---|
744 | #if VPS_EXTN_MASK_AND_DIM_INFO |
---|
745 | Bool getAvcBaseLayerFlag() { return m_avcBaseLayerFlag; } |
---|
746 | Void setAvcBaseLayerFlag(Bool x) { m_avcBaseLayerFlag = x; } |
---|
747 | |
---|
748 | Bool getSplittingFlag() { return m_splittingFlag; } |
---|
749 | Void setSplittingFlag(Bool x) { m_splittingFlag = x; } |
---|
750 | |
---|
751 | Bool getScalabilityMask(Int id) { return m_scalabilityMask[id]; } |
---|
752 | Void setScalabilityMask(Int id, Bool x) { m_scalabilityMask[id] = x; } |
---|
753 | |
---|
754 | UInt getDimensionIdLen(Int id) { return m_dimensionIdLen[id]; } |
---|
755 | Void setDimensionIdLen(Int id, UInt x) { m_dimensionIdLen[id] = x; } |
---|
756 | |
---|
757 | Bool getNuhLayerIdPresentFlag() { return m_nuhLayerIdPresentFlag; } |
---|
758 | Void setNuhLayerIdPresentFlag(Bool x) { m_nuhLayerIdPresentFlag = x; } |
---|
759 | |
---|
760 | UInt getLayerIdInNuh(Int id) { return m_layerIdInNuh[id]; } |
---|
761 | Void setLayerIdInNuh(Int id, UInt x) { m_layerIdInNuh[id] = x; } |
---|
762 | |
---|
763 | UInt getDimensionId(Int lyrId, Int id) { return m_dimensionId[lyrId][id]; } |
---|
764 | Void setDimensionId(Int lyrId, Int id, UInt x) { m_dimensionId[lyrId][id] = x; } |
---|
765 | |
---|
766 | UInt getNumScalabilityTypes() { return m_numScalabilityTypes; } |
---|
767 | Void setNumScalabilityTypes(UInt x) { m_numScalabilityTypes = x; } |
---|
768 | |
---|
769 | UInt getLayerIdInVps(Int id) { return m_layerIdInVps[id]; } |
---|
770 | Void setLayerIdInVps(Int id, UInt x) { m_layerIdInVps[id] = x; } |
---|
771 | #endif |
---|
772 | #if ILP_SSH_SIG |
---|
773 | Bool getIlpSshSignalingEnabledFlag() { return m_ilpSshSignalingEnabledFlag;} |
---|
774 | Void setIlpSshSignalingEnabledFlag(Bool x) { m_ilpSshSignalingEnabledFlag = x;} |
---|
775 | #endif |
---|
776 | #if VPS_EXTN_PROFILE_INFO |
---|
777 | Bool getProfilePresentFlag(Int id) { return m_profilePresentFlag[id]; } |
---|
778 | Void setProfilePresentFlag(Int id, Bool x) { m_profilePresentFlag[id] = x; } |
---|
779 | |
---|
780 | #if !P0048_REMOVE_PROFILE_REF |
---|
781 | UInt getProfileLayerSetRef(Int id) { return m_profileLayerSetRef[id]; } |
---|
782 | Void setProfileLayerSetRef(Int id, Bool x) { m_profileLayerSetRef[id] = x; } |
---|
783 | #endif |
---|
784 | |
---|
785 | std::vector<TComPTL>* getPTLForExtnPtr() { return &m_pcPTLForExtn; } |
---|
786 | TComPTL* getPTLForExtn(Int id) { return &m_pcPTLForExtn[id]; } |
---|
787 | #endif |
---|
788 | #if VPS_EXTN_OP_LAYER_SETS |
---|
789 | // Target output layer signalling related |
---|
790 | UInt getNumOutputLayerSets() { return m_numOutputLayerSets; } |
---|
791 | Void setNumOutputLayerSets(Int x) { m_numOutputLayerSets = x; } |
---|
792 | |
---|
793 | UInt getOutputLayerSetIdx(Int idx) { return m_outputLayerSetIdx[idx]; } |
---|
794 | Void setOutputLayerSetIdx(Int idx, UInt x) { m_outputLayerSetIdx[idx] = x; } |
---|
795 | |
---|
796 | Bool getOutputLayerFlag(Int layerSet, Int layerId) { return m_outputLayerFlag[layerSet][layerId]; } |
---|
797 | Void setOutputLayerFlag(Int layerSet, Int layerId, Bool x) { m_outputLayerFlag[layerSet][layerId] = x; } |
---|
798 | #endif |
---|
799 | #if VPS_EXTN_DIRECT_REF_LAYERS |
---|
800 | // Direct dependency of layers |
---|
801 | Bool getDirectDependencyFlag(Int currLayerId, Int refLayerId) { return m_directDependencyFlag[currLayerId][refLayerId]; } |
---|
802 | Void setDirectDependencyFlag(Int currLayerId, Int refLayerId, Bool x) { m_directDependencyFlag[currLayerId][refLayerId] = x; } |
---|
803 | |
---|
804 | UInt getNumDirectRefLayers(Int layerId) { return m_numDirectRefLayers[layerId]; } |
---|
805 | Void setNumDirectRefLayers(Int layerId, UInt refLayerNum) { m_numDirectRefLayers[layerId] = refLayerNum; } |
---|
806 | |
---|
807 | UInt getRefLayerId(Int layerId, Int refLayerIdx) { return m_refLayerId[layerId][refLayerIdx]; } |
---|
808 | Void setRefLayerId(Int layerId, Int refLayerIdx, UInt refLayerId) { m_refLayerId[layerId][refLayerIdx] = refLayerId; } |
---|
809 | |
---|
810 | UInt getDirectDepTypeLen() { return m_directDepTypeLen; } |
---|
811 | Void setDirectDepTypeLen(UInt x) { m_directDepTypeLen = x; } |
---|
812 | #if O0096_DEFAULT_DEPENDENCY_TYPE |
---|
813 | Bool getDefaultDirectDependencyTypeFlag() { return m_defaultDirectDependencyTypeFlag; } |
---|
814 | Void setDefaultDirectDependecyTypeFlag(Bool x) { m_defaultDirectDependencyTypeFlag = x; } |
---|
815 | UInt getDefaultDirectDependencyType() { return m_defaultDirectDependencyType; } |
---|
816 | Void setDefaultDirectDependecyType(UInt x) { m_defaultDirectDependencyType = x; } |
---|
817 | #endif |
---|
818 | UInt getDirectDependencyType(Int currLayerId, Int refLayerId) { return m_directDependencyType[currLayerId][refLayerId]; } |
---|
819 | Void setDirectDependencyType(Int currLayerId, Int refLayerId, UInt x) { m_directDependencyType[currLayerId][refLayerId] = x; } |
---|
820 | #endif |
---|
821 | UInt getNumProfileTierLevel() { return m_numProfileTierLevel; } |
---|
822 | Void setNumProfileTierLevel(Int x) { m_numProfileTierLevel = x; } |
---|
823 | |
---|
824 | Bool getMoreOutputLayerSetsThanDefaultFlag() { return m_moreOutputLayerSetsThanDefaultFlag;} |
---|
825 | Void setMoreOutputLayerSetsThanDefaultFlag(Bool x) { m_moreOutputLayerSetsThanDefaultFlag = x ;} |
---|
826 | |
---|
827 | Int getNumAddOutputLayerSets() { return m_numAddOutputLayerSets; } |
---|
828 | Void setNumAddOutputLayerSets(Int x) { m_numAddOutputLayerSets = x ; } |
---|
829 | |
---|
830 | #if O0109_DEFAULT_ONE_OUT_LAYER_IDC |
---|
831 | UInt getDefaultOneTargetOutputLayerIdc() { return m_defaultOneTargetOutputLayerIdc;} |
---|
832 | Void setDefaultOneTargetOutputLayerIdc(UInt x) { m_defaultOneTargetOutputLayerIdc= x ;} |
---|
833 | #else |
---|
834 | Bool getDefaultOneTargetOutputLayerFlag() { return m_defaultOneTargetOutputLayerFlag;} |
---|
835 | Void setDefaultOneTargetOutputLayerFlag(Bool x) { m_defaultOneTargetOutputLayerFlag= x ;} |
---|
836 | #endif |
---|
837 | Int getProfileLevelTierIdx(Int i) { return m_profileLevelTierIdx[i]; } |
---|
838 | Void setProfileLevelTierIdx(Int i, Int x) { m_profileLevelTierIdx[i] = x ; } |
---|
839 | Bool getMaxOneActiveRefLayerFlag() { return m_maxOneActiveRefLayerFlag; } |
---|
840 | Void setMaxOneActiveRefLayerFlag(Bool x) { m_maxOneActiveRefLayerFlag = x; } |
---|
841 | #if O0062_POC_LSB_NOT_PRESENT_FLAG |
---|
842 | UInt getPocLsbNotPresentFlag(Int i) { return m_pocLsbNotPresentFlag[i]; } |
---|
843 | Void setPocLsbNotPresentFlag(Int i, Bool x) { m_pocLsbNotPresentFlag[i] = x; } |
---|
844 | #endif |
---|
845 | #if O0223_PICTURE_TYPES_ALIGN_FLAG |
---|
846 | Bool getCrossLayerPictureTypeAlignFlag() { return m_crossLayerPictureTypeAlignFlag; } |
---|
847 | Void setCrossLayerPictureTypeAlignFlag(Bool x) { m_crossLayerPictureTypeAlignFlag = x; } |
---|
848 | #endif |
---|
849 | #if N0147_IRAP_ALIGN_FLAG |
---|
850 | Bool getCrossLayerIrapAlignFlag() { return m_crossLayerIrapAlignFlag; } |
---|
851 | Void setCrossLayerIrapAlignFlag(Bool x) { m_crossLayerIrapAlignFlag = x; } |
---|
852 | #endif |
---|
853 | #if O0225_MAX_TID_FOR_REF_LAYERS |
---|
854 | UInt getMaxTidIlRefPicsPlus1(Int layerId, Int refLayerId) { return m_maxTidIlRefPicsPlus1[layerId][refLayerId]; } |
---|
855 | Void setMaxTidIlRefPicsPlus1(Int layerId, Int refLayerId, UInt maxSublayer) { m_maxTidIlRefPicsPlus1[layerId][refLayerId] = maxSublayer; } |
---|
856 | #else |
---|
857 | UInt getMaxTidIlRefPicsPlus1(Int layerId) { return m_maxTidIlRefPicsPlus1[layerId]; } |
---|
858 | Void setMaxTidIlRefPicsPlus1(Int layerId, UInt maxSublayer) { m_maxTidIlRefPicsPlus1[layerId] = maxSublayer; } |
---|
859 | #endif |
---|
860 | #if N0120_MAX_TID_REF_PRESENT_FLAG |
---|
861 | Bool getMaxTidRefPresentFlag() { return m_maxTidRefPresentFlag ;} |
---|
862 | Void setMaxTidRefPresentFlag(Bool x) { m_maxTidRefPresentFlag = x;} |
---|
863 | #endif |
---|
864 | #if VPS_TSLAYERS |
---|
865 | Bool getMaxTSLayersPresentFlag() { return m_maxTSLayersPresentFlag ;} |
---|
866 | Void setMaxTSLayersPresentFlag(Bool x) { m_maxTSLayersPresentFlag = x;} |
---|
867 | UInt getMaxTSLayersMinus1(Int layerId) { return m_maxTSLayerMinus1[layerId];} |
---|
868 | Void setMaxTSLayersMinus1(Int layerId, UInt maxTSublayer) { m_maxTSLayerMinus1[layerId] = maxTSublayer;} |
---|
869 | #endif |
---|
870 | #if M0040_ADAPTIVE_RESOLUTION_CHANGE |
---|
871 | Bool getSingleLayerForNonIrapFlag() { return m_singleLayerForNonIrapFlag; } |
---|
872 | Void setSingleLayerForNonIrapFlag(Bool x) { m_singleLayerForNonIrapFlag = x; } |
---|
873 | #endif |
---|
874 | #if HIGHER_LAYER_IRAP_SKIP_FLAG |
---|
875 | Bool getHigherLayerIrapSkipFlag() { return m_higherLayerIrapSkipFlag; } |
---|
876 | Void setHigherLayerIrapSkipFlag(Bool x) { m_higherLayerIrapSkipFlag = x; } |
---|
877 | #endif |
---|
878 | #if VPS_VUI_TILES_NOT_IN_USE__FLAG |
---|
879 | Bool getTilesNotInUseFlag() { return m_tilesNotInUseFlag; } |
---|
880 | Void setTilesNotInUseFlag(Bool x); |
---|
881 | Bool getTilesInUseFlag(Int currLayerId) { return m_tilesInUseFlag[currLayerId]; } |
---|
882 | Void setTilesInUseFlag(Int currLayerId, Bool x) { m_tilesInUseFlag[currLayerId] = x; } |
---|
883 | Bool getLoopFilterNotAcrossTilesFlag(Int currLayerId) { return m_loopFilterNotAcrossTilesFlag[currLayerId]; } |
---|
884 | Void setLoopFilterNotAcrossTilesFlag(Int currLayerId, Bool x) { m_loopFilterNotAcrossTilesFlag[currLayerId] = x; } |
---|
885 | #endif |
---|
886 | #if TILE_BOUNDARY_ALIGNED_FLAG |
---|
887 | Bool getTileBoundariesAlignedFlag(Int currLayerId, Int refLayerId) { return m_tileBoundariesAlignedFlag[currLayerId][refLayerId]; } |
---|
888 | Void setTileBoundariesAlignedFlag(Int currLayerId, Int refLayerId, Bool x) { m_tileBoundariesAlignedFlag[currLayerId][refLayerId] = x; } |
---|
889 | #endif |
---|
890 | #if VPS_VUI_WPP_NOT_IN_USE__FLAG |
---|
891 | Bool getWppNotInUseFlag() { return m_wppNotInUseFlag; } |
---|
892 | Void setWppNotInUseFlag(Bool x); |
---|
893 | Bool getWppInUseFlag(Int currLayerId) { return m_wppInUseFlag[currLayerId]; } |
---|
894 | Void setWppInUseFlag(Int currLayerId, Bool x) { m_wppInUseFlag[currLayerId] = x; } |
---|
895 | #endif |
---|
896 | #if N0160_VUI_EXT_ILP_REF |
---|
897 | Bool getIlpRestrictedRefLayersFlag ( ) { return m_ilpRestrictedRefLayersFlag ;} |
---|
898 | Void setIlpRestrictedRefLayersFlag ( Int val ) { m_ilpRestrictedRefLayersFlag = val;} |
---|
899 | |
---|
900 | Int getMinSpatialSegmentOffsetPlus1( Int currLayerId, Int refLayerId ) { return m_minSpatialSegmentOffsetPlus1[currLayerId][refLayerId];} |
---|
901 | Void setMinSpatialSegmentOffsetPlus1( Int currLayerId, Int refLayerId, Int val ) { m_minSpatialSegmentOffsetPlus1[currLayerId][refLayerId] = val;} |
---|
902 | |
---|
903 | Bool getCtuBasedOffsetEnabledFlag ( Int currLayerId, Int refLayerId ) { return m_ctuBasedOffsetEnabledFlag[currLayerId][refLayerId];} |
---|
904 | Void setCtuBasedOffsetEnabledFlag ( Int currLayerId, Int refLayerId, Bool flag ) { m_ctuBasedOffsetEnabledFlag[currLayerId][refLayerId] = flag;} |
---|
905 | |
---|
906 | Int getMinHorizontalCtuOffsetPlus1 ( Int currLayerId, Int refLayerId ) { return m_minHorizontalCtuOffsetPlus1[currLayerId][refLayerId];} |
---|
907 | Void setMinHorizontalCtuOffsetPlus1 ( Int currLayerId, Int refLayerId, Int val ) { m_minHorizontalCtuOffsetPlus1[currLayerId][refLayerId] = val;} |
---|
908 | #endif |
---|
909 | #if VPS_VUI_VIDEO_SIGNAL |
---|
910 | Bool getVideoSigPresentVpsFlag() { return m_vidSigPresentVpsFlag; } |
---|
911 | Void setVideoSigPresentVpsFlag(Bool x) { m_vidSigPresentVpsFlag = x; } |
---|
912 | Int getNumVideoSignalInfo() { return m_vpsVidSigInfo; } |
---|
913 | Void setNumVideoSignalInfo(Int x) { m_vpsVidSigInfo = x; } |
---|
914 | Int getVideoSignalInfoIdx(Int idx) { return m_vpsVidSigIdx[idx]; } |
---|
915 | Void setVideoSignalInfoIdx(Int idx, Int x) { m_vpsVidSigIdx[idx] = x; } |
---|
916 | Int getVideoVPSFormat(Int idx) { return m_vpsVidFormat[idx]; } |
---|
917 | Void setVideoVPSFormat(Int idx, Int x) { m_vpsVidFormat[idx] = x; } |
---|
918 | Bool getVideoFullRangeVpsFlag(Int idx) { return m_vpsFullRangeFlag[idx];} |
---|
919 | Void setVideoFullRangeVpsFlag(Int idx, Bool x) { m_vpsFullRangeFlag[idx] = x; } |
---|
920 | Int getColorPrimaries(Int idx) { return m_vpsColorPrimaries[idx]; } |
---|
921 | Void setColorPrimaries(Int idx, Int x) { m_vpsColorPrimaries[idx] = x; } |
---|
922 | Int getTransCharacter(Int idx) { return m_vpsTransChar[idx]; } |
---|
923 | Void setTransCharacter(Int idx, Int x) { m_vpsTransChar[idx] = x; } |
---|
924 | Int getMaxtrixCoeff(Int idx) { return m_vpsMatCoeff[idx]; } |
---|
925 | Void setMaxtrixCoeff(Int idx, Int x) { m_vpsMatCoeff[idx] = x; } |
---|
926 | #endif |
---|
927 | #if VPS_VUI_BITRATE_PICRATE |
---|
928 | Bool getBitRatePresentVpsFlag() { return m_bitRatePresentVpsFlag; } |
---|
929 | Void setBitRatePresentVpsFlag(Bool x) { m_bitRatePresentVpsFlag = x; } |
---|
930 | Bool getPicRatePresentVpsFlag() { return m_picRatePresentVpsFlag; } |
---|
931 | Void setPicRatePresentVpsFlag(Bool x) { m_picRatePresentVpsFlag = x; } |
---|
932 | |
---|
933 | Bool getBitRatePresentFlag(Int i, Int j) { return m_bitRatePresentFlag[i][j]; } |
---|
934 | Void setBitRatePresentFlag(Int i, Int j, Bool x) { m_bitRatePresentFlag[i][j] = x; } |
---|
935 | Bool getPicRatePresentFlag(Int i, Int j) { return m_picRatePresentFlag[i][j]; } |
---|
936 | Void setPicRatePresentFlag(Int i, Int j, Bool x) { m_picRatePresentFlag[i][j] = x; } |
---|
937 | |
---|
938 | Int getAvgBitRate(Int i, Int j) { return m_avgBitRate[i][j]; } |
---|
939 | Void setAvgBitRate(Int i, Int j, Int x) { m_avgBitRate[i][j] = x; } |
---|
940 | Int getMaxBitRate(Int i, Int j) { return m_maxBitRate[i][j]; } |
---|
941 | Void setMaxBitRate(Int i, Int j, Int x) { m_maxBitRate[i][j] = x; } |
---|
942 | |
---|
943 | Int getConstPicRateIdc(Int i, Int j) { return m_constPicRateIdc[i][j]; } |
---|
944 | Void setConstPicRateIdc(Int i, Int j, Int x) { m_constPicRateIdc[i][j] = x; } |
---|
945 | Int getAvgPicRate(Int i, Int j) { return m_avgPicRate[i][j]; } |
---|
946 | Void setAvgPicRate(Int i, Int j, Int x) { m_avgPicRate[i][j] = x; } |
---|
947 | #endif |
---|
948 | #if O0153_ALT_OUTPUT_LAYER_FLAG |
---|
949 | Bool getAltOuputLayerFlag() { return m_altOutputLayerFlag; } |
---|
950 | Void setAltOuputLayerFlag(Bool x) { m_altOutputLayerFlag = x; } |
---|
951 | #endif |
---|
952 | #if REPN_FORMAT_IN_VPS |
---|
953 | Bool getRepFormatIdxPresentFlag() { return m_repFormatIdxPresentFlag; } |
---|
954 | Void setRepFormatIdxPresentFlag(Bool x) { m_repFormatIdxPresentFlag = x; } |
---|
955 | |
---|
956 | Int getVpsNumRepFormats() { return m_vpsNumRepFormats; } |
---|
957 | Void setVpsNumRepFormats(Int x) { m_vpsNumRepFormats = x; } |
---|
958 | |
---|
959 | RepFormat* getVpsRepFormat(Int idx) { return &m_vpsRepFormat[idx]; } |
---|
960 | |
---|
961 | Int getVpsRepFormatIdx(Int idx) { return m_vpsRepFormatIdx[idx]; } |
---|
962 | Void setVpsRepFormatIdx(Int idx, Int x) { m_vpsRepFormatIdx[idx] = x; } |
---|
963 | #endif |
---|
964 | #if VIEW_ID_RELATED_SIGNALING |
---|
965 | #if O0109_VIEW_ID_LEN |
---|
966 | Void setViewIdLen( Int val ) { m_viewIdLen = val; } |
---|
967 | Int getViewIdLen( ) { return m_viewIdLen; } |
---|
968 | #else |
---|
969 | Void setViewIdLenMinus1( Int val ) { m_viewIdLenMinus1 = val; } |
---|
970 | Int getViewIdLenMinus1( ) { return m_viewIdLenMinus1; } |
---|
971 | #endif |
---|
972 | |
---|
973 | Void setViewIdVal( Int viewOrderIndex, Int val ) { m_viewIdVal[viewOrderIndex] = val; } |
---|
974 | Int getViewIdVal( Int viewOrderIndex ) { return m_viewIdVal[viewOrderIndex]; } |
---|
975 | Int getScalabilityId(Int, ScalabilityType scalType ); |
---|
976 | |
---|
977 | Int getViewIndex ( Int layerIdInNuh ) { return getScalabilityId( getLayerIdInVps(layerIdInNuh), VIEW_ORDER_INDEX ); } |
---|
978 | |
---|
979 | Int getNumViews(); |
---|
980 | Int scalTypeToScalIdx( ScalabilityType scalType ); |
---|
981 | #endif |
---|
982 | #if VPS_EXTN_OFFSET |
---|
983 | Int getExtensionOffset() { return m_extensionOffset; } |
---|
984 | Void setExtensionOffset( UInt offset ) { m_extensionOffset = offset; } |
---|
985 | #endif |
---|
986 | #if O0215_PHASE_ALIGNMENT |
---|
987 | Bool getPhaseAlignFlag() { return m_phaseAlignFlag; } |
---|
988 | Void setPhaseAlignFlag(Bool x) { m_phaseAlignFlag = x; } |
---|
989 | #endif |
---|
990 | #if VPS_DPB_SIZE_TABLE |
---|
991 | Bool getSubLayerFlagInfoPresentFlag(Int i) {return m_subLayerFlagInfoPresentFlag[i]; } |
---|
992 | Void setSubLayerFlagInfoPresentFlag(Int i, Bool x) {m_subLayerFlagInfoPresentFlag[i] = x; } |
---|
993 | |
---|
994 | Bool getSubLayerDpbInfoPresentFlag(Int i, Int j) {return m_subLayerDpbInfoPresentFlag[i][j]; } |
---|
995 | Void setSubLayerDpbInfoPresentFlag(Int i, Int j, Bool x) {m_subLayerDpbInfoPresentFlag[i][j] = x; } |
---|
996 | |
---|
997 | // For the 0-th output layer set, use the date from the active SPS for base layer. |
---|
998 | Int getMaxVpsDecPicBufferingMinus1(Int i, Int k, Int j) { assert(i != 0); return m_maxVpsDecPicBufferingMinus1[i][k][j]; } |
---|
999 | Void setMaxVpsDecPicBufferingMinus1(Int i, Int k, Int j, Int x) { m_maxVpsDecPicBufferingMinus1[i][k][j] = x; } |
---|
1000 | |
---|
1001 | Int getMaxVpsNumReorderPics(Int i, Int j) { assert(i != 0); return m_maxVpsNumReorderPics[i][j]; } |
---|
1002 | Void setMaxVpsNumReorderPics(Int i, Int j, Int x) { m_maxVpsNumReorderPics[i][j] = x; } |
---|
1003 | |
---|
1004 | Int getMaxVpsLatencyIncreasePlus1(Int i, Int j) { assert(i != 0); return m_maxVpsLatencyIncreasePlus1[i][j]; } |
---|
1005 | Void setMaxVpsLatencyIncreasePlus1(Int i, Int j, Int x) { m_maxVpsLatencyIncreasePlus1[i][j] = x; } |
---|
1006 | |
---|
1007 | Int getNumSubDpbs(Int i) { return m_numSubDpbs[i]; } |
---|
1008 | Void setNumSubDpbs(Int i, Int x) { m_numSubDpbs[i] = x; } |
---|
1009 | #endif |
---|
1010 | |
---|
1011 | #if O0109_MOVE_VPS_VUI_FLAG |
---|
1012 | Bool getVpsVuiPresentFlag() { return m_vpsVuiPresentFlag; } |
---|
1013 | Void setVpsVuiPresentFlag(Bool x) { m_vpsVuiPresentFlag = x; } |
---|
1014 | #endif |
---|
1015 | |
---|
1016 | #if !P0307_REMOVE_VPS_VUI_OFFSET |
---|
1017 | #if VPS_VUI_OFFSET |
---|
1018 | Int getVpsVuiOffset() { return m_vpsVuiOffset; } |
---|
1019 | Void setVpsVuiOffset(Int x) { m_vpsVuiOffset = x; } |
---|
1020 | #endif |
---|
1021 | #endif |
---|
1022 | #if P0307_VPS_NON_VUI_EXTENSION |
---|
1023 | Int getVpsNonVuiExtLength() { return m_vpsNonVuiExtLength; } |
---|
1024 | Void setVpsNonVuiExtLength(Int x) { m_vpsNonVuiExtLength = x; } |
---|
1025 | #endif |
---|
1026 | #endif //SVC_EXTENSION |
---|
1027 | }; |
---|
1028 | |
---|
1029 | class Window |
---|
1030 | { |
---|
1031 | private: |
---|
1032 | Bool m_enabledFlag; |
---|
1033 | Int m_winLeftOffset; |
---|
1034 | Int m_winRightOffset; |
---|
1035 | Int m_winTopOffset; |
---|
1036 | Int m_winBottomOffset; |
---|
1037 | public: |
---|
1038 | Window() |
---|
1039 | : m_enabledFlag (false) |
---|
1040 | , m_winLeftOffset (0) |
---|
1041 | , m_winRightOffset (0) |
---|
1042 | , m_winTopOffset (0) |
---|
1043 | , m_winBottomOffset (0) |
---|
1044 | { } |
---|
1045 | |
---|
1046 | Bool getWindowEnabledFlag() const { return m_enabledFlag; } |
---|
1047 | Void resetWindow() { m_enabledFlag = false; m_winLeftOffset = m_winRightOffset = m_winTopOffset = m_winBottomOffset = 0; } |
---|
1048 | Int getWindowLeftOffset() const { return m_enabledFlag ? m_winLeftOffset : 0; } |
---|
1049 | Void setWindowLeftOffset(Int val) { m_winLeftOffset = val; m_enabledFlag = true; } |
---|
1050 | Int getWindowRightOffset() const { return m_enabledFlag ? m_winRightOffset : 0; } |
---|
1051 | Void setWindowRightOffset(Int val) { m_winRightOffset = val; m_enabledFlag = true; } |
---|
1052 | Int getWindowTopOffset() const { return m_enabledFlag ? m_winTopOffset : 0; } |
---|
1053 | Void setWindowTopOffset(Int val) { m_winTopOffset = val; m_enabledFlag = true; } |
---|
1054 | Int getWindowBottomOffset() const { return m_enabledFlag ? m_winBottomOffset: 0; } |
---|
1055 | Void setWindowBottomOffset(Int val) { m_winBottomOffset = val; m_enabledFlag = true; } |
---|
1056 | |
---|
1057 | Void setWindow(Int offsetLeft, Int offsetLRight, Int offsetLTop, Int offsetLBottom) |
---|
1058 | { |
---|
1059 | m_enabledFlag = true; |
---|
1060 | m_winLeftOffset = offsetLeft; |
---|
1061 | m_winRightOffset = offsetLRight; |
---|
1062 | m_winTopOffset = offsetLTop; |
---|
1063 | m_winBottomOffset = offsetLBottom; |
---|
1064 | } |
---|
1065 | }; |
---|
1066 | |
---|
1067 | |
---|
1068 | class TComVUI |
---|
1069 | { |
---|
1070 | private: |
---|
1071 | Bool m_aspectRatioInfoPresentFlag; |
---|
1072 | Int m_aspectRatioIdc; |
---|
1073 | Int m_sarWidth; |
---|
1074 | Int m_sarHeight; |
---|
1075 | Bool m_overscanInfoPresentFlag; |
---|
1076 | Bool m_overscanAppropriateFlag; |
---|
1077 | Bool m_videoSignalTypePresentFlag; |
---|
1078 | Int m_videoFormat; |
---|
1079 | Bool m_videoFullRangeFlag; |
---|
1080 | Bool m_colourDescriptionPresentFlag; |
---|
1081 | Int m_colourPrimaries; |
---|
1082 | Int m_transferCharacteristics; |
---|
1083 | Int m_matrixCoefficients; |
---|
1084 | Bool m_chromaLocInfoPresentFlag; |
---|
1085 | Int m_chromaSampleLocTypeTopField; |
---|
1086 | Int m_chromaSampleLocTypeBottomField; |
---|
1087 | Bool m_neutralChromaIndicationFlag; |
---|
1088 | Bool m_fieldSeqFlag; |
---|
1089 | |
---|
1090 | Window m_defaultDisplayWindow; |
---|
1091 | Bool m_frameFieldInfoPresentFlag; |
---|
1092 | Bool m_hrdParametersPresentFlag; |
---|
1093 | Bool m_bitstreamRestrictionFlag; |
---|
1094 | Bool m_tilesFixedStructureFlag; |
---|
1095 | Bool m_motionVectorsOverPicBoundariesFlag; |
---|
1096 | Bool m_restrictedRefPicListsFlag; |
---|
1097 | Int m_minSpatialSegmentationIdc; |
---|
1098 | Int m_maxBytesPerPicDenom; |
---|
1099 | Int m_maxBitsPerMinCuDenom; |
---|
1100 | Int m_log2MaxMvLengthHorizontal; |
---|
1101 | Int m_log2MaxMvLengthVertical; |
---|
1102 | TComHRD m_hrdParameters; |
---|
1103 | TimingInfo m_timingInfo; |
---|
1104 | |
---|
1105 | public: |
---|
1106 | TComVUI() |
---|
1107 | :m_aspectRatioInfoPresentFlag(false) |
---|
1108 | ,m_aspectRatioIdc(0) |
---|
1109 | ,m_sarWidth(0) |
---|
1110 | ,m_sarHeight(0) |
---|
1111 | ,m_overscanInfoPresentFlag(false) |
---|
1112 | ,m_overscanAppropriateFlag(false) |
---|
1113 | ,m_videoSignalTypePresentFlag(false) |
---|
1114 | ,m_videoFormat(5) |
---|
1115 | ,m_videoFullRangeFlag(false) |
---|
1116 | ,m_colourDescriptionPresentFlag(false) |
---|
1117 | ,m_colourPrimaries(2) |
---|
1118 | ,m_transferCharacteristics(2) |
---|
1119 | ,m_matrixCoefficients(2) |
---|
1120 | ,m_chromaLocInfoPresentFlag(false) |
---|
1121 | ,m_chromaSampleLocTypeTopField(0) |
---|
1122 | ,m_chromaSampleLocTypeBottomField(0) |
---|
1123 | ,m_neutralChromaIndicationFlag(false) |
---|
1124 | ,m_fieldSeqFlag(false) |
---|
1125 | ,m_frameFieldInfoPresentFlag(false) |
---|
1126 | ,m_hrdParametersPresentFlag(false) |
---|
1127 | ,m_bitstreamRestrictionFlag(false) |
---|
1128 | ,m_tilesFixedStructureFlag(false) |
---|
1129 | ,m_motionVectorsOverPicBoundariesFlag(true) |
---|
1130 | ,m_restrictedRefPicListsFlag(1) |
---|
1131 | ,m_minSpatialSegmentationIdc(0) |
---|
1132 | ,m_maxBytesPerPicDenom(2) |
---|
1133 | ,m_maxBitsPerMinCuDenom(1) |
---|
1134 | ,m_log2MaxMvLengthHorizontal(15) |
---|
1135 | ,m_log2MaxMvLengthVertical(15) |
---|
1136 | {} |
---|
1137 | |
---|
1138 | virtual ~TComVUI() {} |
---|
1139 | |
---|
1140 | Bool getAspectRatioInfoPresentFlag() { return m_aspectRatioInfoPresentFlag; } |
---|
1141 | Void setAspectRatioInfoPresentFlag(Bool i) { m_aspectRatioInfoPresentFlag = i; } |
---|
1142 | |
---|
1143 | Int getAspectRatioIdc() { return m_aspectRatioIdc; } |
---|
1144 | Void setAspectRatioIdc(Int i) { m_aspectRatioIdc = i; } |
---|
1145 | |
---|
1146 | Int getSarWidth() { return m_sarWidth; } |
---|
1147 | Void setSarWidth(Int i) { m_sarWidth = i; } |
---|
1148 | |
---|
1149 | Int getSarHeight() { return m_sarHeight; } |
---|
1150 | Void setSarHeight(Int i) { m_sarHeight = i; } |
---|
1151 | |
---|
1152 | Bool getOverscanInfoPresentFlag() { return m_overscanInfoPresentFlag; } |
---|
1153 | Void setOverscanInfoPresentFlag(Bool i) { m_overscanInfoPresentFlag = i; } |
---|
1154 | |
---|
1155 | Bool getOverscanAppropriateFlag() { return m_overscanAppropriateFlag; } |
---|
1156 | Void setOverscanAppropriateFlag(Bool i) { m_overscanAppropriateFlag = i; } |
---|
1157 | |
---|
1158 | Bool getVideoSignalTypePresentFlag() { return m_videoSignalTypePresentFlag; } |
---|
1159 | Void setVideoSignalTypePresentFlag(Bool i) { m_videoSignalTypePresentFlag = i; } |
---|
1160 | |
---|
1161 | Int getVideoFormat() { return m_videoFormat; } |
---|
1162 | Void setVideoFormat(Int i) { m_videoFormat = i; } |
---|
1163 | |
---|
1164 | Bool getVideoFullRangeFlag() { return m_videoFullRangeFlag; } |
---|
1165 | Void setVideoFullRangeFlag(Bool i) { m_videoFullRangeFlag = i; } |
---|
1166 | |
---|
1167 | Bool getColourDescriptionPresentFlag() { return m_colourDescriptionPresentFlag; } |
---|
1168 | Void setColourDescriptionPresentFlag(Bool i) { m_colourDescriptionPresentFlag = i; } |
---|
1169 | |
---|
1170 | Int getColourPrimaries() { return m_colourPrimaries; } |
---|
1171 | Void setColourPrimaries(Int i) { m_colourPrimaries = i; } |
---|
1172 | |
---|
1173 | Int getTransferCharacteristics() { return m_transferCharacteristics; } |
---|
1174 | Void setTransferCharacteristics(Int i) { m_transferCharacteristics = i; } |
---|
1175 | |
---|
1176 | Int getMatrixCoefficients() { return m_matrixCoefficients; } |
---|
1177 | Void setMatrixCoefficients(Int i) { m_matrixCoefficients = i; } |
---|
1178 | |
---|
1179 | Bool getChromaLocInfoPresentFlag() { return m_chromaLocInfoPresentFlag; } |
---|
1180 | Void setChromaLocInfoPresentFlag(Bool i) { m_chromaLocInfoPresentFlag = i; } |
---|
1181 | |
---|
1182 | Int getChromaSampleLocTypeTopField() { return m_chromaSampleLocTypeTopField; } |
---|
1183 | Void setChromaSampleLocTypeTopField(Int i) { m_chromaSampleLocTypeTopField = i; } |
---|
1184 | |
---|
1185 | Int getChromaSampleLocTypeBottomField() { return m_chromaSampleLocTypeBottomField; } |
---|
1186 | Void setChromaSampleLocTypeBottomField(Int i) { m_chromaSampleLocTypeBottomField = i; } |
---|
1187 | |
---|
1188 | Bool getNeutralChromaIndicationFlag() { return m_neutralChromaIndicationFlag; } |
---|
1189 | Void setNeutralChromaIndicationFlag(Bool i) { m_neutralChromaIndicationFlag = i; } |
---|
1190 | |
---|
1191 | Bool getFieldSeqFlag() { return m_fieldSeqFlag; } |
---|
1192 | Void setFieldSeqFlag(Bool i) { m_fieldSeqFlag = i; } |
---|
1193 | |
---|
1194 | Bool getFrameFieldInfoPresentFlag() { return m_frameFieldInfoPresentFlag; } |
---|
1195 | Void setFrameFieldInfoPresentFlag(Bool i) { m_frameFieldInfoPresentFlag = i; } |
---|
1196 | |
---|
1197 | Window& getDefaultDisplayWindow() { return m_defaultDisplayWindow; } |
---|
1198 | Void setDefaultDisplayWindow(Window& defaultDisplayWindow ) { m_defaultDisplayWindow = defaultDisplayWindow; } |
---|
1199 | |
---|
1200 | Bool getHrdParametersPresentFlag() { return m_hrdParametersPresentFlag; } |
---|
1201 | Void setHrdParametersPresentFlag(Bool i) { m_hrdParametersPresentFlag = i; } |
---|
1202 | |
---|
1203 | Bool getBitstreamRestrictionFlag() { return m_bitstreamRestrictionFlag; } |
---|
1204 | Void setBitstreamRestrictionFlag(Bool i) { m_bitstreamRestrictionFlag = i; } |
---|
1205 | |
---|
1206 | Bool getTilesFixedStructureFlag() { return m_tilesFixedStructureFlag; } |
---|
1207 | Void setTilesFixedStructureFlag(Bool i) { m_tilesFixedStructureFlag = i; } |
---|
1208 | |
---|
1209 | Bool getMotionVectorsOverPicBoundariesFlag() { return m_motionVectorsOverPicBoundariesFlag; } |
---|
1210 | Void setMotionVectorsOverPicBoundariesFlag(Bool i) { m_motionVectorsOverPicBoundariesFlag = i; } |
---|
1211 | |
---|
1212 | Bool getRestrictedRefPicListsFlag() { return m_restrictedRefPicListsFlag; } |
---|
1213 | Void setRestrictedRefPicListsFlag(Bool b) { m_restrictedRefPicListsFlag = b; } |
---|
1214 | |
---|
1215 | Int getMinSpatialSegmentationIdc() { return m_minSpatialSegmentationIdc; } |
---|
1216 | Void setMinSpatialSegmentationIdc(Int i) { m_minSpatialSegmentationIdc = i; } |
---|
1217 | Int getMaxBytesPerPicDenom() { return m_maxBytesPerPicDenom; } |
---|
1218 | Void setMaxBytesPerPicDenom(Int i) { m_maxBytesPerPicDenom = i; } |
---|
1219 | |
---|
1220 | Int getMaxBitsPerMinCuDenom() { return m_maxBitsPerMinCuDenom; } |
---|
1221 | Void setMaxBitsPerMinCuDenom(Int i) { m_maxBitsPerMinCuDenom = i; } |
---|
1222 | |
---|
1223 | Int getLog2MaxMvLengthHorizontal() { return m_log2MaxMvLengthHorizontal; } |
---|
1224 | Void setLog2MaxMvLengthHorizontal(Int i) { m_log2MaxMvLengthHorizontal = i; } |
---|
1225 | |
---|
1226 | Int getLog2MaxMvLengthVertical() { return m_log2MaxMvLengthVertical; } |
---|
1227 | Void setLog2MaxMvLengthVertical(Int i) { m_log2MaxMvLengthVertical = i; } |
---|
1228 | |
---|
1229 | TComHRD* getHrdParameters () { return &m_hrdParameters; } |
---|
1230 | TimingInfo* getTimingInfo() { return &m_timingInfo; } |
---|
1231 | }; |
---|
1232 | |
---|
1233 | /// SPS class |
---|
1234 | class TComSPS |
---|
1235 | { |
---|
1236 | private: |
---|
1237 | Int m_SPSId; |
---|
1238 | Int m_VPSId; |
---|
1239 | #if AUXILIARY_PICTURES |
---|
1240 | ChromaFormat m_chromaFormatIdc; |
---|
1241 | #else |
---|
1242 | Int m_chromaFormatIdc; |
---|
1243 | #endif |
---|
1244 | |
---|
1245 | UInt m_uiMaxTLayers; // maximum number of temporal layers |
---|
1246 | |
---|
1247 | // Structure |
---|
1248 | UInt m_picWidthInLumaSamples; |
---|
1249 | UInt m_picHeightInLumaSamples; |
---|
1250 | |
---|
1251 | Int m_log2MinCodingBlockSize; |
---|
1252 | Int m_log2DiffMaxMinCodingBlockSize; |
---|
1253 | UInt m_uiMaxCUWidth; |
---|
1254 | UInt m_uiMaxCUHeight; |
---|
1255 | UInt m_uiMaxCUDepth; |
---|
1256 | |
---|
1257 | Window m_conformanceWindow; |
---|
1258 | |
---|
1259 | TComRPSList m_RPSList; |
---|
1260 | Bool m_bLongTermRefsPresent; |
---|
1261 | Bool m_TMVPFlagsPresent; |
---|
1262 | Int m_numReorderPics[MAX_TLAYER]; |
---|
1263 | |
---|
1264 | // Tool list |
---|
1265 | UInt m_uiQuadtreeTULog2MaxSize; |
---|
1266 | UInt m_uiQuadtreeTULog2MinSize; |
---|
1267 | UInt m_uiQuadtreeTUMaxDepthInter; |
---|
1268 | UInt m_uiQuadtreeTUMaxDepthIntra; |
---|
1269 | Bool m_usePCM; |
---|
1270 | UInt m_pcmLog2MaxSize; |
---|
1271 | UInt m_uiPCMLog2MinSize; |
---|
1272 | Bool m_useAMP; |
---|
1273 | |
---|
1274 | // Parameter |
---|
1275 | Int m_bitDepthY; |
---|
1276 | Int m_bitDepthC; |
---|
1277 | Int m_qpBDOffsetY; |
---|
1278 | Int m_qpBDOffsetC; |
---|
1279 | |
---|
1280 | Bool m_useLossless; |
---|
1281 | |
---|
1282 | UInt m_uiPCMBitDepthLuma; |
---|
1283 | UInt m_uiPCMBitDepthChroma; |
---|
1284 | Bool m_bPCMFilterDisableFlag; |
---|
1285 | |
---|
1286 | UInt m_uiBitsForPOC; |
---|
1287 | UInt m_numLongTermRefPicSPS; |
---|
1288 | UInt m_ltRefPicPocLsbSps[33]; |
---|
1289 | Bool m_usedByCurrPicLtSPSFlag[33]; |
---|
1290 | // Max physical transform size |
---|
1291 | UInt m_uiMaxTrSize; |
---|
1292 | |
---|
1293 | Int m_iAMPAcc[MAX_CU_DEPTH]; |
---|
1294 | Bool m_bUseSAO; |
---|
1295 | |
---|
1296 | Bool m_bTemporalIdNestingFlag; // temporal_id_nesting_flag |
---|
1297 | |
---|
1298 | Bool m_scalingListEnabledFlag; |
---|
1299 | Bool m_scalingListPresentFlag; |
---|
1300 | |
---|
1301 | TComScalingList* m_scalingList; //!< ScalingList class pointer |
---|
1302 | |
---|
1303 | UInt m_uiMaxDecPicBuffering[MAX_TLAYER]; |
---|
1304 | UInt m_uiMaxLatencyIncrease[MAX_TLAYER]; // Really max latency increase plus 1 (value 0 expresses no limit) |
---|
1305 | |
---|
1306 | Bool m_useDF; |
---|
1307 | Bool m_useStrongIntraSmoothing; |
---|
1308 | |
---|
1309 | Bool m_vuiParametersPresentFlag; |
---|
1310 | TComVUI m_vuiParameters; |
---|
1311 | |
---|
1312 | static const Int m_winUnitX[MAX_CHROMA_FORMAT_IDC+1]; |
---|
1313 | static const Int m_winUnitY[MAX_CHROMA_FORMAT_IDC+1]; |
---|
1314 | TComPTL m_pcPTL; |
---|
1315 | |
---|
1316 | #if SVC_EXTENSION |
---|
1317 | UInt m_layerId; |
---|
1318 | UInt m_numScaledRefLayerOffsets; |
---|
1319 | #if O0098_SCALED_REF_LAYER_ID |
---|
1320 | UInt m_scaledRefLayerId[MAX_LAYERS]; |
---|
1321 | #endif |
---|
1322 | Window m_scaledRefLayerWindow[MAX_LAYERS]; |
---|
1323 | #if REPN_FORMAT_IN_VPS |
---|
1324 | Bool m_updateRepFormatFlag; |
---|
1325 | #if O0096_REP_FORMAT_INDEX |
---|
1326 | UInt m_updateRepFormatIndex; |
---|
1327 | #endif |
---|
1328 | #endif |
---|
1329 | #if SCALINGLIST_INFERRING |
---|
1330 | Bool m_inferScalingListFlag; |
---|
1331 | UInt m_scalingListRefLayerId; |
---|
1332 | #endif |
---|
1333 | #endif //SVC_EXTENSION |
---|
1334 | public: |
---|
1335 | TComSPS(); |
---|
1336 | virtual ~TComSPS(); |
---|
1337 | |
---|
1338 | Int getVPSId () { return m_VPSId; } |
---|
1339 | Void setVPSId (Int i) { m_VPSId = i; } |
---|
1340 | Int getSPSId () { return m_SPSId; } |
---|
1341 | Void setSPSId (Int i) { m_SPSId = i; } |
---|
1342 | |
---|
1343 | #if AUXILIARY_PICTURES |
---|
1344 | ChromaFormat getChromaFormatIdc () { return m_chromaFormatIdc; } |
---|
1345 | Void setChromaFormatIdc (ChromaFormat i) { m_chromaFormatIdc = i; } |
---|
1346 | |
---|
1347 | static Int getWinUnitX (Int chromaFormatIdc) { assert (chromaFormatIdc >= 0 && chromaFormatIdc <= MAX_CHROMA_FORMAT_IDC); return m_winUnitX[chromaFormatIdc]; } |
---|
1348 | static Int getWinUnitY (Int chromaFormatIdc) { assert (chromaFormatIdc >= 0 && chromaFormatIdc <= MAX_CHROMA_FORMAT_IDC); return m_winUnitY[chromaFormatIdc]; } |
---|
1349 | #else |
---|
1350 | Int getChromaFormatIdc () { return m_chromaFormatIdc; } |
---|
1351 | Void setChromaFormatIdc (Int i) { m_chromaFormatIdc = i; } |
---|
1352 | |
---|
1353 | static Int getWinUnitX (Int chromaFormatIdc) { assert (chromaFormatIdc > 0 && chromaFormatIdc <= MAX_CHROMA_FORMAT_IDC); return m_winUnitX[chromaFormatIdc]; } |
---|
1354 | static Int getWinUnitY (Int chromaFormatIdc) { assert (chromaFormatIdc > 0 && chromaFormatIdc <= MAX_CHROMA_FORMAT_IDC); return m_winUnitY[chromaFormatIdc]; } |
---|
1355 | #endif |
---|
1356 | |
---|
1357 | // structure |
---|
1358 | Void setPicWidthInLumaSamples ( UInt u ) { m_picWidthInLumaSamples = u; } |
---|
1359 | UInt getPicWidthInLumaSamples () { return m_picWidthInLumaSamples; } |
---|
1360 | Void setPicHeightInLumaSamples ( UInt u ) { m_picHeightInLumaSamples = u; } |
---|
1361 | UInt getPicHeightInLumaSamples () { return m_picHeightInLumaSamples; } |
---|
1362 | |
---|
1363 | Window& getConformanceWindow() { return m_conformanceWindow; } |
---|
1364 | Void setConformanceWindow(Window& conformanceWindow ) { m_conformanceWindow = conformanceWindow; } |
---|
1365 | |
---|
1366 | UInt getNumLongTermRefPicSPS() { return m_numLongTermRefPicSPS; } |
---|
1367 | Void setNumLongTermRefPicSPS(UInt val) { m_numLongTermRefPicSPS = val; } |
---|
1368 | |
---|
1369 | UInt getLtRefPicPocLsbSps(UInt index) { return m_ltRefPicPocLsbSps[index]; } |
---|
1370 | Void setLtRefPicPocLsbSps(UInt index, UInt val) { m_ltRefPicPocLsbSps[index] = val; } |
---|
1371 | |
---|
1372 | Bool getUsedByCurrPicLtSPSFlag(Int i) {return m_usedByCurrPicLtSPSFlag[i];} |
---|
1373 | Void setUsedByCurrPicLtSPSFlag(Int i, Bool x) { m_usedByCurrPicLtSPSFlag[i] = x;} |
---|
1374 | |
---|
1375 | Int getLog2MinCodingBlockSize() const { return m_log2MinCodingBlockSize; } |
---|
1376 | Void setLog2MinCodingBlockSize(Int val) { m_log2MinCodingBlockSize = val; } |
---|
1377 | Int getLog2DiffMaxMinCodingBlockSize() const { return m_log2DiffMaxMinCodingBlockSize; } |
---|
1378 | Void setLog2DiffMaxMinCodingBlockSize(Int val) { m_log2DiffMaxMinCodingBlockSize = val; } |
---|
1379 | |
---|
1380 | Void setMaxCUWidth ( UInt u ) { m_uiMaxCUWidth = u; } |
---|
1381 | UInt getMaxCUWidth () { return m_uiMaxCUWidth; } |
---|
1382 | Void setMaxCUHeight ( UInt u ) { m_uiMaxCUHeight = u; } |
---|
1383 | UInt getMaxCUHeight () { return m_uiMaxCUHeight; } |
---|
1384 | Void setMaxCUDepth ( UInt u ) { m_uiMaxCUDepth = u; } |
---|
1385 | UInt getMaxCUDepth () { return m_uiMaxCUDepth; } |
---|
1386 | Void setUsePCM ( Bool b ) { m_usePCM = b; } |
---|
1387 | Bool getUsePCM () { return m_usePCM; } |
---|
1388 | Void setPCMLog2MaxSize ( UInt u ) { m_pcmLog2MaxSize = u; } |
---|
1389 | UInt getPCMLog2MaxSize () { return m_pcmLog2MaxSize; } |
---|
1390 | Void setPCMLog2MinSize ( UInt u ) { m_uiPCMLog2MinSize = u; } |
---|
1391 | UInt getPCMLog2MinSize () { return m_uiPCMLog2MinSize; } |
---|
1392 | Void setBitsForPOC ( UInt u ) { m_uiBitsForPOC = u; } |
---|
1393 | UInt getBitsForPOC () { return m_uiBitsForPOC; } |
---|
1394 | Bool getUseAMP() { return m_useAMP; } |
---|
1395 | Void setUseAMP( Bool b ) { m_useAMP = b; } |
---|
1396 | Void setQuadtreeTULog2MaxSize( UInt u ) { m_uiQuadtreeTULog2MaxSize = u; } |
---|
1397 | UInt getQuadtreeTULog2MaxSize() { return m_uiQuadtreeTULog2MaxSize; } |
---|
1398 | Void setQuadtreeTULog2MinSize( UInt u ) { m_uiQuadtreeTULog2MinSize = u; } |
---|
1399 | UInt getQuadtreeTULog2MinSize() { return m_uiQuadtreeTULog2MinSize; } |
---|
1400 | Void setQuadtreeTUMaxDepthInter( UInt u ) { m_uiQuadtreeTUMaxDepthInter = u; } |
---|
1401 | Void setQuadtreeTUMaxDepthIntra( UInt u ) { m_uiQuadtreeTUMaxDepthIntra = u; } |
---|
1402 | UInt getQuadtreeTUMaxDepthInter() { return m_uiQuadtreeTUMaxDepthInter; } |
---|
1403 | UInt getQuadtreeTUMaxDepthIntra() { return m_uiQuadtreeTUMaxDepthIntra; } |
---|
1404 | Void setNumReorderPics(Int i, UInt tlayer) { m_numReorderPics[tlayer] = i; } |
---|
1405 | Int getNumReorderPics(UInt tlayer) { return m_numReorderPics[tlayer]; } |
---|
1406 | Void createRPSList( Int numRPS ); |
---|
1407 | TComRPSList* getRPSList() { return &m_RPSList; } |
---|
1408 | Bool getLongTermRefsPresent() { return m_bLongTermRefsPresent; } |
---|
1409 | Void setLongTermRefsPresent(Bool b) { m_bLongTermRefsPresent=b; } |
---|
1410 | Bool getTMVPFlagsPresent() { return m_TMVPFlagsPresent; } |
---|
1411 | Void setTMVPFlagsPresent(Bool b) { m_TMVPFlagsPresent=b; } |
---|
1412 | // physical transform |
---|
1413 | Void setMaxTrSize ( UInt u ) { m_uiMaxTrSize = u; } |
---|
1414 | UInt getMaxTrSize () { return m_uiMaxTrSize; } |
---|
1415 | |
---|
1416 | // Tool list |
---|
1417 | Bool getUseLossless () { return m_useLossless; } |
---|
1418 | Void setUseLossless ( Bool b ) { m_useLossless = b; } |
---|
1419 | |
---|
1420 | // AMP accuracy |
---|
1421 | Int getAMPAcc ( UInt uiDepth ) { return m_iAMPAcc[uiDepth]; } |
---|
1422 | Void setAMPAcc ( UInt uiDepth, Int iAccu ) { assert( uiDepth < g_uiMaxCUDepth); m_iAMPAcc[uiDepth] = iAccu; } |
---|
1423 | |
---|
1424 | // Bit-depth |
---|
1425 | Int getBitDepthY() { return m_bitDepthY; } |
---|
1426 | Void setBitDepthY(Int u) { m_bitDepthY = u; } |
---|
1427 | Int getBitDepthC() { return m_bitDepthC; } |
---|
1428 | Void setBitDepthC(Int u) { m_bitDepthC = u; } |
---|
1429 | Int getQpBDOffsetY () { return m_qpBDOffsetY; } |
---|
1430 | Void setQpBDOffsetY ( Int value ) { m_qpBDOffsetY = value; } |
---|
1431 | Int getQpBDOffsetC () { return m_qpBDOffsetC; } |
---|
1432 | Void setQpBDOffsetC ( Int value ) { m_qpBDOffsetC = value; } |
---|
1433 | Void setUseSAO (Bool bVal) {m_bUseSAO = bVal;} |
---|
1434 | Bool getUseSAO () {return m_bUseSAO;} |
---|
1435 | |
---|
1436 | UInt getMaxTLayers() { return m_uiMaxTLayers; } |
---|
1437 | Void setMaxTLayers( UInt uiMaxTLayers ) { assert( uiMaxTLayers <= MAX_TLAYER ); m_uiMaxTLayers = uiMaxTLayers; } |
---|
1438 | |
---|
1439 | Bool getTemporalIdNestingFlag() { return m_bTemporalIdNestingFlag; } |
---|
1440 | Void setTemporalIdNestingFlag( Bool bValue ) { m_bTemporalIdNestingFlag = bValue; } |
---|
1441 | UInt getPCMBitDepthLuma () { return m_uiPCMBitDepthLuma; } |
---|
1442 | Void setPCMBitDepthLuma ( UInt u ) { m_uiPCMBitDepthLuma = u; } |
---|
1443 | UInt getPCMBitDepthChroma () { return m_uiPCMBitDepthChroma; } |
---|
1444 | Void setPCMBitDepthChroma ( UInt u ) { m_uiPCMBitDepthChroma = u; } |
---|
1445 | Void setPCMFilterDisableFlag ( Bool bValue ) { m_bPCMFilterDisableFlag = bValue; } |
---|
1446 | Bool getPCMFilterDisableFlag () { return m_bPCMFilterDisableFlag; } |
---|
1447 | |
---|
1448 | Bool getScalingListFlag () { return m_scalingListEnabledFlag; } |
---|
1449 | Void setScalingListFlag ( Bool b ) { m_scalingListEnabledFlag = b; } |
---|
1450 | Bool getScalingListPresentFlag() { return m_scalingListPresentFlag; } |
---|
1451 | Void setScalingListPresentFlag( Bool b ) { m_scalingListPresentFlag = b; } |
---|
1452 | |
---|
1453 | #if SCALINGLIST_INFERRING |
---|
1454 | Void setScalingList( TComScalingList *scalingList ) { m_scalingList = scalingList; } |
---|
1455 | #else |
---|
1456 | Void setScalingList ( TComScalingList *scalingList); |
---|
1457 | #endif |
---|
1458 | TComScalingList* getScalingList () { return m_scalingList; } //!< get ScalingList class pointer in SPS |
---|
1459 | |
---|
1460 | UInt getMaxDecPicBuffering (UInt tlayer) { return m_uiMaxDecPicBuffering[tlayer]; } |
---|
1461 | Void setMaxDecPicBuffering ( UInt ui, UInt tlayer ) { m_uiMaxDecPicBuffering[tlayer] = ui; } |
---|
1462 | UInt getMaxLatencyIncrease (UInt tlayer) { return m_uiMaxLatencyIncrease[tlayer]; } |
---|
1463 | Void setMaxLatencyIncrease ( UInt ui , UInt tlayer) { m_uiMaxLatencyIncrease[tlayer] = ui; } |
---|
1464 | |
---|
1465 | Void setUseStrongIntraSmoothing (Bool bVal) {m_useStrongIntraSmoothing = bVal;} |
---|
1466 | Bool getUseStrongIntraSmoothing () {return m_useStrongIntraSmoothing;} |
---|
1467 | |
---|
1468 | Bool getVuiParametersPresentFlag() { return m_vuiParametersPresentFlag; } |
---|
1469 | Void setVuiParametersPresentFlag(Bool b) { m_vuiParametersPresentFlag = b; } |
---|
1470 | TComVUI* getVuiParameters() { return &m_vuiParameters; } |
---|
1471 | Void setHrdParameters( UInt frameRate, UInt numDU, UInt bitRate, Bool randomAccess ); |
---|
1472 | |
---|
1473 | TComPTL* getPTL() { return &m_pcPTL; } |
---|
1474 | |
---|
1475 | #if SVC_EXTENSION |
---|
1476 | Void setLayerId(UInt layerId) { m_layerId = layerId; } |
---|
1477 | UInt getLayerId() { return m_layerId; } |
---|
1478 | UInt getNumScaledRefLayerOffsets() { return m_numScaledRefLayerOffsets; } |
---|
1479 | Void setNumScaledRefLayerOffsets(Int x) { m_numScaledRefLayerOffsets = x; } |
---|
1480 | #if O0098_SCALED_REF_LAYER_ID |
---|
1481 | UInt getScaledRefLayerId(Int x) { return m_scaledRefLayerId[x]; } |
---|
1482 | Void setScaledRefLayerId(Int x, UInt id) { m_scaledRefLayerId[x] = id; } |
---|
1483 | Window& getScaledRefLayerWindowForLayer( Int layerId ); |
---|
1484 | #endif |
---|
1485 | Window& getScaledRefLayerWindow( Int x ) { return m_scaledRefLayerWindow[x]; } |
---|
1486 | #if REPN_FORMAT_IN_VPS |
---|
1487 | Bool getUpdateRepFormatFlag() { return m_updateRepFormatFlag; } |
---|
1488 | Void setUpdateRepFormatFlag(Bool x) { m_updateRepFormatFlag = x; } |
---|
1489 | #if O0096_REP_FORMAT_INDEX |
---|
1490 | Int getUpdateRepFormatIndex() { return m_updateRepFormatIndex; } |
---|
1491 | Void setUpdateRepFormatIndex(UInt index) { m_updateRepFormatIndex = index; } |
---|
1492 | #endif |
---|
1493 | #endif |
---|
1494 | #if SCALINGLIST_INFERRING |
---|
1495 | Bool getInferScalingListFlag() { return m_inferScalingListFlag; } |
---|
1496 | UInt getScalingListRefLayerId() { return m_scalingListRefLayerId; } |
---|
1497 | Void setInferScalingListFlag( Bool flag ) { m_inferScalingListFlag = flag; } |
---|
1498 | Void setScalingListRefLayerId( UInt layerId ) { m_scalingListRefLayerId = layerId; } |
---|
1499 | #endif |
---|
1500 | #endif //SVC_EXTENSION |
---|
1501 | }; |
---|
1502 | |
---|
1503 | /// Reference Picture Lists class |
---|
1504 | class TComRefPicListModification |
---|
1505 | { |
---|
1506 | private: |
---|
1507 | UInt m_bRefPicListModificationFlagL0; |
---|
1508 | UInt m_bRefPicListModificationFlagL1; |
---|
1509 | UInt m_RefPicSetIdxL0[32]; |
---|
1510 | UInt m_RefPicSetIdxL1[32]; |
---|
1511 | |
---|
1512 | public: |
---|
1513 | TComRefPicListModification(); |
---|
1514 | virtual ~TComRefPicListModification(); |
---|
1515 | |
---|
1516 | Void create (); |
---|
1517 | Void destroy (); |
---|
1518 | |
---|
1519 | Bool getRefPicListModificationFlagL0() { return m_bRefPicListModificationFlagL0; } |
---|
1520 | Void setRefPicListModificationFlagL0(Bool flag) { m_bRefPicListModificationFlagL0 = flag; } |
---|
1521 | Bool getRefPicListModificationFlagL1() { return m_bRefPicListModificationFlagL1; } |
---|
1522 | Void setRefPicListModificationFlagL1(Bool flag) { m_bRefPicListModificationFlagL1 = flag; } |
---|
1523 | Void setRefPicSetIdxL0(UInt idx, UInt refPicSetIdx) { m_RefPicSetIdxL0[idx] = refPicSetIdx; } |
---|
1524 | UInt getRefPicSetIdxL0(UInt idx) { return m_RefPicSetIdxL0[idx]; } |
---|
1525 | Void setRefPicSetIdxL1(UInt idx, UInt refPicSetIdx) { m_RefPicSetIdxL1[idx] = refPicSetIdx; } |
---|
1526 | UInt getRefPicSetIdxL1(UInt idx) { return m_RefPicSetIdxL1[idx]; } |
---|
1527 | }; |
---|
1528 | |
---|
1529 | /// PPS class |
---|
1530 | class TComPPS |
---|
1531 | { |
---|
1532 | private: |
---|
1533 | Int m_PPSId; // pic_parameter_set_id |
---|
1534 | Int m_SPSId; // seq_parameter_set_id |
---|
1535 | Int m_picInitQPMinus26; |
---|
1536 | Bool m_useDQP; |
---|
1537 | Bool m_bConstrainedIntraPred; // constrained_intra_pred_flag |
---|
1538 | Bool m_bSliceChromaQpFlag; // slicelevel_chroma_qp_flag |
---|
1539 | |
---|
1540 | // access channel |
---|
1541 | TComSPS* m_pcSPS; |
---|
1542 | UInt m_uiMaxCuDQPDepth; |
---|
1543 | UInt m_uiMinCuDQPSize; |
---|
1544 | |
---|
1545 | Int m_chromaCbQpOffset; |
---|
1546 | Int m_chromaCrQpOffset; |
---|
1547 | |
---|
1548 | UInt m_numRefIdxL0DefaultActive; |
---|
1549 | UInt m_numRefIdxL1DefaultActive; |
---|
1550 | |
---|
1551 | Bool m_bUseWeightPred; // Use of Weighting Prediction (P_SLICE) |
---|
1552 | Bool m_useWeightedBiPred; // Use of Weighting Bi-Prediction (B_SLICE) |
---|
1553 | Bool m_OutputFlagPresentFlag; // Indicates the presence of output_flag in slice header |
---|
1554 | |
---|
1555 | Bool m_TransquantBypassEnableFlag; // Indicates presence of cu_transquant_bypass_flag in CUs. |
---|
1556 | Bool m_useTransformSkip; |
---|
1557 | Bool m_dependentSliceSegmentsEnabledFlag; //!< Indicates the presence of dependent slices |
---|
1558 | Bool m_tilesEnabledFlag; //!< Indicates the presence of tiles |
---|
1559 | Bool m_entropyCodingSyncEnabledFlag; //!< Indicates the presence of wavefronts |
---|
1560 | |
---|
1561 | Bool m_loopFilterAcrossTilesEnabledFlag; |
---|
1562 | Int m_uniformSpacingFlag; |
---|
1563 | Int m_iNumColumnsMinus1; |
---|
1564 | UInt* m_puiColumnWidth; |
---|
1565 | Int m_iNumRowsMinus1; |
---|
1566 | UInt* m_puiRowHeight; |
---|
1567 | |
---|
1568 | Int m_iNumSubstreams; |
---|
1569 | |
---|
1570 | Int m_signHideFlag; |
---|
1571 | |
---|
1572 | Bool m_cabacInitPresentFlag; |
---|
1573 | UInt m_encCABACTableIdx; // Used to transmit table selection across slices |
---|
1574 | |
---|
1575 | Bool m_sliceHeaderExtensionPresentFlag; |
---|
1576 | Bool m_loopFilterAcrossSlicesEnabledFlag; |
---|
1577 | Bool m_deblockingFilterControlPresentFlag; |
---|
1578 | Bool m_deblockingFilterOverrideEnabledFlag; |
---|
1579 | Bool m_picDisableDeblockingFilterFlag; |
---|
1580 | Int m_deblockingFilterBetaOffsetDiv2; //< beta offset for deblocking filter |
---|
1581 | Int m_deblockingFilterTcOffsetDiv2; //< tc offset for deblocking filter |
---|
1582 | Bool m_scalingListPresentFlag; |
---|
1583 | TComScalingList* m_scalingList; //!< ScalingList class pointer |
---|
1584 | Bool m_listsModificationPresentFlag; |
---|
1585 | UInt m_log2ParallelMergeLevelMinus2; |
---|
1586 | Int m_numExtraSliceHeaderBits; |
---|
1587 | |
---|
1588 | #if SVC_EXTENSION |
---|
1589 | #if SCALINGLIST_INFERRING |
---|
1590 | UInt m_layerId; |
---|
1591 | Bool m_inferScalingListFlag; |
---|
1592 | UInt m_scalingListRefLayerId; |
---|
1593 | #endif |
---|
1594 | #endif |
---|
1595 | |
---|
1596 | public: |
---|
1597 | TComPPS(); |
---|
1598 | virtual ~TComPPS(); |
---|
1599 | |
---|
1600 | Int getPPSId () { return m_PPSId; } |
---|
1601 | Void setPPSId (Int i) { m_PPSId = i; } |
---|
1602 | Int getSPSId () { return m_SPSId; } |
---|
1603 | Void setSPSId (Int i) { m_SPSId = i; } |
---|
1604 | |
---|
1605 | Int getPicInitQPMinus26 () { return m_picInitQPMinus26; } |
---|
1606 | Void setPicInitQPMinus26 ( Int i ) { m_picInitQPMinus26 = i; } |
---|
1607 | Bool getUseDQP () { return m_useDQP; } |
---|
1608 | Void setUseDQP ( Bool b ) { m_useDQP = b; } |
---|
1609 | Bool getConstrainedIntraPred () { return m_bConstrainedIntraPred; } |
---|
1610 | Void setConstrainedIntraPred ( Bool b ) { m_bConstrainedIntraPred = b; } |
---|
1611 | Bool getSliceChromaQpFlag () { return m_bSliceChromaQpFlag; } |
---|
1612 | Void setSliceChromaQpFlag ( Bool b ) { m_bSliceChromaQpFlag = b; } |
---|
1613 | |
---|
1614 | Void setSPS ( TComSPS* pcSPS ) { m_pcSPS = pcSPS; } |
---|
1615 | TComSPS* getSPS () { return m_pcSPS; } |
---|
1616 | Void setMaxCuDQPDepth ( UInt u ) { m_uiMaxCuDQPDepth = u; } |
---|
1617 | UInt getMaxCuDQPDepth () { return m_uiMaxCuDQPDepth;} |
---|
1618 | Void setMinCuDQPSize ( UInt u ) { m_uiMinCuDQPSize = u; } |
---|
1619 | UInt getMinCuDQPSize () { return m_uiMinCuDQPSize; } |
---|
1620 | |
---|
1621 | Void setChromaCbQpOffset( Int i ) { m_chromaCbQpOffset = i; } |
---|
1622 | Int getChromaCbQpOffset() { return m_chromaCbQpOffset; } |
---|
1623 | Void setChromaCrQpOffset( Int i ) { m_chromaCrQpOffset = i; } |
---|
1624 | Int getChromaCrQpOffset() { return m_chromaCrQpOffset; } |
---|
1625 | |
---|
1626 | Void setNumRefIdxL0DefaultActive(UInt ui) { m_numRefIdxL0DefaultActive=ui; } |
---|
1627 | UInt getNumRefIdxL0DefaultActive() { return m_numRefIdxL0DefaultActive; } |
---|
1628 | Void setNumRefIdxL1DefaultActive(UInt ui) { m_numRefIdxL1DefaultActive=ui; } |
---|
1629 | UInt getNumRefIdxL1DefaultActive() { return m_numRefIdxL1DefaultActive; } |
---|
1630 | |
---|
1631 | Bool getUseWP () { return m_bUseWeightPred; } |
---|
1632 | Bool getWPBiPred () { return m_useWeightedBiPred; } |
---|
1633 | Void setUseWP ( Bool b ) { m_bUseWeightPred = b; } |
---|
1634 | Void setWPBiPred ( Bool b ) { m_useWeightedBiPred = b; } |
---|
1635 | Void setOutputFlagPresentFlag( Bool b ) { m_OutputFlagPresentFlag = b; } |
---|
1636 | Bool getOutputFlagPresentFlag() { return m_OutputFlagPresentFlag; } |
---|
1637 | Void setTransquantBypassEnableFlag( Bool b ) { m_TransquantBypassEnableFlag = b; } |
---|
1638 | Bool getTransquantBypassEnableFlag() { return m_TransquantBypassEnableFlag; } |
---|
1639 | |
---|
1640 | Bool getUseTransformSkip () { return m_useTransformSkip; } |
---|
1641 | Void setUseTransformSkip ( Bool b ) { m_useTransformSkip = b; } |
---|
1642 | |
---|
1643 | Void setLoopFilterAcrossTilesEnabledFlag (Bool b) { m_loopFilterAcrossTilesEnabledFlag = b; } |
---|
1644 | Bool getLoopFilterAcrossTilesEnabledFlag () { return m_loopFilterAcrossTilesEnabledFlag; } |
---|
1645 | Bool getDependentSliceSegmentsEnabledFlag() const { return m_dependentSliceSegmentsEnabledFlag; } |
---|
1646 | Void setDependentSliceSegmentsEnabledFlag(Bool val) { m_dependentSliceSegmentsEnabledFlag = val; } |
---|
1647 | Bool getTilesEnabledFlag() const { return m_tilesEnabledFlag; } |
---|
1648 | Void setTilesEnabledFlag(Bool val) { m_tilesEnabledFlag = val; } |
---|
1649 | Bool getEntropyCodingSyncEnabledFlag() const { return m_entropyCodingSyncEnabledFlag; } |
---|
1650 | Void setEntropyCodingSyncEnabledFlag(Bool val) { m_entropyCodingSyncEnabledFlag = val; } |
---|
1651 | Void setUniformSpacingFlag ( Bool b ) { m_uniformSpacingFlag = b; } |
---|
1652 | Bool getUniformSpacingFlag () { return m_uniformSpacingFlag; } |
---|
1653 | Void setNumColumnsMinus1 ( Int i ) { m_iNumColumnsMinus1 = i; } |
---|
1654 | Int getNumColumnsMinus1 () { return m_iNumColumnsMinus1; } |
---|
1655 | Void setColumnWidth ( UInt* columnWidth ) |
---|
1656 | { |
---|
1657 | if( m_uniformSpacingFlag == 0 && m_iNumColumnsMinus1 > 0 ) |
---|
1658 | { |
---|
1659 | m_puiColumnWidth = new UInt[ m_iNumColumnsMinus1 ]; |
---|
1660 | |
---|
1661 | for(Int i=0; i<m_iNumColumnsMinus1; i++) |
---|
1662 | { |
---|
1663 | m_puiColumnWidth[i] = columnWidth[i]; |
---|
1664 | } |
---|
1665 | } |
---|
1666 | } |
---|
1667 | UInt getColumnWidth (UInt columnIdx) { return *( m_puiColumnWidth + columnIdx ); } |
---|
1668 | Void setNumRowsMinus1( Int i ) { m_iNumRowsMinus1 = i; } |
---|
1669 | Int getNumRowsMinus1() { return m_iNumRowsMinus1; } |
---|
1670 | Void setRowHeight ( UInt* rowHeight ) |
---|
1671 | { |
---|
1672 | if( m_uniformSpacingFlag == 0 && m_iNumRowsMinus1 > 0 ) |
---|
1673 | { |
---|
1674 | m_puiRowHeight = new UInt[ m_iNumRowsMinus1 ]; |
---|
1675 | |
---|
1676 | for(Int i=0; i<m_iNumRowsMinus1; i++) |
---|
1677 | { |
---|
1678 | m_puiRowHeight[i] = rowHeight[i]; |
---|
1679 | } |
---|
1680 | } |
---|
1681 | } |
---|
1682 | UInt getRowHeight (UInt rowIdx) { return *( m_puiRowHeight + rowIdx ); } |
---|
1683 | Void setNumSubstreams(Int iNumSubstreams) { m_iNumSubstreams = iNumSubstreams; } |
---|
1684 | Int getNumSubstreams() { return m_iNumSubstreams; } |
---|
1685 | |
---|
1686 | Void setSignHideFlag( Int signHideFlag ) { m_signHideFlag = signHideFlag; } |
---|
1687 | Int getSignHideFlag() { return m_signHideFlag; } |
---|
1688 | |
---|
1689 | Void setCabacInitPresentFlag( Bool flag ) { m_cabacInitPresentFlag = flag; } |
---|
1690 | Void setEncCABACTableIdx( Int idx ) { m_encCABACTableIdx = idx; } |
---|
1691 | Bool getCabacInitPresentFlag() { return m_cabacInitPresentFlag; } |
---|
1692 | UInt getEncCABACTableIdx() { return m_encCABACTableIdx; } |
---|
1693 | Void setDeblockingFilterControlPresentFlag( Bool val ) { m_deblockingFilterControlPresentFlag = val; } |
---|
1694 | Bool getDeblockingFilterControlPresentFlag() { return m_deblockingFilterControlPresentFlag; } |
---|
1695 | Void setDeblockingFilterOverrideEnabledFlag( Bool val ) { m_deblockingFilterOverrideEnabledFlag = val; } |
---|
1696 | Bool getDeblockingFilterOverrideEnabledFlag() { return m_deblockingFilterOverrideEnabledFlag; } |
---|
1697 | Void setPicDisableDeblockingFilterFlag(Bool val) { m_picDisableDeblockingFilterFlag = val; } //!< set offset for deblocking filter disabled |
---|
1698 | Bool getPicDisableDeblockingFilterFlag() { return m_picDisableDeblockingFilterFlag; } //!< get offset for deblocking filter disabled |
---|
1699 | Void setDeblockingFilterBetaOffsetDiv2(Int val) { m_deblockingFilterBetaOffsetDiv2 = val; } //!< set beta offset for deblocking filter |
---|
1700 | Int getDeblockingFilterBetaOffsetDiv2() { return m_deblockingFilterBetaOffsetDiv2; } //!< get beta offset for deblocking filter |
---|
1701 | Void setDeblockingFilterTcOffsetDiv2(Int val) { m_deblockingFilterTcOffsetDiv2 = val; } //!< set tc offset for deblocking filter |
---|
1702 | Int getDeblockingFilterTcOffsetDiv2() { return m_deblockingFilterTcOffsetDiv2; } //!< get tc offset for deblocking filter |
---|
1703 | Bool getScalingListPresentFlag() { return m_scalingListPresentFlag; } |
---|
1704 | Void setScalingListPresentFlag( Bool b ) { m_scalingListPresentFlag = b; } |
---|
1705 | |
---|
1706 | #if SCALINGLIST_INFERRING |
---|
1707 | UInt getLayerId() { return m_layerId; } |
---|
1708 | Void setLayerId( UInt layerId ) { m_layerId = layerId; } |
---|
1709 | Bool getInferScalingListFlag() { return m_inferScalingListFlag; } |
---|
1710 | UInt getScalingListRefLayerId() { return m_scalingListRefLayerId; } |
---|
1711 | Void setInferScalingListFlag( Bool flag ) { m_inferScalingListFlag = flag; } |
---|
1712 | Void setScalingListRefLayerId( UInt layerId ) { m_scalingListRefLayerId = layerId; } |
---|
1713 | #endif |
---|
1714 | |
---|
1715 | #if SCALINGLIST_INFERRING |
---|
1716 | Void setScalingList( TComScalingList *scalingList ) { m_scalingList = scalingList; } |
---|
1717 | #else |
---|
1718 | Void setScalingList ( TComScalingList *scalingList); |
---|
1719 | #endif |
---|
1720 | TComScalingList* getScalingList () { return m_scalingList; } //!< get ScalingList class pointer in PPS |
---|
1721 | Bool getListsModificationPresentFlag () { return m_listsModificationPresentFlag; } |
---|
1722 | Void setListsModificationPresentFlag ( Bool b ) { m_listsModificationPresentFlag = b; } |
---|
1723 | UInt getLog2ParallelMergeLevelMinus2 () { return m_log2ParallelMergeLevelMinus2; } |
---|
1724 | Void setLog2ParallelMergeLevelMinus2 (UInt mrgLevel) { m_log2ParallelMergeLevelMinus2 = mrgLevel; } |
---|
1725 | Int getNumExtraSliceHeaderBits() { return m_numExtraSliceHeaderBits; } |
---|
1726 | Void setNumExtraSliceHeaderBits(Int i) { m_numExtraSliceHeaderBits = i; } |
---|
1727 | Void setLoopFilterAcrossSlicesEnabledFlag ( Bool bValue ) { m_loopFilterAcrossSlicesEnabledFlag = bValue; } |
---|
1728 | Bool getLoopFilterAcrossSlicesEnabledFlag () { return m_loopFilterAcrossSlicesEnabledFlag; } |
---|
1729 | Bool getSliceHeaderExtensionPresentFlag () { return m_sliceHeaderExtensionPresentFlag; } |
---|
1730 | Void setSliceHeaderExtensionPresentFlag (Bool val) { m_sliceHeaderExtensionPresentFlag = val; } |
---|
1731 | }; |
---|
1732 | |
---|
1733 | typedef struct |
---|
1734 | { |
---|
1735 | // Explicit weighted prediction parameters parsed in slice header, |
---|
1736 | // or Implicit weighted prediction parameters (8 bits depth values). |
---|
1737 | Bool bPresentFlag; |
---|
1738 | UInt uiLog2WeightDenom; |
---|
1739 | Int iWeight; |
---|
1740 | Int iOffset; |
---|
1741 | |
---|
1742 | // Weighted prediction scaling values built from above parameters (bitdepth scaled): |
---|
1743 | Int w, o, offset, shift, round; |
---|
1744 | } wpScalingParam; |
---|
1745 | |
---|
1746 | typedef struct |
---|
1747 | { |
---|
1748 | Int64 iAC; |
---|
1749 | Int64 iDC; |
---|
1750 | #if O0194_WEIGHTED_PREDICTION_CGS |
---|
1751 | Int iSamples; |
---|
1752 | #endif |
---|
1753 | } wpACDCParam; |
---|
1754 | |
---|
1755 | /// slice header class |
---|
1756 | class TComSlice |
---|
1757 | { |
---|
1758 | |
---|
1759 | private: |
---|
1760 | // Bitstream writing |
---|
1761 | Bool m_saoEnabledFlag; |
---|
1762 | Bool m_saoEnabledFlagChroma; ///< SAO Cb&Cr enabled flag |
---|
1763 | Int m_iPPSId; ///< picture parameter set ID |
---|
1764 | Bool m_PicOutputFlag; ///< pic_output_flag |
---|
1765 | Int m_iPOC; |
---|
1766 | Int m_iLastIDR; |
---|
1767 | Int m_iAssociatedIRAP; |
---|
1768 | NalUnitType m_iAssociatedIRAPType; |
---|
1769 | static Int m_prevTid0POC; |
---|
1770 | TComReferencePictureSet *m_pcRPS; |
---|
1771 | TComReferencePictureSet m_LocalRPS; |
---|
1772 | Int m_iBDidx; |
---|
1773 | TComRefPicListModification m_RefPicListModification; |
---|
1774 | NalUnitType m_eNalUnitType; ///< Nal unit type for the slice |
---|
1775 | SliceType m_eSliceType; |
---|
1776 | Int m_iSliceQp; |
---|
1777 | Bool m_dependentSliceSegmentFlag; |
---|
1778 | #if ADAPTIVE_QP_SELECTION |
---|
1779 | Int m_iSliceQpBase; |
---|
1780 | #endif |
---|
1781 | Bool m_deblockingFilterDisable; |
---|
1782 | Bool m_deblockingFilterOverrideFlag; //< offsets for deblocking filter inherit from PPS |
---|
1783 | Int m_deblockingFilterBetaOffsetDiv2; //< beta offset for deblocking filter |
---|
1784 | Int m_deblockingFilterTcOffsetDiv2; //< tc offset for deblocking filter |
---|
1785 | Int m_list1IdxToList0Idx[MAX_NUM_REF]; |
---|
1786 | Int m_aiNumRefIdx [2]; // for multiple reference of current slice |
---|
1787 | |
---|
1788 | Bool m_bCheckLDC; |
---|
1789 | |
---|
1790 | // Data |
---|
1791 | Int m_iSliceQpDelta; |
---|
1792 | Int m_iSliceQpDeltaCb; |
---|
1793 | Int m_iSliceQpDeltaCr; |
---|
1794 | TComPic* m_apcRefPicList [2][MAX_NUM_REF+1]; |
---|
1795 | Int m_aiRefPOCList [2][MAX_NUM_REF+1]; |
---|
1796 | Bool m_bIsUsedAsLongTerm[2][MAX_NUM_REF+1]; |
---|
1797 | Int m_iDepth; |
---|
1798 | |
---|
1799 | // referenced slice? |
---|
1800 | Bool m_bRefenced; |
---|
1801 | |
---|
1802 | // access channel |
---|
1803 | TComVPS* m_pcVPS; |
---|
1804 | TComSPS* m_pcSPS; |
---|
1805 | TComPPS* m_pcPPS; |
---|
1806 | TComPic* m_pcPic; |
---|
1807 | #if ADAPTIVE_QP_SELECTION |
---|
1808 | TComTrQuant* m_pcTrQuant; |
---|
1809 | #endif |
---|
1810 | UInt m_colFromL0Flag; // collocated picture from List0 flag |
---|
1811 | |
---|
1812 | UInt m_colRefIdx; |
---|
1813 | UInt m_maxNumMergeCand; |
---|
1814 | |
---|
1815 | Double m_lambdas[3]; |
---|
1816 | |
---|
1817 | Bool m_abEqualRef [2][MAX_NUM_REF][MAX_NUM_REF]; |
---|
1818 | UInt m_uiTLayer; |
---|
1819 | Bool m_bTLayerSwitchingFlag; |
---|
1820 | |
---|
1821 | UInt m_sliceMode; |
---|
1822 | UInt m_sliceArgument; |
---|
1823 | UInt m_sliceCurStartCUAddr; |
---|
1824 | UInt m_sliceCurEndCUAddr; |
---|
1825 | UInt m_sliceIdx; |
---|
1826 | UInt m_sliceSegmentMode; |
---|
1827 | UInt m_sliceSegmentArgument; |
---|
1828 | UInt m_sliceSegmentCurStartCUAddr; |
---|
1829 | UInt m_sliceSegmentCurEndCUAddr; |
---|
1830 | Bool m_nextSlice; |
---|
1831 | Bool m_nextSliceSegment; |
---|
1832 | UInt m_sliceBits; |
---|
1833 | UInt m_sliceSegmentBits; |
---|
1834 | Bool m_bFinalized; |
---|
1835 | |
---|
1836 | wpScalingParam m_weightPredTable[2][MAX_NUM_REF][3]; // [REF_PIC_LIST_0 or REF_PIC_LIST_1][refIdx][0:Y, 1:U, 2:V] |
---|
1837 | wpACDCParam m_weightACDCParam[3]; // [0:Y, 1:U, 2:V] |
---|
1838 | |
---|
1839 | std::vector<UInt> m_tileByteLocation; |
---|
1840 | UInt m_uiTileOffstForMultES; |
---|
1841 | |
---|
1842 | UInt* m_puiSubstreamSizes; |
---|
1843 | TComScalingList* m_scalingList; //!< pointer of quantization matrix |
---|
1844 | Bool m_cabacInitFlag; |
---|
1845 | |
---|
1846 | Bool m_bLMvdL1Zero; |
---|
1847 | Int m_numEntryPointOffsets; |
---|
1848 | Bool m_temporalLayerNonReferenceFlag; |
---|
1849 | Bool m_LFCrossSliceBoundaryFlag; |
---|
1850 | |
---|
1851 | Bool m_enableTMVPFlag; |
---|
1852 | |
---|
1853 | #if SVC_EXTENSION |
---|
1854 | UInt m_layerId; |
---|
1855 | TComPic* m_pcBaseColPic[MAX_LAYERS]; |
---|
1856 | TComPicYuv* m_pcFullPelBaseRec[MAX_LAYERS]; |
---|
1857 | Int m_numMotionPredRefLayers; |
---|
1858 | #if REF_IDX_MFM |
---|
1859 | Bool m_bMFMEnabledFlag; |
---|
1860 | Int m_colRefLayerIdx; |
---|
1861 | Bool m_altColIndicationFlag; |
---|
1862 | TComPic* m_pcIlpPic; |
---|
1863 | #endif |
---|
1864 | |
---|
1865 | Bool m_interLayerPredEnabledFlag; |
---|
1866 | Int m_activeNumILRRefIdx; //< Active inter-layer reference pictures |
---|
1867 | Int m_interLayerPredLayerIdc [MAX_VPS_LAYER_ID_PLUS1]; |
---|
1868 | #if POC_RESET_FLAG |
---|
1869 | Bool m_bPocResetFlag; |
---|
1870 | Int m_pocValueBeforeReset; |
---|
1871 | #endif |
---|
1872 | Bool m_bDiscardableFlag; |
---|
1873 | #if O0149_CROSS_LAYER_BLA_FLAG |
---|
1874 | Bool m_bCrossLayerBLAFlag; |
---|
1875 | #endif |
---|
1876 | #endif //SVC_EXTENSION |
---|
1877 | |
---|
1878 | public: |
---|
1879 | TComSlice(); |
---|
1880 | virtual ~TComSlice(); |
---|
1881 | #if SVC_EXTENSION |
---|
1882 | Void initSlice ( UInt layerId ); |
---|
1883 | #else |
---|
1884 | Void initSlice (); |
---|
1885 | #endif |
---|
1886 | |
---|
1887 | Void setVPS ( TComVPS* pcVPS ) { m_pcVPS = pcVPS; } |
---|
1888 | TComVPS* getVPS () { return m_pcVPS; } |
---|
1889 | Void setSPS ( TComSPS* pcSPS ) { m_pcSPS = pcSPS; } |
---|
1890 | TComSPS* getSPS () { return m_pcSPS; } |
---|
1891 | |
---|
1892 | Void setPPS ( TComPPS* pcPPS ) { assert(pcPPS!=NULL); m_pcPPS = pcPPS; m_iPPSId = pcPPS->getPPSId(); } |
---|
1893 | TComPPS* getPPS () { return m_pcPPS; } |
---|
1894 | |
---|
1895 | #if ADAPTIVE_QP_SELECTION |
---|
1896 | Void setTrQuant ( TComTrQuant* pcTrQuant ) { m_pcTrQuant = pcTrQuant; } |
---|
1897 | TComTrQuant* getTrQuant () { return m_pcTrQuant; } |
---|
1898 | #endif |
---|
1899 | |
---|
1900 | Void setPPSId ( Int PPSId ) { m_iPPSId = PPSId; } |
---|
1901 | Int getPPSId () { return m_iPPSId; } |
---|
1902 | Void setPicOutputFlag( Bool b ) { m_PicOutputFlag = b; } |
---|
1903 | Bool getPicOutputFlag() { return m_PicOutputFlag; } |
---|
1904 | Void setSaoEnabledFlag(Bool s) {m_saoEnabledFlag =s; } |
---|
1905 | Bool getSaoEnabledFlag() { return m_saoEnabledFlag; } |
---|
1906 | Void setSaoEnabledFlagChroma(Bool s) {m_saoEnabledFlagChroma =s; } //!< set SAO Cb&Cr enabled flag |
---|
1907 | Bool getSaoEnabledFlagChroma() { return m_saoEnabledFlagChroma; } //!< get SAO Cb&Cr enabled flag |
---|
1908 | Void setRPS ( TComReferencePictureSet *pcRPS ) { m_pcRPS = pcRPS; } |
---|
1909 | TComReferencePictureSet* getRPS () { return m_pcRPS; } |
---|
1910 | TComReferencePictureSet* getLocalRPS () { return &m_LocalRPS; } |
---|
1911 | |
---|
1912 | Void setRPSidx ( Int iBDidx ) { m_iBDidx = iBDidx; } |
---|
1913 | Int getRPSidx () { return m_iBDidx; } |
---|
1914 | Int getPrevTid0POC () { return m_prevTid0POC; } |
---|
1915 | #if PREVTID0_POC_RESET |
---|
1916 | Void adjustPrevTid0POC (Int adj) { m_prevTid0POC=m_prevTid0POC-adj; } |
---|
1917 | #endif |
---|
1918 | TComRefPicListModification* getRefPicListModification() { return &m_RefPicListModification; } |
---|
1919 | Void setLastIDR(Int iIDRPOC) { m_iLastIDR = iIDRPOC; } |
---|
1920 | Int getLastIDR() { return m_iLastIDR; } |
---|
1921 | Void setAssociatedIRAPPOC(Int iAssociatedIRAPPOC) { m_iAssociatedIRAP = iAssociatedIRAPPOC; } |
---|
1922 | Int getAssociatedIRAPPOC() { return m_iAssociatedIRAP; } |
---|
1923 | Void setAssociatedIRAPType(NalUnitType associatedIRAPType) { m_iAssociatedIRAPType = associatedIRAPType; } |
---|
1924 | NalUnitType getAssociatedIRAPType() { return m_iAssociatedIRAPType; } |
---|
1925 | SliceType getSliceType () { return m_eSliceType; } |
---|
1926 | Int getPOC () { return m_iPOC; } |
---|
1927 | Int getSliceQp () { return m_iSliceQp; } |
---|
1928 | Bool getDependentSliceSegmentFlag() const { return m_dependentSliceSegmentFlag; } |
---|
1929 | void setDependentSliceSegmentFlag(Bool val) { m_dependentSliceSegmentFlag = val; } |
---|
1930 | #if ADAPTIVE_QP_SELECTION |
---|
1931 | Int getSliceQpBase () { return m_iSliceQpBase; } |
---|
1932 | #endif |
---|
1933 | Int getSliceQpDelta () { return m_iSliceQpDelta; } |
---|
1934 | Int getSliceQpDeltaCb () { return m_iSliceQpDeltaCb; } |
---|
1935 | Int getSliceQpDeltaCr () { return m_iSliceQpDeltaCr; } |
---|
1936 | Bool getDeblockingFilterDisable() { return m_deblockingFilterDisable; } |
---|
1937 | Bool getDeblockingFilterOverrideFlag() { return m_deblockingFilterOverrideFlag; } |
---|
1938 | Int getDeblockingFilterBetaOffsetDiv2() { return m_deblockingFilterBetaOffsetDiv2; } |
---|
1939 | Int getDeblockingFilterTcOffsetDiv2() { return m_deblockingFilterTcOffsetDiv2; } |
---|
1940 | |
---|
1941 | Int getNumRefIdx ( RefPicList e ) { return m_aiNumRefIdx[e]; } |
---|
1942 | TComPic* getPic () { return m_pcPic; } |
---|
1943 | TComPic* getRefPic ( RefPicList e, Int iRefIdx) { return m_apcRefPicList[e][iRefIdx]; } |
---|
1944 | Int getRefPOC ( RefPicList e, Int iRefIdx) { return m_aiRefPOCList[e][iRefIdx]; } |
---|
1945 | Int getDepth () { return m_iDepth; } |
---|
1946 | UInt getColFromL0Flag () { return m_colFromL0Flag; } |
---|
1947 | UInt getColRefIdx () { return m_colRefIdx; } |
---|
1948 | Void checkColRefIdx (UInt curSliceIdx, TComPic* pic); |
---|
1949 | Bool getIsUsedAsLongTerm (Int i, Int j) { return m_bIsUsedAsLongTerm[i][j]; } |
---|
1950 | Void setIsUsedAsLongTerm (Int i, Int j, Bool value) { m_bIsUsedAsLongTerm[i][j] = value; } |
---|
1951 | Bool getCheckLDC () { return m_bCheckLDC; } |
---|
1952 | Bool getMvdL1ZeroFlag () { return m_bLMvdL1Zero; } |
---|
1953 | Int getNumRpsCurrTempList(); |
---|
1954 | Int getList1IdxToList0Idx ( Int list1Idx ) { return m_list1IdxToList0Idx[list1Idx]; } |
---|
1955 | Void setReferenced(Bool b) { m_bRefenced = b; } |
---|
1956 | Bool isReferenced() { return m_bRefenced; } |
---|
1957 | Bool isReferenceNalu() { return ((getNalUnitType() <= NAL_UNIT_RESERVED_VCL_R15) && (getNalUnitType()%2 != 0)) || ((getNalUnitType() >= NAL_UNIT_CODED_SLICE_BLA_W_LP) && (getNalUnitType() <= NAL_UNIT_RESERVED_IRAP_VCL23) ); } |
---|
1958 | Void setPOC ( Int i ) { m_iPOC = i; if ((getTLayer()==0) && (isReferenceNalu() && (getNalUnitType()!=NAL_UNIT_CODED_SLICE_RASL_R)&& (getNalUnitType()!=NAL_UNIT_CODED_SLICE_RADL_R))) {m_prevTid0POC=i;} } |
---|
1959 | Void setNalUnitType ( NalUnitType e ) { m_eNalUnitType = e; } |
---|
1960 | NalUnitType getNalUnitType () const { return m_eNalUnitType; } |
---|
1961 | Bool getRapPicFlag (); |
---|
1962 | Bool getIdrPicFlag () { return getNalUnitType() == NAL_UNIT_CODED_SLICE_IDR_W_RADL || getNalUnitType() == NAL_UNIT_CODED_SLICE_IDR_N_LP; } |
---|
1963 | Bool isIRAP () const { return (getNalUnitType() >= 16) && (getNalUnitType() <= 23); } |
---|
1964 | Void checkCRA(TComReferencePictureSet *pReferencePictureSet, Int& pocCRA, NalUnitType& associatedIRAPType, TComList<TComPic *>& rcListPic); |
---|
1965 | #if NO_CLRAS_OUTPUT_FLAG |
---|
1966 | Void decodingRefreshMarking(Int& pocCRA, Bool& bRefreshPending, TComList<TComPic*>& rcListPic, Bool noClrasOutputFlag); |
---|
1967 | #else |
---|
1968 | Void decodingRefreshMarking(Int& pocCRA, Bool& bRefreshPending, TComList<TComPic*>& rcListPic); |
---|
1969 | #endif |
---|
1970 | Void setSliceType ( SliceType e ) { m_eSliceType = e; } |
---|
1971 | Void setSliceQp ( Int i ) { m_iSliceQp = i; } |
---|
1972 | #if ADAPTIVE_QP_SELECTION |
---|
1973 | Void setSliceQpBase ( Int i ) { m_iSliceQpBase = i; } |
---|
1974 | #endif |
---|
1975 | Void setSliceQpDelta ( Int i ) { m_iSliceQpDelta = i; } |
---|
1976 | Void setSliceQpDeltaCb ( Int i ) { m_iSliceQpDeltaCb = i; } |
---|
1977 | Void setSliceQpDeltaCr ( Int i ) { m_iSliceQpDeltaCr = i; } |
---|
1978 | Void setDeblockingFilterDisable( Bool b ) { m_deblockingFilterDisable= b; } |
---|
1979 | Void setDeblockingFilterOverrideFlag( Bool b ) { m_deblockingFilterOverrideFlag = b; } |
---|
1980 | Void setDeblockingFilterBetaOffsetDiv2( Int i ) { m_deblockingFilterBetaOffsetDiv2 = i; } |
---|
1981 | Void setDeblockingFilterTcOffsetDiv2( Int i ) { m_deblockingFilterTcOffsetDiv2 = i; } |
---|
1982 | |
---|
1983 | Void setRefPic ( TComPic* p, RefPicList e, Int iRefIdx ) { m_apcRefPicList[e][iRefIdx] = p; } |
---|
1984 | Void setRefPOC ( Int i, RefPicList e, Int iRefIdx ) { m_aiRefPOCList[e][iRefIdx] = i; } |
---|
1985 | Void setNumRefIdx ( RefPicList e, Int i ) { m_aiNumRefIdx[e] = i; } |
---|
1986 | Void setPic ( TComPic* p ) { m_pcPic = p; } |
---|
1987 | Void setDepth ( Int iDepth ) { m_iDepth = iDepth; } |
---|
1988 | |
---|
1989 | #if SVC_EXTENSION |
---|
1990 | Void setRefPicList ( TComList<TComPic*>& rcListPic, Bool checkNumPocTotalCurr = false, TComPic** ilpPic = NULL ); |
---|
1991 | #else |
---|
1992 | Void setRefPicList ( TComList<TComPic*>& rcListPic, Bool checkNumPocTotalCurr = false ); |
---|
1993 | #endif |
---|
1994 | Void setRefPOCList (); |
---|
1995 | Void setColFromL0Flag ( UInt colFromL0 ) { m_colFromL0Flag = colFromL0; } |
---|
1996 | Void setColRefIdx ( UInt refIdx) { m_colRefIdx = refIdx; } |
---|
1997 | Void setCheckLDC ( Bool b ) { m_bCheckLDC = b; } |
---|
1998 | Void setMvdL1ZeroFlag ( Bool b) { m_bLMvdL1Zero = b; } |
---|
1999 | |
---|
2000 | Bool isIntra () { return m_eSliceType == I_SLICE; } |
---|
2001 | Bool isInterB () { return m_eSliceType == B_SLICE; } |
---|
2002 | Bool isInterP () { return m_eSliceType == P_SLICE; } |
---|
2003 | |
---|
2004 | Void setLambdas ( const Double lambdas[3] ) { for (Int component = 0; component < 3; component++) m_lambdas[component] = lambdas[component]; } |
---|
2005 | const Double* getLambdas() const { return m_lambdas; } |
---|
2006 | |
---|
2007 | Void initEqualRef(); |
---|
2008 | Bool isEqualRef ( RefPicList e, Int iRefIdx1, Int iRefIdx2 ) |
---|
2009 | { |
---|
2010 | if (iRefIdx1 < 0 || iRefIdx2 < 0) return false; |
---|
2011 | return m_abEqualRef[e][iRefIdx1][iRefIdx2]; |
---|
2012 | } |
---|
2013 | |
---|
2014 | Void setEqualRef( RefPicList e, Int iRefIdx1, Int iRefIdx2, Bool b) |
---|
2015 | { |
---|
2016 | m_abEqualRef[e][iRefIdx1][iRefIdx2] = m_abEqualRef[e][iRefIdx2][iRefIdx1] = b; |
---|
2017 | } |
---|
2018 | |
---|
2019 | static Void sortPicList ( TComList<TComPic*>& rcListPic ); |
---|
2020 | Void setList1IdxToList0Idx(); |
---|
2021 | |
---|
2022 | UInt getTLayer () { return m_uiTLayer; } |
---|
2023 | Void setTLayer ( UInt uiTLayer ) { m_uiTLayer = uiTLayer; } |
---|
2024 | |
---|
2025 | Void setTLayerInfo( UInt uiTLayer ); |
---|
2026 | Void decodingMarking( TComList<TComPic*>& rcListPic, Int iGOPSIze, Int& iMaxRefPicNum ); |
---|
2027 | Void checkLeadingPictureRestrictions( TComList<TComPic*>& rcListPic ); |
---|
2028 | Void applyReferencePictureSet( TComList<TComPic*>& rcListPic, TComReferencePictureSet *RPSList); |
---|
2029 | Bool isTemporalLayerSwitchingPoint( TComList<TComPic*>& rcListPic ); |
---|
2030 | Bool isStepwiseTemporalLayerSwitchingPointCandidate( TComList<TComPic*>& rcListPic ); |
---|
2031 | Int checkThatAllRefPicsAreAvailable( TComList<TComPic*>& rcListPic, TComReferencePictureSet *pReferencePictureSet, Bool printErrors, Int pocRandomAccess = 0); |
---|
2032 | Void createExplicitReferencePictureSetFromReference( TComList<TComPic*>& rcListPic, TComReferencePictureSet *pReferencePictureSet, Bool isRAP); |
---|
2033 | |
---|
2034 | Void setMaxNumMergeCand (UInt val ) { m_maxNumMergeCand = val; } |
---|
2035 | UInt getMaxNumMergeCand () { return m_maxNumMergeCand; } |
---|
2036 | |
---|
2037 | Void setSliceMode ( UInt uiMode ) { m_sliceMode = uiMode; } |
---|
2038 | UInt getSliceMode () { return m_sliceMode; } |
---|
2039 | Void setSliceArgument ( UInt uiArgument ) { m_sliceArgument = uiArgument; } |
---|
2040 | UInt getSliceArgument () { return m_sliceArgument; } |
---|
2041 | Void setSliceCurStartCUAddr ( UInt uiAddr ) { m_sliceCurStartCUAddr = uiAddr; } |
---|
2042 | UInt getSliceCurStartCUAddr () { return m_sliceCurStartCUAddr; } |
---|
2043 | Void setSliceCurEndCUAddr ( UInt uiAddr ) { m_sliceCurEndCUAddr = uiAddr; } |
---|
2044 | UInt getSliceCurEndCUAddr () { return m_sliceCurEndCUAddr; } |
---|
2045 | Void setSliceIdx ( UInt i) { m_sliceIdx = i; } |
---|
2046 | UInt getSliceIdx () { return m_sliceIdx; } |
---|
2047 | Void copySliceInfo (TComSlice *pcSliceSrc); |
---|
2048 | Void setSliceSegmentMode ( UInt uiMode ) { m_sliceSegmentMode = uiMode; } |
---|
2049 | UInt getSliceSegmentMode () { return m_sliceSegmentMode; } |
---|
2050 | Void setSliceSegmentArgument ( UInt uiArgument ) { m_sliceSegmentArgument = uiArgument; } |
---|
2051 | UInt getSliceSegmentArgument () { return m_sliceSegmentArgument; } |
---|
2052 | Void setSliceSegmentCurStartCUAddr ( UInt uiAddr ) { m_sliceSegmentCurStartCUAddr = uiAddr; } |
---|
2053 | UInt getSliceSegmentCurStartCUAddr () { return m_sliceSegmentCurStartCUAddr; } |
---|
2054 | Void setSliceSegmentCurEndCUAddr ( UInt uiAddr ) { m_sliceSegmentCurEndCUAddr = uiAddr; } |
---|
2055 | UInt getSliceSegmentCurEndCUAddr () { return m_sliceSegmentCurEndCUAddr; } |
---|
2056 | Void setNextSlice ( Bool b ) { m_nextSlice = b; } |
---|
2057 | Bool isNextSlice () { return m_nextSlice; } |
---|
2058 | Void setNextSliceSegment ( Bool b ) { m_nextSliceSegment = b; } |
---|
2059 | Bool isNextSliceSegment () { return m_nextSliceSegment; } |
---|
2060 | Void setSliceBits ( UInt uiVal ) { m_sliceBits = uiVal; } |
---|
2061 | UInt getSliceBits () { return m_sliceBits; } |
---|
2062 | Void setSliceSegmentBits ( UInt uiVal ) { m_sliceSegmentBits = uiVal; } |
---|
2063 | UInt getSliceSegmentBits () { return m_sliceSegmentBits; } |
---|
2064 | Void setFinalized ( Bool uiVal ) { m_bFinalized = uiVal; } |
---|
2065 | Bool getFinalized () { return m_bFinalized; } |
---|
2066 | Void setWpScaling ( wpScalingParam wp[2][MAX_NUM_REF][3] ) { memcpy(m_weightPredTable, wp, sizeof(wpScalingParam)*2*MAX_NUM_REF*3); } |
---|
2067 | Void getWpScaling ( RefPicList e, Int iRefIdx, wpScalingParam *&wp); |
---|
2068 | |
---|
2069 | Void resetWpScaling (); |
---|
2070 | Void initWpScaling (); |
---|
2071 | inline Bool applyWP () { return( (m_eSliceType==P_SLICE && m_pcPPS->getUseWP()) || (m_eSliceType==B_SLICE && m_pcPPS->getWPBiPred()) ); } |
---|
2072 | |
---|
2073 | Void setWpAcDcParam ( wpACDCParam wp[3] ) { memcpy(m_weightACDCParam, wp, sizeof(wpACDCParam)*3); } |
---|
2074 | Void getWpAcDcParam ( wpACDCParam *&wp ); |
---|
2075 | Void initWpAcDcParam (); |
---|
2076 | |
---|
2077 | Void setTileLocationCount ( UInt cnt ) { return m_tileByteLocation.resize(cnt); } |
---|
2078 | UInt getTileLocationCount () { return (UInt) m_tileByteLocation.size(); } |
---|
2079 | Void setTileLocation ( Int idx, UInt location ) { assert (idx<m_tileByteLocation.size()); |
---|
2080 | m_tileByteLocation[idx] = location; } |
---|
2081 | Void addTileLocation ( UInt location ) { m_tileByteLocation.push_back(location); } |
---|
2082 | UInt getTileLocation ( Int idx ) { return m_tileByteLocation[idx]; } |
---|
2083 | |
---|
2084 | Void setTileOffstForMultES (UInt uiOffset ) { m_uiTileOffstForMultES = uiOffset; } |
---|
2085 | UInt getTileOffstForMultES () { return m_uiTileOffstForMultES; } |
---|
2086 | Void allocSubstreamSizes ( UInt uiNumSubstreams ); |
---|
2087 | UInt* getSubstreamSizes () { return m_puiSubstreamSizes; } |
---|
2088 | Void setScalingList ( TComScalingList* scalingList ) { m_scalingList = scalingList; } |
---|
2089 | TComScalingList* getScalingList () { return m_scalingList; } |
---|
2090 | Void setDefaultScalingList (); |
---|
2091 | Bool checkDefaultScalingList (); |
---|
2092 | Void setCabacInitFlag ( Bool val ) { m_cabacInitFlag = val; } //!< set CABAC initial flag |
---|
2093 | Bool getCabacInitFlag () { return m_cabacInitFlag; } //!< get CABAC initial flag |
---|
2094 | Void setNumEntryPointOffsets(Int val) { m_numEntryPointOffsets = val; } |
---|
2095 | Int getNumEntryPointOffsets() { return m_numEntryPointOffsets; } |
---|
2096 | Bool getTemporalLayerNonReferenceFlag() { return m_temporalLayerNonReferenceFlag;} |
---|
2097 | Void setTemporalLayerNonReferenceFlag(Bool x) { m_temporalLayerNonReferenceFlag = x;} |
---|
2098 | Void setLFCrossSliceBoundaryFlag ( Bool val ) { m_LFCrossSliceBoundaryFlag = val; } |
---|
2099 | Bool getLFCrossSliceBoundaryFlag () { return m_LFCrossSliceBoundaryFlag;} |
---|
2100 | |
---|
2101 | Void setEnableTMVPFlag ( Bool b ) { m_enableTMVPFlag = b; } |
---|
2102 | Bool getEnableTMVPFlag () { return m_enableTMVPFlag;} |
---|
2103 | |
---|
2104 | #if SVC_EXTENSION |
---|
2105 | Bool setBaseColPic ( TComList<TComPic*>& rcListPic , UInt refLayerIdc ); |
---|
2106 | Void setBaseColPic (UInt refLayerIdc, TComPic* p) { m_pcBaseColPic[refLayerIdc] = p; } |
---|
2107 | TComPic* getBaseColPic (UInt refLayerIdc) { return m_pcBaseColPic[refLayerIdc]; } |
---|
2108 | TComPic** getBaseColPic () { return &m_pcBaseColPic[0]; } |
---|
2109 | #if MFM_ENCCONSTRAINT |
---|
2110 | TComPic* getBaseColPic( TComList<TComPic*>& rcListPic ); |
---|
2111 | #endif |
---|
2112 | |
---|
2113 | Void setLayerId (UInt layerId) { m_layerId = layerId; } |
---|
2114 | UInt getLayerId () { return m_layerId; } |
---|
2115 | |
---|
2116 | Void setFullPelBaseRec (UInt refLayerIdc, TComPicYuv* p) { m_pcFullPelBaseRec[refLayerIdc] = p; } |
---|
2117 | TComPicYuv* getFullPelBaseRec (UInt refLayerIdc) { return m_pcFullPelBaseRec[refLayerIdc]; } |
---|
2118 | |
---|
2119 | #if AVC_SYNTAX |
---|
2120 | Void initBaseLayerRPL( TComSlice *pcSlice ); |
---|
2121 | #endif |
---|
2122 | |
---|
2123 | Void setRefPicListModificationSvc(); |
---|
2124 | Int getNumILRRefIdx ( ) { return m_pcVPS->getNumDirectRefLayers( m_layerId ); } |
---|
2125 | |
---|
2126 | #if REF_IDX_MFM |
---|
2127 | Void setRefPOCListILP(TComPic** ilpPic, TComPic** pcRefPicRL); |
---|
2128 | #endif |
---|
2129 | |
---|
2130 | Int getActiveNumILRRefIdx ( ) { return m_activeNumILRRefIdx; } |
---|
2131 | Void setActiveNumILRRefIdx ( Int i ) { m_activeNumILRRefIdx = i; } |
---|
2132 | |
---|
2133 | Int getInterLayerPredLayerIdc (UInt layerIdx) { return m_interLayerPredLayerIdc[layerIdx];} |
---|
2134 | Void setInterLayerPredLayerIdc (UInt refLayerIdc, UInt layerIdx) { m_interLayerPredLayerIdc[layerIdx] = refLayerIdc; } |
---|
2135 | |
---|
2136 | Void setInterLayerPredEnabledFlag ( Bool val ) { m_interLayerPredEnabledFlag = val; } |
---|
2137 | Bool getInterLayerPredEnabledFlag () { return m_interLayerPredEnabledFlag;} |
---|
2138 | |
---|
2139 | Void setNumMotionPredRefLayers(int i) { m_numMotionPredRefLayers = i; } |
---|
2140 | Int getNumMotionPredRefLayers() { return m_numMotionPredRefLayers; } |
---|
2141 | #if REF_IDX_MFM |
---|
2142 | Void setMFMEnabledFlag(Bool flag) { m_bMFMEnabledFlag = flag; } |
---|
2143 | Bool getMFMEnabledFlag() { return m_bMFMEnabledFlag; } |
---|
2144 | #endif |
---|
2145 | |
---|
2146 | TComPic* getRefPic(TComList<TComPic*>& rcListPic, Int poc) { return xGetRefPic( rcListPic, poc ); } |
---|
2147 | |
---|
2148 | Bool isRADL() { return (m_eNalUnitType == NAL_UNIT_CODED_SLICE_RADL_N || m_eNalUnitType == NAL_UNIT_CODED_SLICE_RADL_R); } |
---|
2149 | Bool isRASL() { return (m_eNalUnitType == NAL_UNIT_CODED_SLICE_RASL_N || m_eNalUnitType == NAL_UNIT_CODED_SLICE_RASL_R); } |
---|
2150 | |
---|
2151 | #if POC_RESET_FLAG |
---|
2152 | Bool getPocResetFlag () { return m_bPocResetFlag; } |
---|
2153 | Void setPocResetFlag (Bool b) { m_bPocResetFlag = b; } |
---|
2154 | Int getPocValueBeforeReset () { return m_pocValueBeforeReset; } |
---|
2155 | Void setPocValueBeforeReset (Int x) { m_pocValueBeforeReset = x ; } |
---|
2156 | #endif |
---|
2157 | Bool getDiscardableFlag () { return m_bDiscardableFlag; } |
---|
2158 | Void setDiscardableFlag (Bool b) { m_bDiscardableFlag = b; } |
---|
2159 | #if O0149_CROSS_LAYER_BLA_FLAG |
---|
2160 | Bool getCrossLayerBLAFlag () { return m_bCrossLayerBLAFlag; } |
---|
2161 | Void setCrossLayerBLAFlag (Bool b) { m_bCrossLayerBLAFlag = b; } |
---|
2162 | #endif |
---|
2163 | |
---|
2164 | #if RPL_INIT_N0316_N0082 |
---|
2165 | Int getNumNegativeRpsCurrTempList(); |
---|
2166 | #endif |
---|
2167 | |
---|
2168 | #if REPN_FORMAT_IN_VPS |
---|
2169 | UInt getPicWidthInLumaSamples(); |
---|
2170 | UInt getPicHeightInLumaSamples(); |
---|
2171 | #if AUXILIARY_PICTURES |
---|
2172 | ChromaFormat getChromaFormatIdc(); |
---|
2173 | #else |
---|
2174 | UInt getChromaFormatIdc(); |
---|
2175 | #endif |
---|
2176 | UInt getBitDepthY(); |
---|
2177 | UInt getBitDepthC(); |
---|
2178 | Int getQpBDOffsetY(); |
---|
2179 | Int getQpBDOffsetC(); |
---|
2180 | #endif |
---|
2181 | |
---|
2182 | Void setILRPic(TComPic **pcIlpPic); |
---|
2183 | |
---|
2184 | #endif //SVC_EXTENSION |
---|
2185 | protected: |
---|
2186 | TComPic* xGetRefPic (TComList<TComPic*>& rcListPic, |
---|
2187 | Int poc); |
---|
2188 | TComPic* xGetLongTermRefPic(TComList<TComPic*>& rcListPic, Int poc, Bool pocHasMsb); |
---|
2189 | };// END CLASS DEFINITION TComSlice |
---|
2190 | |
---|
2191 | |
---|
2192 | template <class T> class ParameterSetMap |
---|
2193 | { |
---|
2194 | public: |
---|
2195 | ParameterSetMap(Int maxId) |
---|
2196 | :m_maxId (maxId) |
---|
2197 | {} |
---|
2198 | |
---|
2199 | ~ParameterSetMap() |
---|
2200 | { |
---|
2201 | for (typename std::map<Int,T *>::iterator i = m_paramsetMap.begin(); i!= m_paramsetMap.end(); i++) |
---|
2202 | { |
---|
2203 | delete (*i).second; |
---|
2204 | } |
---|
2205 | } |
---|
2206 | |
---|
2207 | Void storePS(Int psId, T *ps) |
---|
2208 | { |
---|
2209 | assert ( psId < m_maxId ); |
---|
2210 | if ( m_paramsetMap.find(psId) != m_paramsetMap.end() ) |
---|
2211 | { |
---|
2212 | delete m_paramsetMap[psId]; |
---|
2213 | } |
---|
2214 | m_paramsetMap[psId] = ps; |
---|
2215 | } |
---|
2216 | |
---|
2217 | Void mergePSList(ParameterSetMap<T> &rPsList) |
---|
2218 | { |
---|
2219 | for (typename std::map<Int,T *>::iterator i = rPsList.m_paramsetMap.begin(); i!= rPsList.m_paramsetMap.end(); i++) |
---|
2220 | { |
---|
2221 | storePS(i->first, i->second); |
---|
2222 | } |
---|
2223 | rPsList.m_paramsetMap.clear(); |
---|
2224 | } |
---|
2225 | |
---|
2226 | |
---|
2227 | T* getPS(Int psId) |
---|
2228 | { |
---|
2229 | return ( m_paramsetMap.find(psId) == m_paramsetMap.end() ) ? NULL : m_paramsetMap[psId]; |
---|
2230 | } |
---|
2231 | |
---|
2232 | T* getFirstPS() |
---|
2233 | { |
---|
2234 | return (m_paramsetMap.begin() == m_paramsetMap.end() ) ? NULL : m_paramsetMap.begin()->second; |
---|
2235 | } |
---|
2236 | |
---|
2237 | private: |
---|
2238 | std::map<Int,T *> m_paramsetMap; |
---|
2239 | Int m_maxId; |
---|
2240 | }; |
---|
2241 | |
---|
2242 | class ParameterSetManager |
---|
2243 | { |
---|
2244 | public: |
---|
2245 | ParameterSetManager(); |
---|
2246 | virtual ~ParameterSetManager(); |
---|
2247 | |
---|
2248 | //! store sequence parameter set and take ownership of it |
---|
2249 | Void storeVPS(TComVPS *vps) { m_vpsMap.storePS( vps->getVPSId(), vps); }; |
---|
2250 | //! get pointer to existing video parameter set |
---|
2251 | TComVPS* getVPS(Int vpsId) { return m_vpsMap.getPS(vpsId); }; |
---|
2252 | TComVPS* getFirstVPS() { return m_vpsMap.getFirstPS(); }; |
---|
2253 | |
---|
2254 | //! store sequence parameter set and take ownership of it |
---|
2255 | Void storeSPS(TComSPS *sps) { m_spsMap.storePS( sps->getSPSId(), sps); }; |
---|
2256 | //! get pointer to existing sequence parameter set |
---|
2257 | TComSPS* getSPS(Int spsId) { return m_spsMap.getPS(spsId); }; |
---|
2258 | TComSPS* getFirstSPS() { return m_spsMap.getFirstPS(); }; |
---|
2259 | |
---|
2260 | //! store picture parameter set and take ownership of it |
---|
2261 | Void storePPS(TComPPS *pps) { m_ppsMap.storePS( pps->getPPSId(), pps); }; |
---|
2262 | //! get pointer to existing picture parameter set |
---|
2263 | TComPPS* getPPS(Int ppsId) { return m_ppsMap.getPS(ppsId); }; |
---|
2264 | TComPPS* getFirstPPS() { return m_ppsMap.getFirstPS(); }; |
---|
2265 | |
---|
2266 | //! activate a SPS from a active parameter sets SEI message |
---|
2267 | //! \returns true, if activation is successful |
---|
2268 | Bool activateSPSWithSEI(Int SPSId); |
---|
2269 | |
---|
2270 | //! activate a PPS and depending on isIDR parameter also SPS and VPS |
---|
2271 | //! \returns true, if activation is successful |
---|
2272 | Bool activatePPS(Int ppsId, Bool isIRAP); |
---|
2273 | |
---|
2274 | TComVPS* getActiveVPS(){ return m_vpsMap.getPS(m_activeVPSId); }; |
---|
2275 | TComSPS* getActiveSPS(){ return m_spsMap.getPS(m_activeSPSId); }; |
---|
2276 | TComPPS* getActivePPS(){ return m_ppsMap.getPS(m_activePPSId); }; |
---|
2277 | |
---|
2278 | protected: |
---|
2279 | |
---|
2280 | #if SVC_EXTENSION |
---|
2281 | static ParameterSetMap<TComVPS> m_vpsMap; |
---|
2282 | #else |
---|
2283 | ParameterSetMap<TComVPS> m_vpsMap; |
---|
2284 | #endif |
---|
2285 | ParameterSetMap<TComSPS> m_spsMap; |
---|
2286 | ParameterSetMap<TComPPS> m_ppsMap; |
---|
2287 | |
---|
2288 | #if SVC_EXTENSION |
---|
2289 | static Int m_activeVPSId; |
---|
2290 | #else |
---|
2291 | Int m_activeVPSId; |
---|
2292 | #endif |
---|
2293 | Int m_activeSPSId; |
---|
2294 | Int m_activePPSId; |
---|
2295 | }; |
---|
2296 | |
---|
2297 | //! \} |
---|
2298 | |
---|
2299 | #endif // __TCOMSLICE__ |
---|