Changeset 1148 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibEncoder
- Timestamp:
- 8 Jul 2015, 00:10:36 (10 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibEncoder
- Files:
-
- 5 edited
-
TEncCavlc.cpp (modified) (4 diffs)
-
TEncCfg.h (modified) (4 diffs)
-
TEncGOP.cpp (modified) (3 diffs)
-
TEncTop.cpp (modified) (4 diffs)
-
TEncTop.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r1146 r1148 2067 2067 #endif // VIEW_ID_RELATED_SIGNALING 2068 2068 2069 #if VPS_EXTN_DIRECT_REF_LAYERS2070 2069 for( Int layerCtr = 1; layerCtr < vps->getMaxLayers(); layerCtr++) 2071 2070 { … … 2075 2074 } 2076 2075 } 2077 #endif 2076 2078 2077 #if Q0078_ADD_LAYER_SETS 2079 2078 if (vps->getNumIndependentLayers() > 1) … … 2311 2310 codeVpsDpbSizeTable(vps); 2312 2311 #endif 2313 #if VPS_EXTN_DIRECT_REF_LAYERS 2312 2314 2313 WRITE_UVLC( vps->getDirectDepTypeLen()-2, "direct_dep_type_len_minus2"); 2315 2314 … … 2333 2332 } 2334 2333 } 2335 #endif2336 2334 2337 2335 #if P0307_VPS_NON_VUI_EXTENSION -
branches/SHM-dev/source/Lib/TLibEncoder/TEncCfg.h
r1131 r1148 378 378 Bool m_crossLayerBLAFlag; 379 379 #endif 380 #if VPS_EXTN_DIRECT_REF_LAYERS 380 381 381 Int m_numDirectRefLayers; 382 382 Int m_refLayerId[MAX_VPS_LAYER_IDX_PLUS1]; … … 390 390 Bool m_samplePredEnabledFlag[MAX_VPS_LAYER_IDX_PLUS1]; 391 391 Bool m_motionPredEnabledFlag[MAX_VPS_LAYER_IDX_PLUS1]; 392 #endif 392 393 393 Int m_maxTidIlRefPicsPlus1; 394 394 #if FAST_INTRA_SHVC … … 1032 1032 Void setUseFastIntraScalable ( Bool b ) { m_useFastIntraScalable = b; } 1033 1033 #endif 1034 #if VPS_EXTN_DIRECT_REF_LAYERS 1034 1035 1035 Int getNumDirectRefLayers () { return m_numDirectRefLayers; } 1036 1036 Void setNumDirectRefLayers (Int num) { m_numDirectRefLayers = num; } … … 1062 1062 Bool getMotionPredEnabledFlag (Int layerIdx) { return m_motionPredEnabledFlag[layerIdx]; } 1063 1063 Void setMotionPredEnabledFlag (Int layerIdx,Bool flag) { m_motionPredEnabledFlag[layerIdx] = flag; } 1064 #endif 1064 1065 1065 Int getMaxTidIlRefPicsPlus1 () { return m_maxTidIlRefPicsPlus1; } 1066 1066 Void setMaxTidIlRefPicsPlus1 (Int num) { m_maxTidIlRefPicsPlus1 = num; } -
branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r1147 r1148 1369 1369 UInt refLayerIdc = pcSlice->getInterLayerPredLayerIdc(i); 1370 1370 UInt refLayerId = pcSlice->getVPS()->getRefLayerId(m_layerId, refLayerIdc); 1371 #if VPS_EXTN_DIRECT_REF_LAYERS1372 1371 TComList<TComPic*> *cListPic = m_ppcTEncTop[pcSlice->getVPS()->getLayerIdxInVps(m_layerId)]->getRefLayerEnc(refLayerIdc)->getListPic(); 1373 #else 1374 TComList<TComPic*> *cListPic = m_ppcTEncTop[pcSlice->getVPS()->getLayerIdxInVps(m_layerId)-1]->getListPic(); 1375 #endif 1372 1376 1373 pcSlice->setBaseColPic( *cListPic, refLayerIdc ); 1377 1374 … … 3874 3871 { 3875 3872 #if SVC_EXTENSION 3876 #if VPS_EXTN_DIRECT_REF_LAYERS3877 3873 if( pcSlice->getRefPic(RefPicList(iRefList), iRefIndex)->isILR(m_layerId) ) 3878 3874 { … … 3896 3892 #endif 3897 3893 } 3898 #endif 3894 3899 3895 if( pcSlice->getEnableTMVPFlag() && iRefList == 1 - pcSlice->getColFromL0Flag() && iRefIndex == pcSlice->getColRefIdx() ) 3900 3896 { -
branches/SHM-dev/source/Lib/TLibEncoder/TEncTop.cpp
r1147 r1148 624 624 Bool zeroPhase = getPPS()->hasZeroResamplingPhase(m_cVPS.getRefLayerId(m_layerId, i)); 625 625 626 #if VPS_EXTN_DIRECT_REF_LAYERS627 626 TEncTop *pcEncTopBase = (TEncTop *)getRefLayerEnc( i ); 628 #else629 TEncTop *pcEncTopBase = (TEncTop *)getLayerEnc( m_layerId-1 );630 #endif631 627 #if O0194_DIFFERENT_BITDEPTH_EL_BL 632 628 UInt refLayerId = m_cVPS.getRefLayerId(m_layerId, i); … … 690 686 Bool zeroPhase = getPPS()->hasZeroResamplingPhase(m_cVPS.getRefLayerId(m_layerId, i)); 691 687 692 #if VPS_EXTN_DIRECT_REF_LAYERS693 688 TEncTop *pcEncTopBase = (TEncTop *)getRefLayerEnc( i ); 694 #else695 TEncTop *pcEncTopBase = (TEncTop *)getLayerEnc( m_layerId-1 );696 #endif697 689 #if O0194_DIFFERENT_BITDEPTH_EL_BL 698 690 UInt refLayerId = m_cVPS.getRefLayerId(m_layerId, i); … … 1432 1424 1433 1425 #if SVC_EXTENSION 1434 #if VPS_EXTN_DIRECT_REF_LAYERS1435 1426 TEncTop* TEncTop::getRefLayerEnc( UInt refLayerIdx ) 1436 1427 { … … 1442 1433 return (TEncTop *)getLayerEnc( m_cVPS.getLayerIdxInVps(m_cVPS.getRefLayerId( m_layerId, refLayerIdx )) ); 1443 1434 } 1444 #endif1445 1435 1446 1436 #if !REPN_FORMAT_IN_VPS -
branches/SHM-dev/source/Lib/TLibEncoder/TEncTop.h
r1147 r1148 253 253 Void encode ( TComPicYuv* pcPicYuvOrg, const InputColourSpaceConversion snrCSC, TComList<TComPicYuv*>& rcListPicYuvRecOut, std::list<AccessUnit>& accessUnitsOut, Int iPicIdInGOP, Bool isTff ); 254 254 Void encodePrep( TComPicYuv* pcPicYuvOrg, TComPicYuv* pcPicYuvTrueOrg, Bool isTff ); 255 #if VPS_EXTN_DIRECT_REF_LAYERS 255 256 256 TEncTop* getRefLayerEnc(UInt refLayerIdx); 257 #endif 257 258 258 #if POC_RESET_IDC_ENCODER 259 259 Int getPocAdjustmentValue() { return m_pocAdjustmentValue;}
Note: See TracChangeset for help on using the changeset viewer.