- Timestamp:
- 2 Apr 2013, 22:50:17 (12 years ago)
- Location:
- branches/HM-10.0-dev-SHM/source/Lib
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HM-10.0-dev-SHM/source/Lib/TLibCommon/TComSlice.cpp
r102 r108 1464 1464 , m_bTemporalIdNestingFlag (false) 1465 1465 , m_numHrdParameters ( 0) 1466 #if !VPS_RENAME 1466 1467 , m_maxNuhReservedZeroLayerId ( 0) 1468 #endif 1467 1469 , m_hrdParameters (NULL) 1468 1470 , m_hrdOpSetIdx (NULL) 1469 1471 , m_cprmsPresentFlag (NULL) 1472 #if VPS_RENAME 1473 , m_maxLayerId (0) 1474 , m_numLayerSets (0) 1475 #endif 1470 1476 { 1471 1477 -
branches/HM-10.0-dev-SHM/source/Lib/TLibCommon/TComSlice.h
r103 r108 484 484 485 485 UInt m_numHrdParameters; 486 #if !VPS_RENAME 486 487 UInt m_maxNuhReservedZeroLayerId; 488 #endif 487 489 TComHRD* m_hrdParameters; 488 490 UInt* m_hrdOpSetIdx; 489 491 Bool* m_cprmsPresentFlag; 492 #if VPS_RENAME 493 UInt m_maxLayerId; 494 UInt m_numLayerSets; 495 Bool m_layerIdIncludedFlag[MAX_VPS_LAYER_SETS_PLUS1][MAX_VPS_LAYER_ID_PLUS1]; 496 #else 490 497 UInt m_numOpSets; 491 498 Bool m_layerIdIncludedFlag[MAX_VPS_OP_SETS_PLUS1][MAX_VPS_NUH_RESERVED_ZERO_LAYER_ID_PLUS1]; 499 #endif 492 500 493 501 TComPTL m_pcPTL; … … 540 548 Void setNumHrdParameters(UInt v) { m_numHrdParameters = v; } 541 549 550 #if VPS_RENAME 551 UInt getMaxLayerId() { return m_maxLayerId; } 552 Void setMaxLayerId(UInt v) { m_maxLayerId = v; } 553 554 UInt getNumLayerSets() { return m_numLayerSets; } 555 Void setNumLayerSets(UInt v) { m_numLayerSets = v; } 556 #else 542 557 UInt getMaxNuhReservedZeroLayerId() { return m_maxNuhReservedZeroLayerId; } 543 558 Void setMaxNuhReservedZeroLayerId(UInt v) { m_maxNuhReservedZeroLayerId = v; } … … 545 560 UInt getMaxOpSets() { return m_numOpSets; } 546 561 Void setMaxOpSets(UInt v) { m_numOpSets = v; } 562 #endif 547 563 Bool getLayerIdIncludedFlag(UInt opsIdx, UInt id) { return m_layerIdIncludedFlag[opsIdx][id]; } 548 564 Void setLayerIdIncludedFlag(Bool v, UInt opsIdx, UInt id) { m_layerIdIncludedFlag[opsIdx][id] = v; } -
branches/HM-10.0-dev-SHM/source/Lib/TLibCommon/TypeDef.h
r103 r108 44 44 45 45 #if SVC_EXTENSION 46 #define VPS_RENAME 1 ///< Rename variables max_layer_id and num_layer_sets_minus1 in VPS 46 47 #define MAX_LAYERS 2 ///< max number of layers the codec is supposed to handle 47 48 … … 131 132 #define L0232_RD_PENALTY 1 ///< L0232: RD-penalty for 32x32 TU for intra in non-intra slices 132 133 134 #if VPS_RENAME 135 #define MAX_VPS_LAYER_SETS_PLUS1 1024 136 #define MAX_VPS_LAYER_ID_PLUS1 1 137 #else 133 138 #define MAX_VPS_NUM_HRD_PARAMETERS 1 134 139 #define MAX_VPS_OP_SETS_PLUS1 1024 135 140 #define MAX_VPS_NUH_RESERVED_ZERO_LAYER_ID_PLUS1 1 136 141 #endif 137 142 #define RATE_CONTROL_LAMBDA_DOMAIN 1 ///< JCTVC-K0103, rate control by R-lambda model 138 143 #define L0033_RC_BUGFIX 1 ///< JCTVC-L0033, bug fix for R-lambda model based rate control -
branches/HM-10.0-dev-SHM/source/Lib/TLibDecoder/TDecCAVLC.cpp
r100 r108 758 758 } 759 759 760 #if VPS_RENAME 761 assert( pcVPS->getNumHrdParameters() < MAX_VPS_LAYER_SETS_PLUS1 ); 762 assert( pcVPS->getMaxLayerId() < MAX_VPS_LAYER_ID_PLUS1 ); 763 READ_CODE( 6, uiCode, "vps_max_layer_id" ); pcVPS->setMaxLayerId( uiCode ); 764 READ_UVLC( uiCode, "vps_num_layer_sets_minus1" ); pcVPS->setNumLayerSets( uiCode + 1 ); 765 for( UInt opsIdx = 1; opsIdx <= ( pcVPS->getNumLayerSets() - 1 ); opsIdx ++ ) 766 { 767 // Operation point set 768 for( UInt i = 0; i <= pcVPS->getMaxLayerId(); i ++ ) 769 #else 760 770 assert( pcVPS->getNumHrdParameters() < MAX_VPS_OP_SETS_PLUS1 ); 761 771 assert( pcVPS->getMaxNuhReservedZeroLayerId() < MAX_VPS_NUH_RESERVED_ZERO_LAYER_ID_PLUS1 ); … … 766 776 // Operation point set 767 777 for( UInt i = 0; i <= pcVPS->getMaxNuhReservedZeroLayerId(); i ++ ) 778 #endif 768 779 { 769 780 READ_FLAG( uiCode, "layer_id_included_flag[opsIdx][i]" ); pcVPS->setLayerIdIncludedFlag( uiCode == 1 ? true : false, opsIdx, i ); -
branches/HM-10.0-dev-SHM/source/Lib/TLibEncoder/TEncCavlc.cpp
r100 r108 588 588 } 589 589 590 #if VPS_RENAME 591 assert( pcVPS->getNumHrdParameters() <= MAX_VPS_LAYER_SETS_PLUS1 ); 592 assert( pcVPS->getMaxLayerId() < MAX_VPS_LAYER_ID_PLUS1 ); 593 pcVPS->setNumLayerSets(1); 594 WRITE_CODE( pcVPS->getMaxLayerId(), 6, "vps_max_layer_id" ); 595 WRITE_UVLC( pcVPS->getNumLayerSets() - 1, "vps_num_layer_sets_minus1" ); 596 for( UInt opsIdx = 1; opsIdx <= ( pcVPS->getNumLayerSets() - 1 ); opsIdx ++ ) 597 { 598 // Operation point set 599 for( UInt i = 0; i <= pcVPS->getMaxLayerId(); i ++ ) 600 #else 590 601 assert( pcVPS->getNumHrdParameters() <= MAX_VPS_NUM_HRD_PARAMETERS ); 591 602 assert( pcVPS->getMaxNuhReservedZeroLayerId() < MAX_VPS_NUH_RESERVED_ZERO_LAYER_ID_PLUS1 ); … … 597 608 // Operation point set 598 609 for( UInt i = 0; i <= pcVPS->getMaxNuhReservedZeroLayerId(); i ++ ) 610 #endif 599 611 { 600 612 // Only applicable for version 1
Note: See TracChangeset for help on using the changeset viewer.