Changeset 633 in SHVCSoftware for branches/SHM-5.1-dev/source/Lib/TLibEncoder
- Timestamp:
- 17 Mar 2014, 19:12:54 (12 years ago)
- Location:
- branches/SHM-5.1-dev/source/Lib/TLibEncoder
- Files:
-
- 5 edited
-
TEncCavlc.cpp (modified) (4 diffs)
-
TEncCfg.h (modified) (1 diff)
-
TEncGOP.cpp (modified) (2 diffs)
-
TEncTop.cpp (modified) (1 diff)
-
TEncTop.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-5.1-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r632 r633 661 661 WRITE_SVLC( scaledWindow.getWindowBottomOffset() >> 1, "scaled_ref_layer_bottom_offset" ); 662 662 #if P0312_VERT_PHASE_ADJ 663 WRITE_FLAG( scaledWindow.getVertPhasePositionEnableFlag(), "vert_phase_pos _enable_flag" );663 WRITE_FLAG( scaledWindow.getVertPhasePositionEnableFlag(), "vert_phase_position_enable_flag" ); 664 664 #endif 665 665 } … … 1460 1460 #endif 1461 1461 1462 #if P0312_VERT_PHASE_ADJ1463 WRITE_FLAG( vps->getVpsVuiVertPhaseInUseFlag(), "vps_vui_vert_phase_in_use_flag" );1464 #endif1465 1466 1462 #if O0109_O0199_FLAGS_TO_VUI 1467 1463 #if M0040_ADAPTIVE_RESOLUTION_CHANGE … … 1471 1467 WRITE_FLAG(vps->getHigherLayerIrapSkipFlag(), "higher_layer_irap_skip_flag" ); 1472 1468 #endif 1469 #endif 1470 #if P0312_VERT_PHASE_ADJ 1471 WRITE_FLAG( vps->getVpsVuiVertPhaseInUseFlag(), "vps_vui_vert_phase_in_use_flag" ); 1473 1472 #endif 1474 1473 #if N0160_VUI_EXT_ILP_REF … … 1887 1886 for(Int i = 0; i < pcSlice->getActiveNumILRRefIdx(); i++ ) 1888 1887 { 1889 if (pcSlice->getSPS()->getVertPhasePositionEnableFlag(pcSlice->getInterLayerPredLayerIdc(i))) 1890 { 1891 WRITE_FLAG( pcSlice->getVertPhasePositionFlag(i), "phase_pos_flag" ); 1888 UInt refLayerIdc = pcSlice->getInterLayerPredLayerIdc(i); 1889 if( pcSlice->getSPS()->getVertPhasePositionEnableFlag(refLayerIdc) ) 1890 { 1891 WRITE_FLAG( pcSlice->getVertPhasePositionFlag(refLayerIdc), "vert_phase_position_flag" ); 1892 1892 } 1893 1893 } -
branches/SHM-5.1-dev/source/Lib/TLibEncoder/TEncCfg.h
r627 r633 387 387 Window &getConformanceWindow() { return m_conformanceWindow; } 388 388 #if P0312_VERT_PHASE_ADJ 389 Void setConformanceWindow (Int confLeft, Int confRight, Int confTop, Int confBottom ) { m_conformanceWindow.setWindow (confLeft, confRight, confTop, confBottom, false , false); }389 Void setConformanceWindow (Int confLeft, Int confRight, Int confTop, Int confBottom ) { m_conformanceWindow.setWindow (confLeft, confRight, confTop, confBottom, false); } 390 390 #else 391 391 Void setConformanceWindow (Int confLeft, Int confRight, Int confTop, Int confBottom ) { m_conformanceWindow.setWindow (confLeft, confRight, confTop, confBottom); } -
branches/SHM-5.1-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r631 r633 795 795 } 796 796 797 #if P0312_VERT_PHASE_ADJ798 #if O0098_SCALED_REF_LAYER_ID799 Window &scalEL = pcSlice->getSPS()->getScaledRefLayerWindowForLayer(pcSlice->getVPS()->getRefLayerId(m_layerId, refLayerIdc));800 #else801 Window &scalEL = pcSlice->getSPS()->getScaledRefLayerWindow(refLayerIdc);802 #endif803 #else804 797 #if O0098_SCALED_REF_LAYER_ID 805 798 const Window &scalEL = m_pcEncTop->getScaledRefLayerWindowForLayer(pcSlice->getVPS()->getRefLayerId(m_layerId, refLayerIdc)); 806 799 #else 807 800 const Window &scalEL = m_pcEncTop->getScaledRefLayerWindow(refLayerIdc); 808 #endif809 801 #endif 810 802 … … 831 823 #if P0312_VERT_PHASE_ADJ 832 824 //when PhasePositionEnableFlag is equal to 1, set vertPhasePositionFlag to 0 if BL is top field and 1 if bottom 833 if (scalEL.getVertPhasePositionEnableFlag())825 if( scalEL.getVertPhasePositionEnableFlag() ) 834 826 { 835 pcSlice->setVertPhasePositionFlag(pcSlice->getPOC()%2, i); 836 scalEL.setVertPhasePositionFlag (pcSlice->getVertPhasePositionFlag(i)); 827 pcSlice->setVertPhasePositionFlag( pcSlice->getPOC()%2, refLayerIdc ); 837 828 } 838 829 #endif -
branches/SHM-5.1-dev/source/Lib/TLibEncoder/TEncTop.cpp
r627 r633 903 903 m_cSPS.getScaledRefLayerWindow(i) = m_scaledRefLayerWindow[i]; 904 904 #if P0312_VERT_PHASE_ADJ 905 m_cSPS.setVertPhasePositionEnableFlag( i,m_scaledRefLayerWindow[i].getVertPhasePositionEnableFlag());905 m_cSPS.setVertPhasePositionEnableFlag( m_scaledRefLayerId[i], m_scaledRefLayerWindow[i].getVertPhasePositionEnableFlag() ); 906 906 #endif 907 907 } -
branches/SHM-5.1-dev/source/Lib/TLibEncoder/TEncTop.h
r627 r633 216 216 /// encode several number of pictures until end-of-sequence 217 217 #if SVC_EXTENSION 218 Void setLayerEnc(TEncTop** p) {m_ppcTEncTop = p;}219 TEncTop** getLayerEnc() {return m_ppcTEncTop;}220 Int getPOCLast () { return m_iPOCLast;}221 Int getNumPicRcvd () { return m_iNumPicRcvd;}222 Void setNumPicRcvd ( Int num ) { m_iNumPicRcvd = num;}223 Void setNumScaledRefLayerOffsets(Int x) { m_numScaledRefLayerOffsets = x;}224 UInt getNumScaledRefLayerOffsets(){ return m_numScaledRefLayerOffsets; }218 Void setLayerEnc(TEncTop** p) { m_ppcTEncTop = p; } 219 TEncTop** getLayerEnc() { return m_ppcTEncTop; } 220 Int getPOCLast () { return m_iPOCLast; } 221 Int getNumPicRcvd () { return m_iNumPicRcvd; } 222 Void setNumPicRcvd ( Int num ) { m_iNumPicRcvd = num; } 223 Void setNumScaledRefLayerOffsets(Int x) { m_numScaledRefLayerOffsets = x; } 224 UInt getNumScaledRefLayerOffsets() { return m_numScaledRefLayerOffsets; } 225 225 #if O0098_SCALED_REF_LAYER_ID 226 Void setScaledRefLayerId(Int x, UInt id) { m_scaledRefLayerId[x] = id; }227 UInt getScaledRefLayerId(Int x) { return m_scaledRefLayerId[x]; }228 Window& getScaledRefLayerWindowForLayer(Int layerId);229 #endif 230 Window& getScaledRefLayerWindow(Int x) { return m_scaledRefLayerWindow[x];}226 Void setScaledRefLayerId(Int x, UInt id) { m_scaledRefLayerId[x] = id; } 227 UInt getScaledRefLayerId(Int x) { return m_scaledRefLayerId[x]; } 228 Window& getScaledRefLayerWindowForLayer(Int layerId); 229 #endif 230 Window& getScaledRefLayerWindow(Int x) { return m_scaledRefLayerWindow[x]; } 231 231 #if P0312_VERT_PHASE_ADJ 232 Void setVertPhasePositionEnableFlag(Int x, Bool b) { m_vertPhasePositionEnableFlag[x] = b;}233 UInt getVertPhasePositionEnableFlag(Int x) { return m_vertPhasePositionEnableFlag[x]; }232 Void setVertPhasePositionEnableFlag(Int x, Bool b) { m_vertPhasePositionEnableFlag[x] = b; } 233 UInt getVertPhasePositionEnableFlag(Int x) { return m_vertPhasePositionEnableFlag[x]; } 234 234 #endif 235 235 236 236 TComPic** getIlpList() { return m_cIlpPic; } 237 237 #if REF_IDX_MFM 238 Void setMFMEnabledFlag (Bool flag) { m_bMFMEnabledFlag = flag;}239 Bool getMFMEnabledFlag() { return m_bMFMEnabledFlag;}238 Void setMFMEnabledFlag (Bool flag) { m_bMFMEnabledFlag = flag; } 239 Bool getMFMEnabledFlag() { return m_bMFMEnabledFlag; } 240 240 #endif 241 241 #if O0194_WEIGHTED_PREDICTION_CGS … … 255 255 #endif 256 256 #if POC_RESET_FLAG 257 Int getPocAdjustmentValue() { return m_pocAdjustmentValue;}258 Void setPocAdjustmentValue(Int x) { m_pocAdjustmentValue = x; }257 Int getPocAdjustmentValue() { return m_pocAdjustmentValue;} 258 Void setPocAdjustmentValue(Int x) { m_pocAdjustmentValue = x; } 259 259 #endif 260 260 #if NO_CLRAS_OUTPUT_FLAG
Note: See TracChangeset for help on using the changeset viewer.