Changeset 492 in 3DVCSoftware for branches/HTM-DEV-0.3-dev0/source/Lib
- Timestamp:
- 24 Jun 2013, 16:01:58 (12 years ago)
- Location:
- branches/HTM-DEV-0.3-dev0/source/Lib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-DEV-0.3-dev0/source/Lib/TLibCommon/TComSlice.h
r491 r492 494 494 UInt* m_hrdOpSetIdx; 495 495 Bool* m_cprmsPresentFlag; 496 UInt m_numOpSets; 497 #if H_MV 496 497 #if H_MV 498 UInt m_vpsNumLayerSetsMinus1; 498 499 Bool m_layerIdIncludedFlag[MAX_VPS_OP_SETS_PLUS1][MAX_VPS_NUH_LAYER_ID_PLUS1]; 499 500 #else 501 UInt m_numOpSets; 500 502 Bool m_layerIdIncludedFlag[MAX_VPS_OP_SETS_PLUS1][MAX_VPS_NUH_RESERVED_ZERO_LAYER_ID_PLUS1]; 501 503 #endif … … 607 609 UInt getVpsMaxLayerId() { return m_maxLayerId; } 608 610 Void setVpsMaxLayerId(UInt v) { m_maxLayerId = v; } 611 612 UInt getVpsNumLayerSetsMinus1() { return m_vpsNumLayerSetsMinus1; } 613 Void setVpsNumLayerSetsMinus1(UInt v) { m_vpsNumLayerSetsMinus1 = v; } 609 614 #else 610 615 UInt getMaxNuhReservedZeroLayerId() { return m_maxNuhReservedZeroLayerId; } 611 616 Void setMaxNuhReservedZeroLayerId(UInt v) { m_maxNuhReservedZeroLayerId = v; } 612 #endif613 617 614 618 UInt getMaxOpSets() { return m_numOpSets; } 615 619 Void setMaxOpSets(UInt v) { m_numOpSets = v; } 620 #endif 621 616 622 Bool getLayerIdIncludedFlag(UInt opsIdx, UInt id) { return m_layerIdIncludedFlag[opsIdx][id]; } 617 623 Void setLayerIdIncludedFlag(Bool v, UInt opsIdx, UInt id) { m_layerIdIncludedFlag[opsIdx][id] = v; } … … 729 735 { 730 736 assert( lsIdx >= 0 ); 731 assert( lsIdx < getMaxOpSets() );737 assert( lsIdx <= getVpsNumLayerSetsMinus1() ); 732 738 Int numLayersInIdList = 0; 733 739 for (Int layerId = 0; layerId < getVpsMaxLayerId(); layerId++ ) -
branches/HTM-DEV-0.3-dev0/source/Lib/TLibDecoder/TDecCAVLC.cpp
r490 r492 840 840 assert( pcVPS->getVpsMaxLayerId() < MAX_VPS_NUH_LAYER_ID_PLUS1 ); 841 841 READ_CODE( 6, uiCode, "vps_max_nuh_layer_id" ); pcVPS->setVpsMaxLayerId( uiCode ); 842 843 READ_UVLC( uiCode, "vps_max_num_layer_sets_minus1" ); pcVPS->setVpsNumLayerSetsMinus1( uiCode ); 844 for( UInt opsIdx = 1; opsIdx <= pcVPS->getVpsNumLayerSetsMinus1(); opsIdx ++ ) 845 { 846 for( UInt i = 0; i <= pcVPS->getVpsMaxLayerId(); i ++ ) 842 847 #else 843 848 assert( pcVPS->getMaxNuhReservedZeroLayerId() < MAX_VPS_NUH_RESERVED_ZERO_LAYER_ID_PLUS1 ); 844 849 READ_CODE( 6, uiCode, "vps_max_nuh_reserved_zero_layer_id" ); pcVPS->setMaxNuhReservedZeroLayerId( uiCode ); 845 #endif 850 846 851 READ_UVLC( uiCode, "vps_max_op_sets_minus1" ); pcVPS->setMaxOpSets( uiCode + 1 ); 847 852 for( UInt opsIdx = 1; opsIdx <= ( pcVPS->getMaxOpSets() - 1 ); opsIdx ++ ) 848 853 { 849 854 // Operation point set 850 #if H_MV851 for( UInt i = 0; i <= pcVPS->getVpsMaxLayerId(); i ++ )852 #else853 855 for( UInt i = 0; i <= pcVPS->getMaxNuhReservedZeroLayerId(); i ++ ) 854 856 #endif … … 948 950 READ_CODE( 6, uiCode, "vps_num_profile_tier_level_minus1" ); pcVPS->setVpsNumProfileTierLevelMinus1( uiCode ); 949 951 950 for( Int i = 1; i <= pcVPS->get MaxOpSets() - 1; i++ )952 for( Int i = 1; i <= pcVPS->getVpsNumberLayerSetsMinus1(); i++ ) 951 953 { 952 954 READ_FLAG( uiCode, "vps_profile_present_flag[i]" ); pcVPS->setVpsProfilePresentFlag( i, uiCode == 1 ); -
branches/HTM-DEV-0.3-dev0/source/Lib/TLibEncoder/TEncCavlc.cpp
r490 r492 649 649 #if H_MV 650 650 assert( pcVPS->getVpsMaxLayerId() < MAX_VPS_NUH_LAYER_ID_PLUS1 ); 651 WRITE_CODE( pcVPS->getVpsMaxLayerId(), 6, "vps_max_layer_id" ); 651 WRITE_CODE( pcVPS->getVpsMaxLayerId(), 6, "vps_max_layer_id" ); 652 653 WRITE_UVLC( pcVPS->getVpsNumLayerSetsMinus1(), "vps_max_num_layer_sets_minus1" ); 654 for( UInt opsIdx = 1; opsIdx <= pcVPS->getVpsNumLayerSetsMinus1(); opsIdx ++ ) 655 { 656 // Operation point set 657 for( UInt i = 0; i <= pcVPS->getVpsMaxLayerId(); i ++ ) 652 658 #else 653 659 assert( pcVPS->getMaxNuhReservedZeroLayerId() < MAX_VPS_NUH_RESERVED_ZERO_LAYER_ID_PLUS1 ); 654 660 WRITE_CODE( pcVPS->getMaxNuhReservedZeroLayerId(), 6, "vps_max_nuh_reserved_zero_layer_id" ); 655 #endif 661 656 662 pcVPS->setMaxOpSets(1); 657 663 WRITE_UVLC( pcVPS->getMaxOpSets() - 1, "vps_max_op_sets_minus1" ); … … 659 665 { 660 666 // Operation point set 661 #if H_MV662 for( UInt i = 0; i <= pcVPS->getVpsMaxLayerId(); i ++ )663 #else664 667 for( UInt i = 0; i <= pcVPS->getMaxNuhReservedZeroLayerId(); i ++ ) 665 668 #endif
Note: See TracChangeset for help on using the changeset viewer.