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