Changeset 227 in SHVCSoftware for branches/SHM-2.1-dev/source
- Timestamp:
- 22 May 2013, 22:34:22 (11 years ago)
- Location:
- branches/SHM-2.1-dev/source/Lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-2.1-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r226 r227 732 732 } 733 733 734 READ_FLAG( uiCode, "sps_extension_flag"); 735 if (uiCode) 736 { 737 #if SPS_EXTENSION 738 parseSPSExtension( pcSPS ); 739 READ_FLAG( uiCode, "sps_extension2_flag"); 740 if(uiCode) 741 { 742 #endif 743 while ( xMoreRbspData() ) 744 { 745 READ_FLAG( uiCode, "sps_extension_data_flag"); 746 } 747 #if SPS_EXTENSION 748 } 749 #endif 750 } 751 } 752 753 #if SPS_EXTENSION 754 Void TDecCavlc::parseSPSExtension( TComSPS* pcSPS ) 755 { 756 // more syntax elements to be parsed here 734 757 #if SCALED_REF_LAYER_OFFSETS 735 758 if( pcSPS->getLayerId() > 0 ) … … 743 766 } 744 767 #endif 745 746 READ_FLAG( uiCode, "sps_extension_flag");747 if (uiCode)748 {749 #if SPS_EXTENSION750 parseSPSExtension( pcSPS );751 READ_FLAG( uiCode, "sps_extension2_flag");752 if(uiCode)753 {754 #endif755 while ( xMoreRbspData() )756 {757 READ_FLAG( uiCode, "sps_extension_data_flag");758 }759 #if SPS_EXTENSION760 }761 #endif762 }763 }764 765 #if SPS_EXTENSION766 Void TDecCavlc::parseSPSExtension( TComSPS* pcSPS )767 {768 // syntax elements to be parsed here769 768 } 770 769 #endif -
branches/SHM-2.1-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r226 r227 560 560 codeVUI(pcSPS->getVuiParameters(), pcSPS); 561 561 } 562 563 #if SPS_EXTENSION 564 WRITE_FLAG( 1, "sps_extension_flag" ); 565 if( 1 ) // if( sps_extension_flag ) 566 { 567 codeSPSExtension( pcSPS ); 568 WRITE_FLAG( 0, "sps_extension2_flag" ); 569 } 570 #else 571 WRITE_FLAG( 0, "sps_extension_flag" ); 572 #endif 573 } 574 #if SPS_EXTENSION 575 Void TEncCavlc::codeSPSExtension( TComSPS* pcSPS ) 576 { 577 // more syntax elements to be written here 562 578 #if SCALED_REF_LAYER_OFFSETS 563 579 if( pcSPS->getLayerId() > 0 ) … … 570 586 } 571 587 #endif 572 573 #if SPS_EXTENSION574 WRITE_FLAG( 1, "sps_extension_flag" );575 if( 1 ) // if( sps_extension_flag )576 {577 codeSPSExtension( pcSPS );578 WRITE_FLAG( 0, "sps_extension2_flag" );579 }580 #else581 WRITE_FLAG( 0, "sps_extension_flag" );582 #endif583 }584 #if SPS_EXTENSION585 Void TEncCavlc::codeSPSExtension( TComSPS* pcSPS )586 {587 // syntax elements to be written here588 588 } 589 589 #endif
Note: See TracChangeset for help on using the changeset viewer.