Ticket #61: SPSPPSExtn6bits_jpadia_vidyo_150205.patch
File SPSPPSExtn6bits_jpadia_vidyo_150205.patch, 4.1 KB (added by jaypadia, 9 years ago) |
---|
-
source/Lib/TLibCommon/TComSlice.cpp
3364 3364 , m_inferScalingListFlag ( false ) 3365 3365 , m_scalingListRefLayerId ( 0 ) 3366 3366 #endif 3367 #if SPS_PPS_6BIT_EXTENSION 3368 , m_sps6bitExtension ( 0 ) 3369 #endif 3367 3370 #endif //SVC_EXTENSION 3368 3371 { 3369 3372 for ( Int i = 0; i < MAX_TLAYER; i++ ) … … 3597 3600 , m_nCGSOutputBitDepthY(0) 3598 3601 , m_nCGSOutputBitDepthC(0) 3599 3602 #endif 3603 #if SPS_PPS_6BIT_EXTENSION 3604 , m_pps6bitExtension(0) 3605 #endif 3600 3606 #endif //SVC_EXTENSION 3601 3607 { 3602 3608 m_scalingList = new TComScalingList; -
source/Lib/TLibCommon/TComSlice.h
1708 1708 Bool m_inferScalingListFlag; 1709 1709 UInt m_scalingListRefLayerId; 1710 1710 #endif 1711 #if SPS_PPS_6BIT_EXTENSION 1712 UInt m_sps6bitExtension; 1713 #endif 1711 1714 #endif //SVC_EXTENSION 1712 1715 1713 1716 public: … … 1888 1891 Void setInferScalingListFlag( Bool flag ) { m_inferScalingListFlag = flag; } 1889 1892 Void setScalingListRefLayerId( UInt layerId ) { m_scalingListRefLayerId = layerId; } 1890 1893 #endif 1894 #if SPS_PPS_6BIT_EXTENSION 1895 void setSps6bitExtension(UInt val) { m_sps6bitExtension = val; } 1896 UInt getSps6bitExtension() { return m_sps6bitExtension; } 1897 #endif 1891 1898 #endif //SVC_EXTENSION 1892 1899 }; 1893 1900 … … 2010 2017 Int m_nCGSOutputBitDepthY; // not for syntax 2011 2018 Int m_nCGSOutputBitDepthC; // not for syntax 2012 2019 #endif 2020 #if SPS_PPS_6BIT_EXTENSION 2021 UInt m_pps6bitExtension; 2013 2022 #endif 2023 #endif 2014 2024 2015 2025 public: 2016 2026 TComPPS(); … … 2174 2184 Int getCGSOutputBitDepthC() { return m_nCGSOutputBitDepthC; } 2175 2185 Void setCGSOutputBitDepthC(Int n){ m_nCGSOutputBitDepthC = n; } 2176 2186 #endif 2187 #if SPS_PPS_6BIT_EXTENSION 2188 void setPps6bitExtension(UInt val) { m_pps6bitExtension = val; } 2189 UInt getPps6bitExtension() { return m_pps6bitExtension; } 2190 #endif 2177 2191 #endif //SVC_EXTENSION 2178 2192 }; 2179 2193 -
source/Lib/TLibCommon/TypeDef.h
293 293 #endif 294 294 #endif 295 295 #define R0157_RESTRICT_PPSID_FOR_CGS_LUT 1 ///< JCTVC-R0157: when pps_pic_parameter_set_id greater than or equal to 8, colour_mapping_enabled_flag shall be equal to 0 296 #define SPS_RESCHANGE_UPDATE 1 297 #define SPS_PPS_6BIT_EXTENSION 1 296 298 297 299 #define VPS_FIX_TO_MATCH_SPEC 1 298 300 -
source/Lib/TLibDecoder/TDecCAVLC.cpp
467 467 READ_FLAG( uiCode, "pps_multilayer_extension_flag" ); 468 468 assert(uiCode == 1); 469 469 READ_CODE(6, uiCode, "pps_extension_6bits"); 470 assert(uiCode == 0); 470 pcPPS->setPps6bitExtension(uiCode); 471 //assert(uiCode == 0); 471 472 472 473 READ_FLAG( uiCode, "poc_reset_info_present_flag" ); 473 474 pcPPS->setPocResetInfoPresentFlag(uiCode ? true : false); … … 556 557 pcPPS->setCGSOutputBitDepthC( pc3DAsymLUT->getOutputBitDepthC() ); 557 558 } 558 559 #endif 560 #if SPS_PPS_6BIT_EXTENSION 561 if (pcPPS->getPps6bitExtension()) 562 { 563 while (xMoreRbspData()) 564 { 565 READ_FLAG(uiCode, "pps_extension_data_flag"); 566 } 567 } 568 #endif 559 569 } 560 570 #endif 561 571 … … 1146 1156 assert(uiCode == 0); 1147 1157 READ_FLAG( uiCode, "sps_multilayer_extension_flag" ); 1148 1158 assert(uiCode == 1); 1149 READ_CODE(6, uiCode, "sps_extension_6bits");1150 assert(uiCode == 0);1159 READ_CODE(6, uiCode, "sps_extension_6bits"); pcSPS->setSps6bitExtension(uiCode); 1160 //assert(uiCode == 0); 1151 1161 parseSPSExtension( pcSPS ); 1162 #if SPS_PPS_6BIT_EXTENSION 1163 if (pcSPS->getSps6bitExtension()) 1164 { 1165 while (xMoreRbspData()) 1166 { 1167 READ_FLAG(uiCode, "sps_extension_data_flag"); 1168 } 1169 } 1170 #endif 1152 1171 } 1153 1172 #endif 1154 1173 #else