Changeset 760 in SHVCSoftware
- Timestamp:
- 30 Apr 2014, 00:44:54 (11 years ago)
- Location:
- branches/SHM-6-dev/source/Lib
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-6-dev/source/Lib/TLibCommon/TComSlice.cpp
r758 r760 3073 3073 , m_listsModificationPresentFlag( 0) 3074 3074 , m_numExtraSliceHeaderBits(0) 3075 #if SVC_EXTENSION 3076 , m_extensionFlag(false) 3075 3077 #if SCALINGLIST_INFERRING 3078 , m_layerId(0) 3076 3079 , m_inferScalingListFlag ( false ) 3077 3080 , m_scalingListRefLayerId ( 0 ) … … 3085 3088 , m_nCGSOutputBitDepthC(0) 3086 3089 #endif 3090 #endif //SVC_EXTENSION 3087 3091 { 3088 3092 m_scalingList = new TComScalingList; -
branches/SHM-6-dev/source/Lib/TLibCommon/TComSlice.h
r758 r760 1738 1738 1739 1739 #if SVC_EXTENSION 1740 Bool m_extensionFlag; 1740 1741 #if SCALINGLIST_INFERRING 1741 1742 UInt m_layerId; … … 1864 1865 1865 1866 #if SCALINGLIST_INFERRING 1866 UInt getLayerId() { return m_layerId; }1867 Void setLayerId( UInt layerId ) { m_layerId = layerId; }1868 Bool getInferScalingListFlag() { return m_inferScalingListFlag; }1869 UInt getScalingListRefLayerId() { return m_scalingListRefLayerId; }1870 Void setInferScalingListFlag( Bool flag ) { m_inferScalingListFlag = flag; }1871 Void setScalingListRefLayerId( UInt layerId ) { m_scalingListRefLayerId = layerId; }1872 #endif1873 1874 #if SCALINGLIST_INFERRING1875 1867 Void setScalingList( TComScalingList *scalingList ) { m_scalingList = scalingList; } 1876 1868 #else … … 1888 1880 Bool getSliceHeaderExtensionPresentFlag () { return m_sliceHeaderExtensionPresentFlag; } 1889 1881 Void setSliceHeaderExtensionPresentFlag (Bool val) { m_sliceHeaderExtensionPresentFlag = val; } 1882 #if SVC_EXTENSION 1883 Int getExtensionFlag() { return m_extensionFlag; } 1884 Void setExtensionFlag(Int n) { m_extensionFlag = n; } 1885 #if SCALINGLIST_INFERRING 1886 UInt getLayerId() { return m_layerId; } 1887 Void setLayerId( UInt layerId ) { m_layerId = layerId; } 1888 Bool getInferScalingListFlag() { return m_inferScalingListFlag; } 1889 UInt getScalingListRefLayerId() { return m_scalingListRefLayerId; } 1890 Void setInferScalingListFlag( Bool flag ) { m_inferScalingListFlag = flag; } 1891 Void setScalingListRefLayerId( UInt layerId ) { m_scalingListRefLayerId = layerId; } 1892 #endif 1890 1893 #if POC_RESET_IDC 1891 1894 Bool getPocResetInfoPresentFlag () { return m_pocResetInfoPresentFlag; } … … 1900 1903 Void setCGSOutputBitDepthC(Int n){ m_nCGSOutputBitDepthC = n; } 1901 1904 #endif 1905 #endif //SVC_EXTENSION 1902 1906 }; 1903 1907 -
branches/SHM-6-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r758 r760 340 340 READ_FLAG( uiCode, "pps_extension_flag"); 341 341 #if POC_RESET_INFO_INFERENCE 342 Bool ppsExtensionFlag = uiCode ? true : false; 343 if( ppsExtensionFlag ) 342 pcPPS->setExtensionFlag( uiCode ? true : false ); 343 344 if( pcPPS->getExtensionFlag() ) 344 345 #else 345 346 if (uiCode) … … 391 392 } 392 393 #if POC_RESET_INFO_INFERENCE 393 if( !p psExtensionFlag)394 if( !pcPPS->getExtensionFlag() ) 394 395 { 395 396 pcPPS->setPocResetInfoPresentFlag( false ); -
branches/SHM-6-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r758 r760 256 256 WRITE_FLAG( pcPPS->getSliceHeaderExtensionPresentFlag() ? 1 : 0, "slice_segment_header_extension_present_flag"); 257 257 #if P0166_MODIFIED_PPS_EXTENSION 258 WRITE_FLAG( 1, "pps_extension_flag" ); 259 if( 1 ) //pps_extension_flag 258 WRITE_FLAG( pcPPS->getExtensionFlag() ? 1 : 0, "pps_extension_flag" ); 259 260 if( pcPPS->getExtensionFlag() ) 260 261 { 261 262 #if !POC_RESET_IDC -
branches/SHM-6-dev/source/Lib/TLibEncoder/TEncTop.cpp
r754 r760 1171 1171 } 1172 1172 #if SVC_EXTENSION 1173 if (!m_layerId) 1173 if( m_layerId > 0 ) 1174 { 1175 m_cPPS.setListsModificationPresentFlag(true); 1176 m_cPPS.setExtensionFlag(true); 1177 } 1178 else 1174 1179 { 1175 1180 m_cPPS.setListsModificationPresentFlag(false); 1176 } 1177 else 1178 { 1179 m_cPPS.setListsModificationPresentFlag(true); 1180 } 1181 1182 m_cPPS.setPPSId ( m_iPPSIdCnt ); 1183 m_cPPS.setSPSId ( m_iSPSIdCnt ); 1184 #endif 1181 m_cPPS.setExtensionFlag(false); 1182 } 1183 1184 m_cPPS.setPPSId( m_iPPSIdCnt ); 1185 m_cPPS.setSPSId( m_iSPSIdCnt ); 1185 1186 #if POC_RESET_FLAG 1186 1187 m_cPPS.setNumExtraSliceHeaderBits( 2 ); … … 1195 1196 m_cPPS.setCGSFlag( m_nCGSFlag ); 1196 1197 #endif 1198 #endif //SVC_EXTENSION 1197 1199 } 1198 1200
Note: See TracChangeset for help on using the changeset viewer.