Changeset 70 in 3DVCSoftware for branches/HTM-3.0-Vidyo/source/Lib/TLibDecoder/TDecTop.cpp
- Timestamp:
- 3 Jun 2012, 21:48:11 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-3.0-Vidyo/source/Lib/TLibDecoder/TDecTop.cpp
r57 r70 571 571 TComSPS *sps = m_parameterSetManagerDecoder.getSPS(pps->getSPSId()); 572 572 assert (sps != 0); 573 573 #if VIDYO_VPS_INTEGRATION 574 TComVPS *vps = m_parameterSetManagerDecoder.getVPS(sps->getVPSId()); 575 assert (vps != 0); 576 #endif 574 577 m_apcSlicePilot->setPPS(pps); 575 578 m_apcSlicePilot->setSPS(sps); 579 #if VIDYO_VPS_INTEGRATION 580 m_apcSlicePilot->setVPS(vps); 581 #endif 576 582 pps->setSPS(sps); 577 583 … … 613 619 m_apcSlicePilot->setPPS(m_parameterSetManagerDecoder.getPrefetchedPPS(0)); 614 620 m_apcSlicePilot->setSPS(m_parameterSetManagerDecoder.getPrefetchedSPS(0)); 621 #if VIDYO_VPS_INTEGRATION 622 m_apcSlicePilot->setVPS(m_parameterSetManagerDecoder.getPrefetchedVPS(0)); 623 #endif 615 624 m_apcSlicePilot->initTiles(); 616 625 … … 629 638 if( m_bFirstSliceInPicture ) 630 639 { 640 #if VIDYO_VPS_INTEGRATION 641 if( m_apcSlicePilot->getVPS()->getViewId(nalu.m_layerId) == 0 ) { m_nalUnitTypeBaseView = nalu.m_nalUnitType; } 642 else { m_nalUnitTypeBaseView = m_tAppDecTop->getTDecTop( 0, m_apcSlicePilot->getVPS()->getDepthFlag(nalu.m_layerId) )->getNalUnitTypeBaseView(); } 643 #else 631 644 if( nalu.m_viewId == 0 ) { m_nalUnitTypeBaseView = nalu.m_nalUnitType; } 632 645 else { m_nalUnitTypeBaseView = m_tAppDecTop->getTDecTop( 0, nalu.m_isDepth )->getNalUnitTypeBaseView(); } 646 #endif 647 633 648 m_apcSlicePilot->setNalUnitTypeBaseViewMvc( m_nalUnitTypeBaseView ); 634 649 } … … 929 944 930 945 // Set reference list 946 #if VIDYO_VPS_INTEGRATION 947 pcSlice->setViewId( pcSlice->getVPS()->getViewId(nalu.m_layerId) ); 948 pcSlice->setIsDepth( pcSlice->getVPS()->getDepthFlag(nalu.m_layerId) ); 949 #else 931 950 pcSlice->setViewId(m_viewId); 932 951 pcSlice->setIsDepth(m_isDepth); 933 952 #endif 953 934 954 #if SONY_COLPIC_AVAILABILITY 955 #if VIDYO_VPS_INTEGRATION 956 pcSlice->setViewOrderIdx( pcSlice->getVPS()->getViewOrderIdx(nalu.m_layerId) ); 957 #else 935 958 pcSlice->setViewOrderIdx( pcPic->getViewOrderIdx() ); 959 #endif 936 960 #endif 937 961 … … 1051 1075 } 1052 1076 1077 #if VIDYO_VPS_INTEGRATION 1078 Void TDecTop::xDecodeVPS() 1079 { 1080 TComVPS* vps = new TComVPS(); 1081 1082 m_cEntropyDecoder.decodeVPS( vps ); 1083 m_parameterSetManagerDecoder.storePrefetchedVPS(vps); 1084 1085 } 1086 #endif 1053 1087 1054 1088 Void TDecTop::xDecodeSPS() … … 1114 1148 switch (nalu.m_nalUnitType) 1115 1149 { 1150 #if VIDYO_VPS_INTEGRATION 1151 case NAL_UNIT_VPS: 1152 xDecodeVPS(); 1153 return false; 1154 #endif 1116 1155 case NAL_UNIT_SPS: 1117 1156 xDecodeSPS();
Note: See TracChangeset for help on using the changeset viewer.