Changeset 561 in SHVCSoftware for branches/SHM-5.0-dev/source
- Timestamp:
- 27 Jan 2014, 17:27:45 (11 years ago)
- Location:
- branches/SHM-5.0-dev/source/Lib
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-5.0-dev/source/Lib/TLibCommon/TComSlice.cpp
r560 r561 2384 2384 , m_vuiParameters () 2385 2385 #if SVC_EXTENSION 2386 #if M0463_VUI_EXT_ILP_REF2387 , m_interViewMvVertConstraintFlag (false)2388 , m_numIlpRestrictedRefLayers ( 0 )2389 #endif2390 2386 , m_layerId ( 0 ) 2391 2387 , m_numScaledRefLayerOffsets ( 0 ) … … 2411 2407 ::memset(m_ltRefPicPocLsbSps, 0, sizeof(m_ltRefPicPocLsbSps)); 2412 2408 ::memset(m_usedByCurrPicLtSPSFlag, 0, sizeof(m_usedByCurrPicLtSPSFlag)); 2413 #if M0463_VUI_EXT_ILP_REF2414 for (Int i = 0; i < MAX_LAYERS; i++ )2415 {2416 m_minSpatialSegmentOffsetPlus1[ i ] = 0;2417 m_ctuBasedOffsetEnabledFlag [ i ] = false;2418 m_minHorizontalCtuOffsetPlus1 [ i ] = 0;2419 }2420 #endif2421 2409 } 2422 2410 -
branches/SHM-5.0-dev/source/Lib/TLibCommon/TComSlice.h
r560 r561 1323 1323 1324 1324 #if SVC_EXTENSION 1325 #if M0463_VUI_EXT_ILP_REF1326 Bool m_interViewMvVertConstraintFlag;1327 Int m_numIlpRestrictedRefLayers ;1328 Int m_minSpatialSegmentOffsetPlus1[MAX_LAYERS];1329 Bool m_ctuBasedOffsetEnabledFlag [MAX_LAYERS];1330 Int m_minHorizontalCtuOffsetPlus1 [MAX_LAYERS];1331 #endif1332 1333 1325 UInt m_layerId; 1334 1326 … … 1496 1488 1497 1489 #if SVC_EXTENSION 1498 #if M0463_VUI_EXT_ILP_REF1499 Void setInterViewMvVertConstraintFlag(Bool val) { m_interViewMvVertConstraintFlag = val; }1500 Bool getInterViewMvVertConstraintFlag() { return m_interViewMvVertConstraintFlag;}1501 1502 //// sps_extension_vui_parameters( )1503 Void setNumIlpRestrictedRefLayers ( Int val ) { m_numIlpRestrictedRefLayers = val;}1504 Int getNumIlpRestrictedRefLayers ( ) { return m_numIlpRestrictedRefLayers ;}1505 1506 Void setMinSpatialSegmentOffsetPlus1( Int i, Int val ) { m_minSpatialSegmentOffsetPlus1[ i ] = val;}1507 Int getMinSpatialSegmentOffsetPlus1( Int i ) { return m_minSpatialSegmentOffsetPlus1[ i ];}1508 1509 Void setCtuBasedOffsetEnabledFlag ( Int i, Bool flag ) { m_ctuBasedOffsetEnabledFlag [ i ] = flag;}1510 Bool getCtuBasedOffsetEnabledFlag ( Int i ) { return m_ctuBasedOffsetEnabledFlag [ i ];}1511 1512 Void setMinHorizontalCtuOffsetPlus1 ( Int i, Int val ) { m_minHorizontalCtuOffsetPlus1 [ i ] = val;}1513 Int getMinHorizontalCtuOffsetPlus1 ( Int i ) { return m_minHorizontalCtuOffsetPlus1 [ i ];}1514 #endif1515 1490 Void setLayerId(UInt layerId) { m_layerId = layerId; } 1516 1491 UInt getLayerId() { return m_layerId; } -
branches/SHM-5.0-dev/source/Lib/TLibCommon/TypeDef.h
r560 r561 85 85 86 86 #define SCALINGLIST_INFERRING 1 ///< JCTVC-N0371: inter-layer scaling list 87 #define M0463_VUI_EXT_ILP_REF 0 ///< JCTVC-M0463: VUI extension inter-layer dependency offset signalling88 87 #define SPS_EXTENSION 1 ///< Define sps_extension() syntax structure 89 88 #if SPS_EXTENSION -
branches/SHM-5.0-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r560 r561 836 836 } 837 837 } 838 #if M0463_VUI_EXT_ILP_REF839 //// sps_extension_vui_parameters( )840 if( pcSPS->getVuiParameters()->getBitstreamRestrictionFlag() )841 {842 READ_UVLC( uiCode, "num_ilp_restricted_ref_layers" ); pcSPS->setNumIlpRestrictedRefLayers( uiCode );843 for( Int i = 0; i < pcSPS->getNumIlpRestrictedRefLayers( ); i++ )844 {845 READ_UVLC( uiCode, "min_spatial_segment_offset_plus1" ); pcSPS->setMinSpatialSegmentOffsetPlus1( i, uiCode );846 if( pcSPS->getMinSpatialSegmentOffsetPlus1( i ) > 0 )847 {848 READ_FLAG( uiCode, "ctu_based_offset_enabled_flag[ i ]"); pcSPS->setCtuBasedOffsetEnabledFlag(i, uiCode == 1 );849 if( pcSPS->getCtuBasedOffsetEnabledFlag( i ) )850 {851 READ_UVLC( uiCode, "min_horizontal_ctu_offset_plus1[ i ]"); pcSPS->setMinHorizontalCtuOffsetPlus1( i, uiCode );852 }853 }854 }855 }856 //// sps_extension_vui_parameters( ) END857 #endif858 838 } 859 839 #endif -
branches/SHM-5.0-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r560 r561 642 642 } 643 643 } 644 #if M0463_VUI_EXT_ILP_REF645 //// sps_extension_vui_parameters( )646 if( pcSPS->getVuiParameters()->getBitstreamRestrictionFlag() )647 {648 WRITE_UVLC( pcSPS->getNumIlpRestrictedRefLayers( ), "num_ilp_restricted_ref_layers" );649 for( Int i = 0; i < pcSPS->getNumIlpRestrictedRefLayers( ); i++ )650 {651 WRITE_UVLC( pcSPS->getMinSpatialSegmentOffsetPlus1( i ), "min_spatial_segment_offset_plus1" );652 if( pcSPS->getMinSpatialSegmentOffsetPlus1( i ) > 0 )653 {654 WRITE_FLAG( pcSPS->getCtuBasedOffsetEnabledFlag( i ), "ctu_based_offset_enabled_flag[ i ]");655 if( pcSPS->getCtuBasedOffsetEnabledFlag( i ) )656 {657 WRITE_UVLC( pcSPS->getMinHorizontalCtuOffsetPlus1( i ), "min_horizontal_ctu_offset_plus1[ i ]");658 }659 }660 }661 }662 //// sps_extension_vui_parameters( ) END663 #endif664 644 } 665 645 #endif
Note: See TracChangeset for help on using the changeset viewer.