Changeset 213 in 3DVCSoftware for branches/HTM-4.0.1-VSP-dev0/source/Lib/TLibCommon/TComSlice.h
- Timestamp:
- 31 Dec 2012, 18:33:14 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-4.0.1-VSP-dev0/source/Lib/TLibCommon/TComSlice.h
r193 r213 144 144 #endif 145 145 146 #if VIDYO_VPS_INTEGRATION 146 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 147 147 /// VPS class 148 148 … … 156 156 157 157 UInt m_uiExtensionType; 158 158 #if !QC_MVHEVC_B0046 159 159 Bool m_bDependentFlag[MAX_LAYER_NUM]; 160 #else 161 UInt m_uiNumHRDParameter; 162 UInt m_numAddiLayerOperationPoints; 163 UInt m_numAddiProLevelSets; 164 UInt m_numDirectRefLayer[MAX_LAYER_NUM]; 165 UInt m_numDirectRefID[MAX_LAYER_NUM][MAX_LAYER_NUM]; 166 UInt m_numOpLayerIdMinus1[MAX_LAYER_NUM]; 167 UInt m_numOpLayerId[MAX_LAYER_NUM][MAX_LAYER_NUM]; 168 #endif 160 169 UInt m_uiViewId[MAX_LAYER_NUM]; 170 #if !QC_MVHEVC_B0046 161 171 Bool m_bDepthFlag[MAX_LAYER_NUM]; 172 #endif 162 173 Int m_iViewOrderIdx[MAX_LAYER_NUM]; 174 #if !QC_MVHEVC_B0046 163 175 UInt m_uiDependentLayer[MAX_LAYER_NUM]; 176 #endif 164 177 165 178 UInt m_numReorderPics[MAX_TLAYER]; … … 182 195 Bool getTemporalNestingFlag () { return m_uiMaxLayers; } 183 196 Void setTemporalNestingFlag (UInt t) { m_bTemporalIdNestingFlag = t; } 184 197 #if !QC_MVHEVC_B0046 185 198 Void setExtensionType(UInt v) { m_uiExtensionType = v; } 186 199 UInt getExtensionType() { return m_uiExtensionType; } … … 188 201 Void setDependentFlag(Bool d, UInt layer) { m_bDependentFlag[layer] = d; } 189 202 Bool getDependentFlag(UInt layer) { return m_bDependentFlag[layer]; } 190 203 #endif 191 204 Void setViewId(UInt v, UInt layer) { m_uiViewId[layer] = v; } 192 205 UInt getViewId(UInt layer) { return m_uiViewId[layer]; } 193 206 #if !QC_MVHEVC_B0046 194 207 Void setDepthFlag(Bool d, UInt layer) { m_bDepthFlag[layer] = d; } 195 208 Bool getDepthFlag(UInt layer) { return m_bDepthFlag[layer]; } 196 209 #endif 197 210 Void setViewOrderIdx(Int v, UInt layer) { m_iViewOrderIdx[layer] = v; } 198 211 Int getViewOrderIdx(UInt layer) { return m_iViewOrderIdx[layer]; } 199 212 #if !QC_MVHEVC_B0046 200 213 Void setDependentLayer(UInt v, UInt layer) { m_uiDependentLayer[layer] = v; } 201 214 UInt getDependentLayer(UInt layer) { return m_uiDependentLayer[layer]; } 202 215 #endif 203 216 Void setNumReorderPics(UInt v, UInt tLayer) { m_numReorderPics[tLayer] = v; } 204 217 UInt getNumReorderPics(UInt tLayer) { return m_numReorderPics[tLayer]; } … … 209 222 Void setMaxLatencyIncrease(UInt v, UInt tLayer) { m_uiMaxLatencyIncrease[tLayer] = v; } 210 223 UInt getMaxLatencyIncrease(UInt tLayer) { return m_uiMaxLatencyIncrease[tLayer]; } 211 224 #if QC_MVHEVC_B0046 225 Void setNumHRDParameters(UInt n) { m_uiNumHRDParameter = n; } 226 UInt getNumHRDParameters() { return m_uiNumHRDParameter; } 227 Void setNumDirectRefLayer(UInt n, UInt layer) { m_numDirectRefLayer[layer] = n; }; 228 UInt getNumDirectRefLayer(UInt layer) { return m_numDirectRefLayer[layer]; }; 229 Void setDirectRefLayerId (UInt n, UInt layer, UInt refId) { m_numDirectRefID[layer][refId] = n; assert(refId < MAX_NUM_REF ); }; 230 UInt getDirectRefLayerId ( UInt layer, UInt refId) { return m_numDirectRefID[layer][refId]; }; 231 UInt getNumAddiLayerOperationPoints( ) { return m_numAddiLayerOperationPoints; }; 232 Void setNumAddiLayerOperationPoints(UInt n) { m_numAddiLayerOperationPoints = n; }; 233 Void setNumAddiProLevelSets (UInt n) { m_numAddiProLevelSets = n;} 234 UInt getNumAddiProLevelSets ( ) { return m_numAddiProLevelSets;} 235 236 Void setNumOpLayerIdMinus1 (UInt n, UInt layer) { m_numOpLayerIdMinus1[layer] = n;} 237 UInt getNumOpLayerIdMinus1 (UInt layer ) { return m_numOpLayerIdMinus1[layer];} 238 239 Void setNumOpLayerId (UInt n, UInt layer, UInt OpId) { m_numOpLayerId[layer][OpId] = n;} 240 UInt getNumOpLayerId (UInt layer, UInt OpId ) { return m_numOpLayerId[layer][OpId];} 241 242 #endif 212 243 }; 213 244 … … 218 249 { 219 250 private: 220 #if VIDYO_VPS_INTEGRATION 251 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 221 252 Int m_VPSId; 222 253 #endif … … 323 354 Bool m_bUseMVI; 324 355 #endif 356 357 #if RWTH_SDC_DLT_B0036 358 Bool m_bUseDLT; 359 360 UInt m_uiBitsPerDepthValue; 361 UInt m_uiNumDepthmapValues; 362 UInt* m_uiDepthValue2Idx; 363 UInt* m_uiIdx2DepthValue; 364 #endif 325 365 326 366 Bool m_bLFCrossTileBoundaryFlag; … … 354 394 #endif 355 395 356 #if OL_DEPTHLIMIT_A0044 357 Bool m_bDepthPartitionLimiting; 396 #if HHI_DMM_PRED_TEX && FLEX_CODING_ORDER_M23723 397 Bool m_bUseDMM34; 398 #endif 399 400 #if OL_QTLIMIT_PREDCODING_B0068 401 Bool m_bUseQTLPC; 358 402 #endif 359 403 … … 384 428 Bool m_bVspDepthPresentFlag; 385 429 #endif 430 Bool m_bIsFirstInView; 386 431 #endif 387 432 … … 389 434 TComSPS(); 390 435 virtual ~TComSPS(); 391 #if VIDYO_VPS_INTEGRATION 436 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 392 437 Int getVPSId () { return m_VPSId; } 393 438 Void setVPSId (Int i) { m_VPSId = i; } … … 554 599 Bool getUseMVI () {return m_bUseMVI;} 555 600 #endif 601 602 #if RWTH_SDC_DLT_B0036 603 Bool getUseDLT () { return m_bUseDLT; } 604 Void setUseDLT ( Bool b ) { m_bUseDLT = b; } 605 606 UInt getBitsPerDepthValue() { return m_bUseDLT?m_uiBitsPerDepthValue:g_uiBitDepth; } 607 UInt getNumDepthValues() { return m_bUseDLT?m_uiNumDepthmapValues:g_uiIBDI_MAX; } 608 UInt depthValue2idx(Pel uiValue) { return m_bUseDLT?m_uiDepthValue2Idx[uiValue]:uiValue; } 609 Pel idx2DepthValue(UInt uiIdx) { return m_bUseDLT?m_uiIdx2DepthValue[uiIdx]:uiIdx; } 610 Void setDepthLUTs (UInt* uidx2DepthValue = NULL, UInt uiNumDepthValues = 0); 611 #endif 556 612 557 613 UInt getMaxTLayers() { return m_uiMaxTLayers; } … … 630 686 #endif 631 687 632 #if OL_DEPTHLIMIT_A0044 633 Void setUseDPL(Bool b) {m_bDepthPartitionLimiting = b; } 634 Bool getUseDPL() {return m_bDepthPartitionLimiting;} 688 #if HHI_DMM_PRED_TEX && FLEX_CODING_ORDER_M23723 689 Bool getUseDMM34() { return m_bUseDMM34; } 690 Void setUseDMM34( Bool b ) { m_bUseDMM34 = b; } 691 #endif 692 693 #if OL_QTLIMIT_PREDCODING_B0068 694 Void setUseQTLPC( Bool b ) { m_bUseQTLPC = b; } 695 Bool getUseQTLPC() { return m_bUseQTLPC; } 635 696 #endif 636 697 637 698 Void initMultiviewSPS ( UInt uiViewId, Int iViewOrderIdx = 0, UInt uiCamParPrecision = 0, Bool bCamParSlice = false, Int** aaiScale = 0, Int** aaiOffset = 0 ); 638 699 Void initMultiviewSPSDepth ( UInt uiViewId, Int iViewOrderIdx ); 700 #if VSP_N 701 Void initMultiviewSPSFlex ( UInt uiViewId, Int iViewOrderIdx, Bool bDepth, Bool bPresent = 0, UInt uiCamParPrecision = 0, Bool bCamParSlice = false, Int** aaiScale = 0, Int** aaiOffset = 0 ); 702 #endif 639 703 640 704 UInt getViewId () { return m_uiViewId; } … … 686 750 Bool getVspDepthPresentFlag() { return m_bVspDepthPresentFlag; } 687 751 #endif 752 Void setIsFirstInView( Bool b ) { m_bIsFirstInView = b; } 753 Bool getIsFirstInView() { return m_bIsFirstInView; } 754 Void copyCameraParameterPre( UInt uiCamParPrecision, Bool bCamParSlice ); 755 Void copyCameraParameterPost( Int* aiScale0, Int* aiScale1, Int* aiOffset0, Int* aiOffset1 ); 688 756 #endif 689 757 }; … … 879 947 Bool m_cabacInitPresentFlag; 880 948 UInt m_encCABACTableIdx; // Used to transmit table selection across slices 881 #if POZNAN_CABAC_INIT_FLAG_FIX949 #if FIX_POZNAN_CABAC_INIT_FLAG 882 950 UInt m_encPrevPOC; 883 951 #endif … … 1014 1082 Bool getCabacInitPresentFlag() { return m_cabacInitPresentFlag; } 1015 1083 UInt getEncCABACTableIdx() { return m_encCABACTableIdx; } 1016 #if POZNAN_CABAC_INIT_FLAG_FIX1084 #if FIX_POZNAN_CABAC_INIT_FLAG 1017 1085 Void setEncPrevPOC(UInt uiPOC) { m_encPrevPOC = uiPOC; } 1018 1086 UInt getEncPrevPOC() { return m_encPrevPOC; } … … 1217 1285 1218 1286 // access channel 1219 #if VIDYO_VPS_INTEGRATION 1287 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 1220 1288 TComVPS* m_pcVPS; 1289 #endif 1290 #if QC_IV_AS_LT_B0046 1291 Bool m_bWasLongTerm[2][MAX_NUM_REF+1]; //was long-term picture 1221 1292 #endif 1222 1293 TComSPS* m_pcSPS; … … 1293 1364 Int m_aaiCodedOffset[2][MAX_VIEW_NUM]; 1294 1365 1295 #if SONY_COLPIC_AVAILABILITY 1366 #if SONY_COLPIC_AVAILABILITY|QC_MVHEVC_B0046|VSP_N 1296 1367 Int m_iViewOrderIdx; 1368 #endif 1369 #if LGE_ILLUCOMP_B0045 1370 Bool m_bApplyIC; 1297 1371 #endif 1298 1372 … … 1318 1392 Void initTiles(); 1319 1393 1320 #if VIDYO_VPS_INTEGRATION 1394 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 1321 1395 Void setVPS ( TComVPS* pcVPS ) { m_pcVPS = pcVPS; } 1322 1396 TComVPS* getVPS () { return m_pcVPS; } 1323 1397 #endif 1398 #if QC_IV_AS_LT_B0046 1399 Void setWasLongTerm( Bool lt, RefPicList e, Int iRefIdx ) { m_bWasLongTerm[e][iRefIdx] = lt; } 1400 Bool getWasLongTerm( RefPicList e, Int iRefIdx ) { return m_bWasLongTerm[e][iRefIdx] ; } 1401 #endif 1402 1324 1403 Void setSPS ( TComSPS* pcSPS ) { m_pcSPS = pcSPS; } 1325 1404 TComSPS* getSPS () { return m_pcSPS; } … … 1389 1468 Int getRefViewId ( RefPicList e, Int iRefIdx) { return m_aiRefViewIdList[e][iRefIdx]; } 1390 1469 TComPic* getTexturePic () const { return m_pcTexturePic; } 1391 #if SONY_COLPIC_AVAILABILITY 1470 #if SONY_COLPIC_AVAILABILITY || VSP_N 1392 1471 Int getViewOrderIdx () { return m_iViewOrderIdx; } 1393 1472 #endif … … 1441 1520 Void setRefViewId ( Int i, RefPicList e, Int iRefIdx ) { m_aiRefViewIdList[e][iRefIdx] = i; } 1442 1521 Void setTexturePic ( TComPic *pcTexturePic ) { m_pcTexturePic = pcTexturePic; } 1443 #if SONY_COLPIC_AVAILABILITY 1522 #if SONY_COLPIC_AVAILABILITY || VSP_N 1444 1523 Void setViewOrderIdx ( Int i ) { m_iViewOrderIdx = i; } 1445 1524 #endif … … 1598 1677 Void setViewId( Int viewId ) { m_viewId = viewId; } 1599 1678 Int getViewId() { return m_viewId; } 1679 #if QC_MVHEVC_B0046 1680 Void setViewOrderIdx(Int v, UInt layer) { m_iViewOrderIdx = v; } 1681 Int getViewOrderIdx() { return m_iViewOrderIdx; } 1682 #endif 1600 1683 Void setIsDepth( Bool isDepth ) { m_isDepth = isDepth; } 1601 1684 Bool getIsDepth() { return m_isDepth; } … … 1607 1690 Int* getInvCodedScale () { return m_aaiCodedScale [1]; } 1608 1691 Int* getInvCodedOffset () { return m_aaiCodedOffset[1]; } 1692 1693 #if LGE_ILLUCOMP_B0045 1694 Void setApplyIC ( Bool b ) { m_bApplyIC = b; } 1695 Bool getApplyIC () { return m_bApplyIC; } 1696 Void xSetApplyIC (); 1697 #endif 1609 1698 1610 1699 #if FORCE_REF_VSP … … 1679 1768 } 1680 1769 1770 #if QC_MVHEVC_B0046 1771 Void clearPSList() 1772 { 1773 m_paramsetMap.clear(); 1774 } 1775 #endif 1681 1776 private: 1682 1777 std::map<Int,T *> m_paramsetMap; … … 1689 1784 ParameterSetManager(); 1690 1785 virtual ~ParameterSetManager(); 1691 #if VIDYO_VPS_INTEGRATION 1786 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 1692 1787 //! store video parameter set and take ownership of it 1693 1788 Void storeVPS(TComVPS *vps) { m_vpsMap.storePS( vps->getVPSId(), vps); }; … … 1695 1790 TComVPS* getVPS(Int vpsId) { return m_vpsMap.getPS(vpsId); }; 1696 1791 TComVPS* getFirstVPS() { return m_vpsMap.getFirstPS(); }; 1792 #if QC_MVHEVC_B0046 1793 Void clearVPS() { m_vpsMap.clearPSList(); }; 1794 Void clearSPS() { m_spsMap.clearPSList(); }; 1795 Void clearPPS() { m_ppsMap.clearPSList(); }; 1796 #endif 1697 1797 #endif 1698 1798 //! store sequence parameter set and take ownership of it … … 1717 1817 ParameterSetMap<TComPPS> m_ppsMap; 1718 1818 ParameterSetMap<TComAPS> m_apsMap; 1719 #if VIDYO_VPS_INTEGRATION 1819 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 1720 1820 ParameterSetMap<TComVPS> m_vpsMap; 1721 1821 #endif
Note: See TracChangeset for help on using the changeset viewer.