Changeset 297 in SHVCSoftware for branches/SHM-2.1-dev/source/Lib/TLibEncoder
- Timestamp:
- 20 Jun 2013, 22:40:50 (11 years ago)
- Location:
- branches/SHM-2.1-dev/source/Lib/TLibEncoder
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-2.1-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r296 r297 1119 1119 } 1120 1120 } 1121 #if M0457_IL_SAMPLE_PRED_ONLY_FLAG 1122 if( pcSlice->getNumSamplePredRefLayers() > 0 && pcSlice->getActiveNumILRRefIdx() > 0 ) 1123 { 1124 WRITE_FLAG( pcSlice->getInterLayerSamplePredOnlyFlag(), "inter_layer_sample_pred_only_flag" ); 1125 } 1126 #endif 1121 1127 #endif 1122 1128 -
branches/SHM-2.1-dev/source/Lib/TLibEncoder/TEncCu.cpp
r282 r297 463 463 if(pcSlice->getSliceType() == B_SLICE && pcSlice->getNumRefIdx(REF_PIC_LIST_0) == pcSlice->getActiveNumILRRefIdx() && pcSlice->getNumRefIdx(REF_PIC_LIST_1) == pcSlice->getActiveNumILRRefIdx()) 464 464 testInter = false; 465 #if M0457_IL_SAMPLE_PRED_ONLY_FLAG 466 if( pcSlice->getInterLayerSamplePredOnlyFlag() ) 467 testInter = false; 468 #endif 465 469 } 466 470 #endif -
branches/SHM-2.1-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r296 r297 539 539 #endif 540 540 541 #if M0457_IL_SAMPLE_PRED_ONLY_FLAG 542 pcSlice->setNumSamplePredRefLayers( m_pcEncTop->getNumSamplePredRefLayers() ); 543 pcSlice->setInterLayerSamplePredOnlyFlag( 0 ); 544 if( pcSlice->getNumSamplePredRefLayers() > 0 && pcSlice->getActiveNumILRRefIdx() > 0 ) 545 { 546 if( m_pcEncTop->getIlSampleOnlyPred() > 0 ) 547 { 548 pcSlice->setInterLayerSamplePredOnlyFlag( true ); 549 } 550 } 551 #endif 552 541 553 pcSlice->setLastIDR(m_iLastIDR); 542 554 pcSlice->setSliceIdx(0); … … 923 935 #endif 924 936 937 #if M0457_IL_SAMPLE_PRED_ONLY_FLAG 938 if (pcSlice->getSliceType() == B_SLICE && m_pcEncTop->getIlSampleOnlyPred() == 0) 939 #else 925 940 if (pcSlice->getSliceType() == B_SLICE) 941 #endif 926 942 { 927 943 #if !REF_IDX_FRAMEWORK -
branches/SHM-2.1-dev/source/Lib/TLibEncoder/TEncTop.h
r288 r297 139 139 Bool m_bMFMEnabledFlag; 140 140 #endif 141 #if M0457_IL_SAMPLE_PRED_ONLY_FLAG 142 Int m_ilSampleOnlyPred; 143 #endif 141 144 #if SCALED_REF_LAYER_OFFSETS 142 145 UInt m_numScaledRefLayerOffsets; … … 227 230 Bool getMFMEnabledFlag() {return m_bMFMEnabledFlag;} 228 231 #endif 232 #if M0457_IL_SAMPLE_PRED_ONLY_FLAG 233 Void setIlSampleOnlyPred( Int i ) { m_ilSampleOnlyPred = i; } 234 Int getIlSampleOnlyPred() { return m_ilSampleOnlyPred; } 235 #endif 229 236 #if AVC_SYNTAX 230 237 Void setBLSyntaxFile( fstream* pFile ) { m_pBLSyntaxFile = pFile; }
Note: See TracChangeset for help on using the changeset viewer.