Changeset 619 in SHVCSoftware for branches/SHM-5.1-dev/source/Lib/TLibDecoder
- Timestamp:
- 21 Feb 2014, 04:13:08 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-5.1-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r618 r619 645 645 646 646 #if SPS_DPB_PARAMS 647 if( pcSPS->getLayerId() == 0 ) { 647 if( pcSPS->getLayerId() == 0 ) 648 { 648 649 #endif 649 650 UInt subLayerOrderingInfoPresentFlag; 650 READ_FLAG(subLayerOrderingInfoPresentFlag, "sps_sub_layer_ordering_info_present_flag");651 652 for(UInt i=0; i <= pcSPS->getMaxTLayers()-1; i++)653 {654 READ_UVLC ( uiCode, "sps_max_dec_pic_buffering_minus1");655 pcSPS->setMaxDecPicBuffering( uiCode + 1, i);656 READ_UVLC ( uiCode, "sps_num_reorder_pics" );657 pcSPS->setNumReorderPics(uiCode, i);658 READ_UVLC ( uiCode, "sps_max_latency_increase_plus1");659 pcSPS->setMaxLatencyIncrease( uiCode, i );660 661 if (!subLayerOrderingInfoPresentFlag)662 {663 for (i++; i <= pcSPS->getMaxTLayers()-1; i++)664 {665 pcSPS->setMaxDecPicBuffering(pcSPS->getMaxDecPicBuffering(0), i);666 pcSPS->setNumReorderPics(pcSPS->getNumReorderPics(0), i);667 pcSPS->setMaxLatencyIncrease(pcSPS->getMaxLatencyIncrease(0), i);668 }669 break;670 }671 }651 READ_FLAG(subLayerOrderingInfoPresentFlag, "sps_sub_layer_ordering_info_present_flag"); 652 653 for(UInt i=0; i <= pcSPS->getMaxTLayers()-1; i++) 654 { 655 READ_UVLC ( uiCode, "sps_max_dec_pic_buffering_minus1"); 656 pcSPS->setMaxDecPicBuffering( uiCode + 1, i); 657 READ_UVLC ( uiCode, "sps_num_reorder_pics" ); 658 pcSPS->setNumReorderPics(uiCode, i); 659 READ_UVLC ( uiCode, "sps_max_latency_increase_plus1"); 660 pcSPS->setMaxLatencyIncrease( uiCode, i ); 661 662 if (!subLayerOrderingInfoPresentFlag) 663 { 664 for (i++; i <= pcSPS->getMaxTLayers()-1; i++) 665 { 666 pcSPS->setMaxDecPicBuffering(pcSPS->getMaxDecPicBuffering(0), i); 667 pcSPS->setNumReorderPics(pcSPS->getNumReorderPics(0), i); 668 pcSPS->setMaxLatencyIncrease(pcSPS->getMaxLatencyIncrease(0), i); 669 } 670 break; 671 } 672 } 672 673 #if SPS_DPB_PARAMS 673 674 } 674 675 #endif 675 676 READ_UVLC( uiCode, "log2_min_coding_block_size_minus3" );
Note: See TracChangeset for help on using the changeset viewer.