Changeset 627 in SHVCSoftware for branches/SHM-5.1-dev/source/Lib/TLibEncoder
- Timestamp:
- 12 Mar 2014, 22:06:13 (12 years ago)
- Location:
- branches/SHM-5.1-dev/source/Lib/TLibEncoder
- Files:
-
- 5 edited
-
TEncCavlc.cpp (modified) (3 diffs)
-
TEncCfg.h (modified) (1 diff)
-
TEncGOP.cpp (modified) (3 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
r625 r627 663 663 WRITE_SVLC( scaledWindow.getWindowRightOffset() >> 1, "scaled_ref_layer_right_offset" ); 664 664 WRITE_SVLC( scaledWindow.getWindowBottomOffset() >> 1, "scaled_ref_layer_bottom_offset" ); 665 #if P0312_VERT_PHASE_ADJ 666 WRITE_FLAG( scaledWindow.getVertPhasePositionEnableFlag(), "vert_phase_pos_enable_flag" ); 667 #endif 665 668 } 666 669 } … … 1458 1461 } 1459 1462 } 1463 #endif 1464 1465 #if P0312_VERT_PHASE_ADJ 1466 WRITE_FLAG( vps->getVpsVuiVertPhaseInUseFlag(), "vps_vui_vert_phase_in_use_flag" ); 1460 1467 #endif 1461 1468 … … 1839 1846 } 1840 1847 } 1848 #if P0312_VERT_PHASE_ADJ 1849 for(Int i = 0; i < pcSlice->getActiveNumILRRefIdx(); i++ ) 1850 { 1851 if (pcSlice->getSPS()->getVertPhasePositionEnableFlag(pcSlice->getInterLayerPredLayerIdc(i))) 1852 { 1853 WRITE_FLAG( pcSlice->getVertPhasePositionFlag(i), "phase_pos_flag" ); 1854 } 1855 } 1856 #endif 1841 1857 #endif //SVC_EXTENSION 1842 1858 -
branches/SHM-5.1-dev/source/Lib/TLibEncoder/TEncCfg.h
r595 r627 386 386 387 387 Window &getConformanceWindow() { return m_conformanceWindow; } 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); } 390 #else 388 391 Void setConformanceWindow (Int confLeft, Int confRight, Int confTop, Int confBottom ) { m_conformanceWindow.setWindow (confLeft, confRight, confTop, confBottom); } 392 #endif 389 393 390 394 Void setFramesToBeEncoded ( Int i ) { m_framesToBeEncoded = i; } -
branches/SHM-5.1-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r620 r627 771 771 } 772 772 773 #if P0312_VERT_PHASE_ADJ 774 #if O0098_SCALED_REF_LAYER_ID 775 Window &scalEL = pcSlice->getSPS()->getScaledRefLayerWindowForLayer(pcSlice->getVPS()->getRefLayerId(m_layerId, refLayerIdc)); 776 #else 777 Window &scalEL = pcSlice->getSPS()->getScaledRefLayerWindow(refLayerIdc); 778 #endif 779 #else 773 780 #if O0098_SCALED_REF_LAYER_ID 774 781 const Window &scalEL = m_pcEncTop->getScaledRefLayerWindowForLayer(pcSlice->getVPS()->getRefLayerId(m_layerId, refLayerIdc)); … … 776 783 const Window &scalEL = m_pcEncTop->getScaledRefLayerWindow(refLayerIdc); 777 784 #endif 785 #endif 778 786 779 787 Int widthBL = pcSlice->getBaseColPic(refLayerIdc)->getPicYuvRec()->getWidth(); … … 797 805 Window scalEL = pcSlice->getSPS()->getScaledRefLayerWindow(refLayerIdc); 798 806 #endif*/ 807 #if P0312_VERT_PHASE_ADJ 808 //when PhasePositionEnableFlag is equal to 1, set vertPhasePositionFlag to 0 if BL is top field and 1 if bottom 809 if (scalEL.getVertPhasePositionEnableFlag()) 810 { 811 pcSlice->setVertPhasePositionFlag(pcSlice->getPOC()%2, i); 812 scalEL.setVertPhasePositionFlag (pcSlice->getVertPhasePositionFlag(i)); 813 } 814 #endif 799 815 #if O0215_PHASE_ALIGNMENT 800 816 #if O0194_JOINT_US_BITSHIFT -
branches/SHM-5.1-dev/source/Lib/TLibEncoder/TEncTop.cpp
r595 r627 902 902 #endif 903 903 m_cSPS.getScaledRefLayerWindow(i) = m_scaledRefLayerWindow[i]; 904 #if P0312_VERT_PHASE_ADJ 905 m_cSPS.setVertPhasePositionEnableFlag(i,m_scaledRefLayerWindow[i].getVertPhasePositionEnableFlag()); 906 #endif 904 907 } 905 908 #endif //SVC_EXTENSION -
branches/SHM-5.1-dev/source/Lib/TLibEncoder/TEncTop.h
r595 r627 139 139 #endif 140 140 Window m_scaledRefLayerWindow[MAX_LAYERS]; 141 #if P0312_VERT_PHASE_ADJ 142 Bool m_vertPhasePositionEnableFlag[MAX_LAYERS]; 143 #endif 141 144 #if POC_RESET_FLAG 142 145 Int m_pocAdjustmentValue; … … 226 229 #endif 227 230 Window& getScaledRefLayerWindow(Int x) { return m_scaledRefLayerWindow[x]; } 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]; } 234 #endif 235 228 236 TComPic** getIlpList() { return m_cIlpPic; } 229 237 #if REF_IDX_MFM
Note: See TracChangeset for help on using the changeset viewer.