Changeset 1090 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h
- Timestamp:
- 1 Jul 2015, 00:53:31 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h
r1086 r1090 467 467 Int m_winTopOffset; 468 468 Int m_winBottomOffset; 469 #if P0312_VERT_PHASE_ADJ 470 Bool m_vertPhasePositionEnableFlag; 471 #endif 469 472 470 public: 473 471 Window() … … 477 475 , m_winTopOffset (0) 478 476 , m_winBottomOffset (0) 479 #if P0312_VERT_PHASE_ADJ480 , m_vertPhasePositionEnableFlag(false)481 #endif482 477 { } 483 478 484 479 Bool getWindowEnabledFlag() const { return m_enabledFlag; } 485 #if P0312_VERT_PHASE_ADJ486 Void resetWindow() { m_enabledFlag = false; m_winLeftOffset = m_winRightOffset = m_winTopOffset = m_winBottomOffset = 0; m_vertPhasePositionEnableFlag = false; }487 #else488 480 Void resetWindow() { m_enabledFlag = false; m_winLeftOffset = m_winRightOffset = m_winTopOffset = m_winBottomOffset = 0; } 489 #endif490 481 Int getWindowLeftOffset() const { return m_enabledFlag ? m_winLeftOffset : 0; } 491 482 Void setWindowLeftOffset(Int val) { m_winLeftOffset = val; m_enabledFlag = true; } … … 497 488 Void setWindowBottomOffset(Int val) { m_winBottomOffset = val; m_enabledFlag = true; } 498 489 499 #if P0312_VERT_PHASE_ADJ 500 Bool getVertPhasePositionEnableFlag() const { return m_vertPhasePositionEnableFlag; } 501 Void setVertPhasePositionEnableFlag(Bool val) { m_vertPhasePositionEnableFlag = val; } 502 #endif 503 #if REF_REGION_OFFSET && RESAMPLING_FIX 490 #if SVC_EXTENSION 504 491 Bool hasEqualOffset(const Window& ref) const 505 492 { … … 511 498 #endif 512 499 513 #if P0312_VERT_PHASE_ADJ514 Void setWindow(Int offsetLeft, Int offsetLRight, Int offsetLTop, Int offsetLBottom, Bool vertPhasePositionEnableFlag = 0)515 #else516 500 Void setWindow(Int offsetLeft, Int offsetLRight, Int offsetLTop, Int offsetLBottom) 517 #endif518 501 { 519 502 m_enabledFlag = true; … … 522 505 m_winTopOffset = offsetLTop; 523 506 m_winBottomOffset = offsetLBottom; 524 525 #if P0312_VERT_PHASE_ADJ526 m_vertPhasePositionEnableFlag = vertPhasePositionEnableFlag;527 #endif528 507 } 529 508 }; … … 797 776 Int m_constPicRateIdc [MAX_VPS_LAYER_SETS_PLUS1][MAX_TLAYER]; 798 777 Int m_avgPicRate [MAX_VPS_LAYER_SETS_PLUS1][MAX_TLAYER]; 799 800 #if P0312_VERT_PHASE_ADJ801 Bool m_vpsVuiVertPhaseInUseFlag;802 #endif803 778 804 779 #if P0300_ALT_OUTPUT_LAYER_FLAG … … 826 801 #endif 827 802 Int m_viewIdVal [MAX_LAYERS]; 828 #endif829 830 #if O0215_PHASE_ALIGNMENT831 Bool m_phaseAlignFlag;832 803 #endif 833 804 … … 1348 1319 #endif 1349 1320 1350 #if P0312_VERT_PHASE_ADJ1351 Bool getVpsVuiVertPhaseInUseFlag() { return m_vpsVuiVertPhaseInUseFlag; }1352 Void setVpsVuiVertPhaseInUseFlag(Bool x) { m_vpsVuiVertPhaseInUseFlag = x; }1353 #endif1354 1355 1321 #if P0300_ALT_OUTPUT_LAYER_FLAG 1356 1322 Bool getAltOuputLayerFlag(Int idx) { return m_altOutputLayerFlag[idx]; } … … 1397 1363 Void setExtensionOffset( UInt offset ) { m_extensionOffset = offset; } 1398 1364 #endif 1399 #endif1400 #if O0215_PHASE_ALIGNMENT1401 Bool getPhaseAlignFlag() { return m_phaseAlignFlag; }1402 Void setPhaseAlignFlag(Bool x) { m_phaseAlignFlag = x; }1403 1365 #endif 1404 1366 #if VPS_DPB_SIZE_TABLE … … 1727 1689 Int m_NumDirectRefLayers; 1728 1690 #endif 1729 #if P0312_VERT_PHASE_ADJ1730 Bool m_vertPhasePositionEnableFlag[MAX_LAYERS];1731 #endif1732 #if !MOVE_SCALED_OFFSET_TO_PPS1733 #if O0098_SCALED_REF_LAYER_ID1734 UInt m_scaledRefLayerId[MAX_LAYERS];1735 #endif1736 Window m_scaledRefLayerWindow[MAX_LAYERS];1737 #endif1738 1691 #if REPN_FORMAT_IN_VPS 1739 1692 Bool m_updateRepFormatFlag; … … 1912 1865 Void setNumDirectRefLayers(Int n) { m_NumDirectRefLayers = n; } 1913 1866 #endif 1914 #if !MOVE_SCALED_OFFSET_TO_PPS1915 UInt getNumScaledRefLayerOffsets() { return m_numScaledRefLayerOffsets; }1916 Void setNumScaledRefLayerOffsets(Int x) { m_numScaledRefLayerOffsets = x; }1917 #if P0312_VERT_PHASE_ADJ1918 Bool getVertPhasePositionEnableFlag(Int x) { return m_vertPhasePositionEnableFlag[x]; }1919 Void setVertPhasePositionEnableFlag(Int x, Bool b) { m_vertPhasePositionEnableFlag[x] = b; }1920 #endif1921 #if O0098_SCALED_REF_LAYER_ID1922 UInt getScaledRefLayerId(Int x) { return m_scaledRefLayerId[x]; }1923 Void setScaledRefLayerId(Int x, UInt id) { m_scaledRefLayerId[x] = id; }1924 Window& getScaledRefLayerWindowForLayer( Int layerId );1925 #endif1926 Window& getScaledRefLayerWindow( Int x ) { return m_scaledRefLayerWindow[x]; }1927 #endif1928 1867 #if REPN_FORMAT_IN_VPS 1929 1868 Bool getUpdateRepFormatFlag() { return m_updateRepFormatFlag; } … … 2047 1986 Bool m_pocResetInfoPresentFlag; 2048 1987 #endif 2049 #if MOVE_SCALED_OFFSET_TO_PPS2050 1988 UInt m_numRefLayerLocationOffsets; 2051 1989 #if O0098_SCALED_REF_LAYER_ID … … 2053 1991 #endif 2054 1992 Window m_scaledRefLayerWindow[MAX_LAYERS]; 2055 #if REF_REGION_OFFSET2056 1993 Window m_refLayerWindow[MAX_LAYERS]; 2057 1994 Bool m_scaledRefLayerOffsetPresentFlag[MAX_LAYERS]; 2058 1995 Bool m_refRegionOffsetPresentFlag[MAX_LAYERS]; 2059 #endif2060 #if R0209_GENERIC_PHASE2061 1996 Int m_phaseHorLuma[MAX_LAYERS]; 2062 1997 Int m_phaseVerLuma[MAX_LAYERS]; … … 2064 1999 Int m_phaseVerChroma[MAX_LAYERS]; 2065 2000 Bool m_resamplePhaseSetPresentFlag[MAX_LAYERS]; 2066 #endif2067 #endif2068 2001 #if Q0048_CGS_3D_ASYMLUT 2069 2002 Int m_nCGSFlag; … … 2215 2148 Void setPocResetInfoPresentFlag (const Bool val) { m_pocResetInfoPresentFlag = val; } 2216 2149 #endif 2217 #if MOVE_SCALED_OFFSET_TO_PPS2218 2150 UInt getNumRefLayerLocationOffsets() { return m_numRefLayerLocationOffsets; } 2219 2151 Void setNumRefLayerLocationOffsets(Int x) { m_numRefLayerLocationOffsets = x; } … … 2224 2156 #endif 2225 2157 Window& getScaledRefLayerWindow( Int x ) { return m_scaledRefLayerWindow[x]; } 2226 #if REF_REGION_OFFSET2227 2158 Window& getRefLayerWindowForLayer( Int layerId ); 2228 2159 Window& getRefLayerWindow( Int x ) { return m_refLayerWindow[x]; } … … 2231 2162 Bool getRefRegionOffsetPresentFlag(Int x) { return m_refRegionOffsetPresentFlag[x]; } 2232 2163 Void setRefRegionOffsetPresentFlag(Int x, Bool b) { m_refRegionOffsetPresentFlag[x] = b; } 2233 #endif2234 #if R0209_GENERIC_PHASE2235 2164 Int getPhaseHorLuma(Int x) { return m_phaseHorLuma[x]; } 2236 2165 Int getPhaseVerLuma(Int x) { return m_phaseVerLuma[x]; } … … 2243 2172 Bool getResamplePhaseSetPresentFlag(Int x) { return m_resamplePhaseSetPresentFlag[x]; } 2244 2173 Void setResamplePhaseSetPresentFlag(Int x, Bool b) { m_resamplePhaseSetPresentFlag[x] = b; } 2245 #if RESAMPLING_FIX2246 2174 Bool hasZeroResamplingPhase(Int refLayerId); 2247 2175 Void getResamplingPhase(Int refLayerId, Bool& phaseSetPresentFlag, Int& phaseHorLuma, Int& phaseVerLuma, Int& phaseHorChroma, Int& phaseVerChroma); 2248 #endif2249 #endif2250 #endif2251 2176 #if Q0048_CGS_3D_ASYMLUT 2252 2177 Int getCGSFlag() { return m_nCGSFlag; } … … 2405 2330 Int m_activeNumILRRefIdx; //< Active inter-layer reference pictures 2406 2331 Int m_interLayerPredLayerIdc [MAX_VPS_LAYER_IDX_PLUS1]; 2407 #if P0312_VERT_PHASE_ADJ2408 Bool m_vertPhasePositionFlag[MAX_VPS_LAYER_IDX_PLUS1];2409 #endif2410 2332 #if POC_RESET_FLAG 2411 2333 Bool m_bPocResetFlag; … … 2723 2645 Bool getInterLayerPredEnabledFlag () { return m_interLayerPredEnabledFlag;} 2724 2646 2725 #if P0312_VERT_PHASE_ADJ2726 Int getVertPhasePositionFlag (UInt layerIdx) { return m_vertPhasePositionFlag[layerIdx];}2727 Void setVertPhasePositionFlag (Bool b, UInt layerIdx) { m_vertPhasePositionFlag[layerIdx] = b; }2728 #endif2729 2730 2647 Void setNumMotionPredRefLayers(int i) { m_numMotionPredRefLayers = i; } 2731 2648 Int getNumMotionPredRefLayers() { return m_numMotionPredRefLayers; }
Note: See TracChangeset for help on using the changeset viewer.