Changeset 674 in SHVCSoftware for branches/SHM-6-dev
- Timestamp:
- 14 Apr 2014, 18:56:22 (11 years ago)
- Location:
- branches/SHM-6-dev/source
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-6-dev/source/App/TAppEncoder/TAppEncTop.cpp
r663 r674 989 989 vps->setMaxLayerId(m_numLayers - 1); // Set max-layer ID 990 990 991 vps->setVpsExtensionFlag( m_numLayers > 1 ? true : false ); 992 991 993 vps->setNumLayerSets(m_numLayers); 992 994 for(Int setId = 1; setId < vps->getNumLayerSets(); setId++) -
branches/SHM-6-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r673 r674 977 977 } 978 978 } 979 980 #if VPS_EXTNS 979 981 READ_FLAG( uiCode, "vps_extension_flag" ); pcVPS->setVpsExtensionFlag( uiCode ? true : false ); 980 982 983 // When MaxLayersMinus1 is greater than 0, vps_extension_flag shall be equal to 1. 984 if( pcVPS->getMaxLayers() > 1 ) 985 { 986 assert( pcVPS->getVpsExtensionFlag() == true ); 987 } 988 981 989 if( pcVPS->getVpsExtensionFlag() ) 982 990 { 983 #if VPS_EXTNS984 991 while ( m_pcBitstream->getNumBitsRead() % 8 != 0 ) 985 992 { … … 995 1002 } 996 1003 } 997 #else998 while ( xMoreRbspData() )999 {1000 READ_FLAG( uiCode, "vps_extension_data_flag");1001 }1002 #endif1003 1004 } 1004 1005 else … … 1007 1008 defaultVPSExtension(pcVPS); 1008 1009 } 1010 #else 1011 READ_FLAG( uiCode, "vps_extension_flag" ); 1012 if (uiCode) 1013 { 1014 while ( xMoreRbspData() ) 1015 { 1016 READ_FLAG( uiCode, "vps_extension_data_flag"); 1017 } 1018 } 1019 #endif 1009 1020 1010 1021 return; -
branches/SHM-6-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r672 r674 777 777 } 778 778 } 779 #if !VPS_EXTNS 780 WRITE_FLAG( 0, "vps_extension_flag" ); 781 #else 782 pcVPS->setVpsExtensionFlag(true); 779 #if VPS_EXTNS 780 // When MaxLayersMinus1 is greater than 0, vps_extension_flag shall be equal to 1. 781 if( pcVPS->getMaxLayers() > 1 ) 782 { 783 assert( pcVPS->getVpsExtensionFlag() == true ); 784 } 785 783 786 WRITE_FLAG( pcVPS->getVpsExtensionFlag() ? 1 : 0, "vps_extension_flag" ); 784 787 … … 799 802 WRITE_FLAG( 0, "vps_extension2_flag" ); // Flag value of 1 reserved 800 803 } 804 #else 805 WRITE_FLAG( 0, "vps_extension_flag" ); 801 806 #endif 802 807 //future extensions here..
Note: See TracChangeset for help on using the changeset viewer.