Changeset 1203 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibDecoder
- Timestamp:
- 8 Jul 2015, 20:57:55 (9 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibDecoder
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r1200 r1203 738 738 { 739 739 Window &conf = pcSPS->getConformanceWindow(); 740 #if REPN_FORMAT_IN_VPS740 #if SVC_EXTENSION 741 741 READ_UVLC( uiCode, "conf_win_left_offset" ); conf.setWindowLeftOffset ( uiCode ); 742 742 READ_UVLC( uiCode, "conf_win_right_offset" ); conf.setWindowRightOffset ( uiCode ); … … 1188 1188 pcSlice->setDependentSliceSegmentFlag(false); 1189 1189 } 1190 #if REPN_FORMAT_IN_VPS1190 #if SVC_EXTENSION 1191 1191 Int numCTUs = ((pcSlice->getPicWidthInLumaSamples()+sps->getMaxCUWidth()-1)/sps->getMaxCUWidth())*((pcSlice->getPicHeightInLumaSamples()+sps->getMaxCUHeight()-1)/sps->getMaxCUHeight()); 1192 1192 #else … … 1789 1789 pcSlice->setSliceQp (26 + pps->getPicInitQPMinus26() + iCode); 1790 1790 1791 #if REPN_FORMAT_IN_VPS1791 #if SVC_EXTENSION 1792 1792 g_bitDepthLayer[CHANNEL_TYPE_LUMA][pcSlice->getLayerId()] = pcSlice->getBitDepthY(); 1793 1793 g_bitDepthLayer[CHANNEL_TYPE_CHROMA][pcSlice->getLayerId()] = pcSlice->getBitDepthC(); … … 2336 2336 #endif 2337 2337 2338 #if REPN_FORMAT_IN_VPS2338 #if SVC_EXTENSION 2339 2339 Int qpBdOffsetY = pcCU->getSlice()->getQpBDOffsetY(); 2340 2340 #else … … 2957 2957 vps->checkNecessaryLayerFlagCondition(); 2958 2958 2959 #if REPN_FORMAT_IN_VPS2960 2959 READ_UVLC( uiCode, "vps_num_rep_formats_minus1" ); 2961 2960 vps->setVpsNumRepFormats( uiCode + 1 ); … … 3005 3004 } 3006 3005 } 3007 #endif3008 3006 3009 3007 READ_FLAG(uiCode, "max_one_active_ref_layer_flag" ); … … 3183 3181 } 3184 3182 3185 #if REPN_FORMAT_IN_VPS3186 3183 Void TDecCavlc::parseRepFormat( RepFormat *repFormat, RepFormat *repFormatPrev ) 3187 3184 { … … 3235 3232 } 3236 3233 } 3237 #endif //REPN_FORMAT_IN_VPS 3234 3238 3235 #if VPS_DPB_SIZE_TABLE 3239 3236 Void TDecCavlc::parseVpsDpbSizeTable( TComVPS *vps ) -
branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.h
r1185 r1203 132 132 Void parseVPSVUI ( TComVPS* pcVPS ); 133 133 Void defaultVPSVUI ( TComVPS* pcVPS ); 134 #if REPN_FORMAT_IN_VPS135 134 Void parseRepFormat ( RepFormat *repFormat, RepFormat *repFormatPrev ); 136 #endif137 135 #if VPS_DPB_SIZE_TABLE 138 136 Void parseVpsDpbSizeTable( TComVPS *vps ); -
branches/SHM-dev/source/Lib/TLibDecoder/TDecCu.cpp
r1128 r1203 222 222 223 223 TComSlice * pcSlice = pcCU->getPic()->getSlice(pcCU->getPic()->getCurrSliceIdx()); 224 #if REPN_FORMAT_IN_VPS 224 225 #if SVC_EXTENSION 225 226 if( ( uiRPelX < pcSlice->getPicWidthInLumaSamples() ) && ( uiBPelY < pcSlice->getPicHeightInLumaSamples() ) ) 226 227 #else … … 254 255 uiTPelY = pcCU->getCUPelY() + g_auiRasterToPelY[ g_auiZscanToRaster[uiIdx] ]; 255 256 256 #if REPN_FORMAT_IN_VPS257 #if SVC_EXTENSION 257 258 if ( !isLastCtuOfSliceSegment && ( uiLPelX < pcCU->getSlice()->getPicWidthInLumaSamples() ) && ( uiTPelY < pcCU->getSlice()->getPicHeightInLumaSamples() ) ) 258 259 #else … … 406 407 TComSlice * pcSlice = pCtu->getPic()->getSlice(pCtu->getPic()->getCurrSliceIdx()); 407 408 408 #if REPN_FORMAT_IN_VPS409 #if SVC_EXTENSION 409 410 if( ( uiRPelX >= pcSlice->getPicWidthInLumaSamples() ) || ( uiBPelY >= pcSlice->getPicHeightInLumaSamples() ) ) 410 411 411 #else 412 412 if( ( uiRPelX >= pcSlice->getSPS()->getPicWidthInLumaSamples() ) || ( uiBPelY >= pcSlice->getSPS()->getPicHeightInLumaSamples() ) ) … … 426 426 uiTPelY = pCtu->getCUPelY() + g_auiRasterToPelY[ g_auiZscanToRaster[uiIdx] ]; 427 427 428 #if REPN_FORMAT_IN_VPS428 #if SVC_EXTENSION 429 429 if( ( uiLPelX < pcSlice->getPicWidthInLumaSamples() ) && ( uiTPelY < pcSlice->getPicHeightInLumaSamples() ) ) 430 430 #else -
branches/SHM-dev/source/Lib/TLibDecoder/TDecSbac.cpp
r1029 r1203 946 946 { 947 947 UInt uiSign; 948 #if REPN_FORMAT_IN_VPS948 #if SVC_EXTENSION 949 949 Int qpBdOffsetY = pcCU->getSlice()->getQpBDOffsetY(); 950 950 #else -
branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.cpp
r1200 r1203 288 288 } 289 289 290 #if REPN_FORMAT_IN_VPS291 290 rpcPic->create ( pcSlice->getPicWidthInLumaSamples(), pcSlice->getPicHeightInLumaSamples(), pcSlice->getChromaFormatIdc(), g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, 292 291 conformanceWindow, defaultDisplayWindow, numReorderPics, pcSlice->getSPS(), true); 293 #else294 rpcPic->create ( pcSlice->getSPS()->getPicWidthInLumaSamples(), pcSlice->getSPS()->getPicHeightInLumaSamples(), pcSlice->getSPS()->getChromaFormatIdc(), g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth,295 conformanceWindow, defaultDisplayWindow, numReorderPics, pcSlice->getSPS(), true);296 #endif297 298 292 #else //SVC_EXTENSION 299 293 rpcPic->create ( pcSlice->getSPS()->getPicWidthInLumaSamples(), pcSlice->getSPS()->getPicHeightInLumaSamples(), pcSlice->getSPS()->getChromaFormatIdc(), g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, … … 345 339 } 346 340 347 #if REPN_FORMAT_IN_VPS348 341 rpcPic->create ( pcSlice->getPicWidthInLumaSamples(), pcSlice->getPicHeightInLumaSamples(), pcSlice->getChromaFormatIdc(), g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, 349 342 conformanceWindow, defaultDisplayWindow, numReorderPics, pcSlice->getSPS(), true); 350 #else351 rpcPic->create ( pcSlice->getSPS()->getPicWidthInLumaSamples(), pcSlice->getSPS()->getPicHeightInLumaSamples(), pcSlice->getSPS()->getChromaFormatIdc(), g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth,352 conformanceWindow, defaultDisplayWindow, numReorderPics, pcSlice->getSPS(), true);353 #endif354 343 #else //SVC_EXTENSION 355 344 rpcPic->create ( pcSlice->getSPS()->getPicWidthInLumaSamples(), pcSlice->getSPS()->getPicHeightInLumaSamples(), pcSlice->getSPS()->getChromaFormatIdc(), g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, … … 652 641 for (UInt channel = 0; channel < MAX_NUM_CHANNEL_TYPE; channel++) 653 642 { 654 #if REPN_FORMAT_IN_VPS643 #if SVC_EXTENSION 655 644 g_bitDepth[channel] = isLuma(ChannelType(channel)) ? m_apcSlicePilot->getBitDepthY() : m_apcSlicePilot->getBitDepthC(); 656 645 #else … … 677 666 678 667 m_cSAO.destroy(); 679 #if REPN_FORMAT_IN_VPS668 #if SVC_EXTENSION 680 669 m_cSAO.create( m_apcSlicePilot->getPicWidthInLumaSamples(), m_apcSlicePilot->getPicHeightInLumaSamples(), sps->getChromaFormatIdc(), sps->getMaxCUWidth(), sps->getMaxCUHeight(), sps->getMaxCUDepth(), pps->getSaoOffsetBitShift(CHANNEL_TYPE_LUMA), pps->getSaoOffsetBitShift(CHANNEL_TYPE_CHROMA) ); 681 670 #else … … 1205 1194 xActivateParameterSets(); 1206 1195 1207 #if REPN_FORMAT_IN_VPS1196 #if SVC_EXTENSION 1208 1197 // Initialize ILRP if needed, only for the current layer 1209 1198 // ILRP intialization should go along with activation of parameters sets, … … 1211 1200 xInitILRP(m_apcSlicePilot); 1212 1201 #endif 1202 1213 1203 if (!m_apcSlicePilot->getDependentSliceSegmentFlag()) 1214 1204 { … … 2284 2274 2285 2275 #if SVC_EXTENSION 2286 #if !REPN_FORMAT_IN_VPS2287 Void TDecTop::xInitILRP(TComSPS *pcSPS)2288 #else2289 2276 Void TDecTop::xInitILRP(TComSlice *slice) 2290 #endif 2291 { 2292 #if REPN_FORMAT_IN_VPS 2277 { 2293 2278 TComSPS* pcSPS = slice->getSPS(); 2294 2279 Int bitDepthY = slice->getBitDepthY(); … … 2296 2281 Int picWidth = slice->getPicWidthInLumaSamples(); 2297 2282 Int picHeight = slice->getPicHeightInLumaSamples(); 2298 #endif 2299 if( m_layerId>0)2300 { 2301 #if REPN_FORMAT_IN_VPS 2283 2284 if( m_layerId > 0 ) 2285 { 2286 2302 2287 g_bitDepth[CHANNEL_TYPE_LUMA] = bitDepthY; 2303 2288 g_bitDepth[CHANNEL_TYPE_CHROMA] = bitDepthC; 2304 #else2305 g_bitDepth[CHANNEL_TYPE_LUMA] = pcSPS->getBitDepthY();2306 g_bitDepth[CHANNEL_TYPE_CHROMA] = pcSPS->getBitDepthC();2307 #endif2308 2289 g_uiMaxCUWidth = pcSPS->getMaxCUWidth(); 2309 2290 g_uiMaxCUHeight = pcSPS->getMaxCUHeight(); … … 2338 2319 2339 2320 #if AUXILIARY_PICTURES 2340 #if REPN_FORMAT_IN_VPS2341 2321 m_cIlpPic[j]->create(picWidth, picHeight, slice->getChromaFormatIdc(), g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, conformanceWindow, defaultDisplayWindow, numReorderPics, pcSPS, true); 2342 2322 #else 2343 m_cIlpPic[j]->create(pcSPS->getPicWidthInLumaSamples(), pcSPS->getPicHeightInLumaSamples(), pcSPS->getChromaFormatIdc(), g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, conformanceWindow, defaultDisplayWindow, numReorderPics, pcSPS, true);2344 #endif2345 #else2346 #if REPN_FORMAT_IN_VPS2347 2323 m_cIlpPic[j]->create(picWidth, picHeight, g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, conformanceWindow, defaultDisplayWindow, numReorderPics, pcSPS, true); 2348 #else2349 m_cIlpPic[j]->create(pcSPS->getPicWidthInLumaSamples(), pcSPS->getPicHeightInLumaSamples(), g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, conformanceWindow, defaultDisplayWindow, numReorderPics, pcSPS, true);2350 #endif2351 2324 #endif 2352 2325 for (Int i=0; i<m_cIlpPic[j]->getPicSym()->getNumberOfCtusInFrame(); i++) -
branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.h
r1199 r1203 136 136 #if AVC_BASE 137 137 fstream* m_pBLReconFile; 138 #if !REPN_FORMAT_IN_VPS139 Int m_iBLSourceWidth;140 Int m_iBLSourceHeight;141 #endif142 138 #endif 143 139 … … 258 254 Void setBLReconFile( fstream* pFile ) { m_pBLReconFile = pFile; } 259 255 fstream* getBLReconFile() { return m_pBLReconFile; } 260 #if !REPN_FORMAT_IN_VPS 261 Void setBLsize( Int iWidth, Int iHeight ) { m_iBLSourceWidth = iWidth; m_iBLSourceHeight = iHeight; } 262 Int getBLWidth() { return m_iBLSourceWidth; } 263 Int getBLHeight() { return m_iBLSourceHeight; } 264 #endif 265 #endif 266 #if REPN_FORMAT_IN_VPS 256 #endif 267 257 Void xInitILRP(TComSlice *slice); 268 #else269 Void xInitILRP(TComSPS *pcSPS);270 #endif271 258 CommonDecoderParams* getCommonDecoderParams() { return m_commonDecoderParams; } 272 259 Void setCommonDecoderParams(CommonDecoderParams* x) { m_commonDecoderParams = x; }
Note: See TracChangeset for help on using the changeset viewer.