Changeset 1030 in SHVCSoftware for branches/SHM-dev/source/Lib
- Timestamp:
- 26 Feb 2015, 23:22:07 (11 years ago)
- Location:
- branches/SHM-dev/source/Lib
- Files:
-
- 7 edited
-
TLibCommon/TComDataCU.cpp (modified) (2 diffs)
-
TLibCommon/TComSlice.cpp (modified) (4 diffs)
-
TLibCommon/TComSlice.h (modified) (2 diffs)
-
TLibDecoder/TDecCAVLC.cpp (modified) (1 diff)
-
TLibEncoder/TEncCavlc.cpp (modified) (1 diff)
-
TLibEncoder/TEncTop.cpp (modified) (5 diffs)
-
TLibEncoder/TEncTop.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibCommon/TComDataCU.cpp
r1029 r1030 3430 3430 #if MOVE_SCALED_OFFSET_TO_PPS 3431 3431 #if O0098_SCALED_REF_LAYER_ID 3432 Int leftStartL = baseColPic->getSlice(0)->getPPS()->getScaledRefLayerWindowForLayer(baseColPic->getSlice(0)->getVPS()->getRefLayerId(getSlice()->getLayerId(), refLayerIdc)).getWindowLeftOffset();3433 Int topStartL = baseColPic->getSlice(0)->getPPS()->getScaledRefLayerWindowForLayer(baseColPic->getSlice(0)->getVPS()->getRefLayerId(getSlice()->getLayerId(), refLayerIdc)).getWindowTopOffset();3432 Int leftStartL = m_pcSlice->getPPS()->getScaledRefLayerWindowForLayer(baseColPic->getSlice(0)->getVPS()->getRefLayerId(getSlice()->getLayerId(), refLayerIdc)).getWindowLeftOffset(); 3433 Int topStartL = m_pcSlice->getPPS()->getScaledRefLayerWindowForLayer(baseColPic->getSlice(0)->getVPS()->getRefLayerId(getSlice()->getLayerId(), refLayerIdc)).getWindowTopOffset(); 3434 3434 #else 3435 3435 Int leftStartL = baseColPic->getSlice(0)->getPPS()->getScaledRefLayerWindow(refLayerIdc).getWindowLeftOffset(); … … 3447 3447 3448 3448 #if REF_REGION_OFFSET 3449 const Window &windowRL = baseColPic->getSlice(0)->getPPS()->getRefLayerWindow(refLayerIdc);3449 const Window &windowRL = m_pcSlice->getPPS()->getRefLayerWindow(refLayerIdc); 3450 3450 Int iBX = (((uiPelX - leftStartL)*g_posScalingFactor[refLayerIdc][0] + (1<<15)) >> 16) + windowRL.getWindowLeftOffset(); 3451 3451 Int iBY = (((uiPelY - topStartL )*g_posScalingFactor[refLayerIdc][1] + (1<<15)) >> 16) + windowRL.getWindowTopOffset(); -
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.cpp
r1029 r1030 2538 2538 #endif 2539 2539 #if MOVE_SCALED_OFFSET_TO_PPS 2540 , m_num ScaledRefLayerOffsets ( 0 )2540 , m_numRefLayerLocationOffsets ( 0 ) 2541 2541 #endif 2542 2542 #if Q0048_CGS_3D_ASYMLUT … … 3234 3234 static Window win; 3235 3235 3236 for (Int i = 0; i < m_num ScaledRefLayerOffsets; i++)3237 { 3238 if (layerId == m_ scaledRefLayerId[i])3236 for (Int i = 0; i < m_numRefLayerLocationOffsets; i++) 3237 { 3238 if (layerId == m_refLocationOffsetLayerId[i]) 3239 3239 { 3240 3240 return m_scaledRefLayerWindow[i]; … … 3251 3251 static Window win; 3252 3252 3253 for (Int i = 0; i < m_num ScaledRefLayerOffsets; i++)3254 { 3255 if (layerId == m_ scaledRefLayerId[i])3253 for (Int i = 0; i < m_numRefLayerLocationOffsets; i++) 3254 { 3255 if (layerId == m_refLocationOffsetLayerId[i]) 3256 3256 { 3257 3257 return m_refLayerWindow[i]; … … 4277 4277 pcIlpPic[refLayerIdc]->setIsLongTerm(1); 4278 4278 4279 // assign PPS to IRLP to be used for reference location offsets 4280 pcIlpPic[refLayerIdc]->getSlice(0)->setPPS( m_pcPic->getSlice(0)->getPPS() ); 4281 4279 4282 #if REF_IDX_MFM 4280 4283 if( m_bMFMEnabledFlag && !(m_eNalUnitType >= NAL_UNIT_CODED_SLICE_BLA_W_LP && m_eNalUnitType <= NAL_UNIT_CODED_SLICE_CRA) ) -
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h
r1029 r1030 2053 2053 #endif 2054 2054 #if MOVE_SCALED_OFFSET_TO_PPS 2055 UInt m_num ScaledRefLayerOffsets;2055 UInt m_numRefLayerLocationOffsets; 2056 2056 #if O0098_SCALED_REF_LAYER_ID 2057 UInt m_ scaledRefLayerId[MAX_LAYERS];2057 UInt m_refLocationOffsetLayerId[MAX_LAYERS]; 2058 2058 #endif 2059 2059 Window m_scaledRefLayerWindow[MAX_LAYERS]; … … 2221 2221 #endif 2222 2222 #if MOVE_SCALED_OFFSET_TO_PPS 2223 UInt getNum ScaledRefLayerOffsets() { return m_numScaledRefLayerOffsets; }2224 Void setNum ScaledRefLayerOffsets(Int x) { m_numScaledRefLayerOffsets = x; }2223 UInt getNumRefLayerLocationOffsets() { return m_numRefLayerLocationOffsets; } 2224 Void setNumRefLayerLocationOffsets(Int x) { m_numRefLayerLocationOffsets = x; } 2225 2225 #if O0098_SCALED_REF_LAYER_ID 2226 UInt get ScaledRefLayerId(Int x) { return m_scaledRefLayerId[x]; }2227 Void set ScaledRefLayerId(Int x, UInt id) { m_scaledRefLayerId[x] = id; }2226 UInt getRefLocationOffsetLayerId(Int x) { return m_refLocationOffsetLayerId[x]; } 2227 Void setRefLocationOffsetLayerId(Int x, UInt id) { m_refLocationOffsetLayerId[x] = id; } 2228 2228 Window& getScaledRefLayerWindowForLayer( Int layerId ); 2229 2229 #endif -
branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r1029 r1030 412 412 413 413 #if REF_REGION_OFFSET 414 READ_UVLC( uiCode, "num_ref_loc_offsets" ); pcPPS->setNum ScaledRefLayerOffsets(uiCode);415 for(Int k = 0; k < pcPPS->getNum ScaledRefLayerOffsets(); k++)414 READ_UVLC( uiCode, "num_ref_loc_offsets" ); pcPPS->setNumRefLayerLocationOffsets(uiCode); 415 for(Int k = 0; k < pcPPS->getNumRefLayerLocationOffsets(); k++) 416 416 { 417 READ_CODE( 6, uiCode, "ref_loc_offset_layer_id" ); pcPPS->set ScaledRefLayerId( k, uiCode );417 READ_CODE( 6, uiCode, "ref_loc_offset_layer_id" ); pcPPS->setRefLocationOffsetLayerId( k, uiCode ); 418 418 READ_FLAG( uiCode, "scaled_ref_layer_offset_present_flag" ); pcPPS->setScaledRefLayerOffsetPresentFlag( k, uiCode ); 419 419 if (uiCode) -
branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r1029 r1030 317 317 318 318 #if REF_REGION_OFFSET 319 WRITE_UVLC( pcPPS->getNum ScaledRefLayerOffsets(), "num_ref_loc_offsets" );320 for(Int k = 0; k < pcPPS->getNum ScaledRefLayerOffsets(); k++)319 WRITE_UVLC( pcPPS->getNumRefLayerLocationOffsets(), "num_ref_loc_offsets" ); 320 for(Int k = 0; k < pcPPS->getNumRefLayerLocationOffsets(); k++) 321 321 { 322 WRITE_CODE( pcPPS->get ScaledRefLayerId(k), 6, "ref_loc_offset_layer_id" );322 WRITE_CODE( pcPPS->getRefLocationOffsetLayerId(k), 6, "ref_loc_offset_layer_id" ); 323 323 WRITE_FLAG( pcPPS->getScaledRefLayerOffsetPresentFlag(k) ? 1 : 0, "scaled_ref_layer_offset_prsent_flag" ); 324 324 if (pcPPS->getScaledRefLayerOffsetPresentFlag(k)) -
branches/SHM-dev/source/Lib/TLibEncoder/TEncTop.cpp
r1029 r1030 84 84 m_bMFMEnabledFlag = false; 85 85 #endif 86 m_num ScaledRefLayerOffsets = 0;86 m_numRefLayerLocationOffsets = 0; 87 87 #if POC_RESET_FLAG || POC_RESET_IDC_ENCODER 88 88 m_pocAdjustmentValue = 0; … … 1151 1151 #endif 1152 1152 #if MOVE_SCALED_OFFSET_TO_PPS 1153 m_cPPS.setNum ScaledRefLayerOffsets(m_numScaledRefLayerOffsets);1154 for(Int i = 0; i < m_cPPS.getNum ScaledRefLayerOffsets(); i++)1153 m_cPPS.setNumRefLayerLocationOffsets(m_numRefLayerLocationOffsets); 1154 for(Int i = 0; i < m_cPPS.getNumRefLayerLocationOffsets(); i++) 1155 1155 { 1156 1156 #if O0098_SCALED_REF_LAYER_ID 1157 m_cPPS.set ScaledRefLayerId(i, m_scaledRefLayerId[i]);1157 m_cPPS.setRefLocationOffsetLayerId(i, m_refLocationOffsetLayerId[i]); 1158 1158 #endif 1159 1159 m_cPPS.getScaledRefLayerWindow(i) = m_scaledRefLayerWindow[i]; … … 1165 1165 #if R0209_GENERIC_PHASE 1166 1166 m_cPPS.setResamplePhaseSetPresentFlag( i, m_resamplePhaseSetPresentFlag[i] ); 1167 m_cPPS.setPhaseHorLuma( m_ scaledRefLayerId[i], m_phaseHorLuma[i] );1168 m_cPPS.setPhaseVerLuma( m_ scaledRefLayerId[i], m_phaseVerLuma[i] );1169 m_cPPS.setPhaseHorChroma( m_ scaledRefLayerId[i], m_phaseHorChroma[i] );1170 m_cPPS.setPhaseVerChroma( m_ scaledRefLayerId[i], m_phaseVerChroma[i] );1167 m_cPPS.setPhaseHorLuma( m_refLocationOffsetLayerId[i], m_phaseHorLuma[i] ); 1168 m_cPPS.setPhaseVerLuma( m_refLocationOffsetLayerId[i], m_phaseVerLuma[i] ); 1169 m_cPPS.setPhaseHorChroma( m_refLocationOffsetLayerId[i], m_phaseHorChroma[i] ); 1170 m_cPPS.setPhaseVerChroma( m_refLocationOffsetLayerId[i], m_phaseVerChroma[i] ); 1171 1171 #endif 1172 1172 #if P0312_VERT_PHASE_ADJ … … 1678 1678 static Window win; 1679 1679 1680 for (Int i = 0; i < m_num ScaledRefLayerOffsets; i++)1681 { 1682 if (layerId == m_ scaledRefLayerId[i])1680 for (Int i = 0; i < m_numRefLayerLocationOffsets; i++) 1681 { 1682 if (layerId == m_refLocationOffsetLayerId[i]) 1683 1683 { 1684 1684 return m_scaledRefLayerWindow[i]; … … 1694 1694 static Window win; 1695 1695 1696 for (Int i = 0; i < m_num ScaledRefLayerOffsets; i++)1696 for (Int i = 0; i < m_numRefLayerLocationOffsets; i++) 1697 1697 { 1698 1698 if (layerId == m_refLayerId[i]) -
branches/SHM-dev/source/Lib/TLibEncoder/TEncTop.h
r1029 r1030 122 122 Bool m_bMFMEnabledFlag; 123 123 #endif 124 UInt m_num ScaledRefLayerOffsets;124 UInt m_numRefLayerLocationOffsets; 125 125 #if O0098_SCALED_REF_LAYER_ID 126 UInt m_ scaledRefLayerId[MAX_LAYERS];126 UInt m_refLocationOffsetLayerId[MAX_LAYERS]; 127 127 #endif 128 128 Window m_scaledRefLayerWindow[MAX_LAYERS]; … … 224 224 Int getNumPicRcvd () { return m_iNumPicRcvd; } 225 225 Void setNumPicRcvd ( Int num ) { m_iNumPicRcvd = num; } 226 Void setNum ScaledRefLayerOffsets(Int x) { m_numScaledRefLayerOffsets = x; }227 UInt getNum ScaledRefLayerOffsets() { return m_numScaledRefLayerOffsets; }226 Void setNumRefLayerLocationOffsets(Int x) { m_numRefLayerLocationOffsets = x; } 227 UInt getNumRefLayerLocationOffsets() { return m_numRefLayerLocationOffsets; } 228 228 #if O0098_SCALED_REF_LAYER_ID 229 Void set ScaledRefLayerId(Int x, UInt id) { m_scaledRefLayerId[x] = id; }230 UInt get ScaledRefLayerId(Int x) { return m_scaledRefLayerId[x]; }229 Void setRefLocationOffsetLayerId(Int x, UInt id) { m_refLocationOffsetLayerId[x] = id; } 230 UInt getRefLocationOffsetLayerId(Int x) { return m_refLocationOffsetLayerId[x]; } 231 231 Window& getScaledRefLayerWindowForLayer(Int layerId); 232 232 #endif
Note: See TracChangeset for help on using the changeset viewer.