Changeset 1046 in SHVCSoftware for branches/SHM-dev/source
- Timestamp:
- 3 Mar 2015, 02:47:16 (10 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibCommon
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibCommon/CommonDef.h
r1029 r1046 317 317 CommonDecoderParams(): 318 318 #if FIX_CONF_MODE 319 m_targetLayerId(MAX_VPS_LAYER_ID _PLUS1)319 m_targetLayerId(MAX_VPS_LAYER_IDX_PLUS1) 320 320 #else 321 321 m_targetLayerId(0) -
branches/SHM-dev/source/Lib/TLibCommon/SEI.h
r1037 r1046 919 919 UInt m_seiBspCombScheddx[MAX_VPS_LAYER_SETS_PLUS1][16][16]; 920 920 UInt m_vpsMaxLayers; 921 Bool m_layerIdIncludedFlag[MAX_VPS_LAYER_SETS_PLUS1][MAX_VPS_LAYER_ID _PLUS1];921 Bool m_layerIdIncludedFlag[MAX_VPS_LAYER_SETS_PLUS1][MAX_VPS_LAYER_IDX_PLUS1]; 922 922 923 923 TComHRD *hrd; -
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.cpp
r1043 r1046 2125 2125 #endif 2126 2126 m_maxTidRefPresentFlag = true; 2127 for( Int i = 0; i < MAX_VPS_LAYER_ID _PLUS1 - 1; i++)2127 for( Int i = 0; i < MAX_VPS_LAYER_IDX_PLUS1 - 1; i++) 2128 2128 { 2129 2129 #if O0225_MAX_TID_FOR_REF_LAYERS 2130 for( Int j = 0; j < MAX_VPS_LAYER_ID _PLUS1; j++)2130 for( Int j = 0; j < MAX_VPS_LAYER_IDX_PLUS1; j++) 2131 2131 { 2132 2132 m_maxTidIlRefPicsPlus1[i][j] = m_uiMaxTLayers + 1; … … 3528 3528 Int layerNum = 0; 3529 3529 Int lsIdx = m_vpsNumLayerSetsMinus1 + 1 + i; 3530 for (Int layerId = 0; layerId < MAX_VPS_LAYER_ID _PLUS1; layerId++)3530 for (Int layerId = 0; layerId < MAX_VPS_LAYER_IDX_PLUS1; layerId++) 3531 3531 { 3532 3532 m_layerIdIncludedFlag[lsIdx][layerId] = false; -
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h
r1043 r1046 636 636 std::vector<Int> m_numLayerInIdList;; 637 637 #else 638 Int m_layerSetLayerIdList[MAX_VPS_LAYER_SETS_PLUS1 + MAX_NUM_ADD_LAYER_SETS][MAX_VPS_LAYER_ID _PLUS1];638 Int m_layerSetLayerIdList[MAX_VPS_LAYER_SETS_PLUS1 + MAX_NUM_ADD_LAYER_SETS][MAX_VPS_LAYER_IDX_PLUS1]; 639 639 Int m_numLayerInIdList[MAX_VPS_LAYER_SETS_PLUS1 + MAX_NUM_ADD_LAYER_SETS]; 640 640 #endif 641 641 #else 642 Int m_layerSetLayerIdList[MAX_VPS_LAYER_SETS_PLUS1][MAX_VPS_LAYER_ID _PLUS1];642 Int m_layerSetLayerIdList[MAX_VPS_LAYER_SETS_PLUS1][MAX_VPS_LAYER_IDX_PLUS1]; 643 643 Int m_numLayerInIdList[MAX_VPS_LAYER_SETS_PLUS1]; 644 644 #endif … … 653 653 #if Q0078_ADD_LAYER_SETS 654 654 UInt m_vpsNumLayerSetsMinus1; 655 Bool m_layerIdIncludedFlag[MAX_VPS_LAYER_SETS_PLUS1 + MAX_NUM_ADD_LAYER_SETS][MAX_VPS_LAYER_ID _PLUS1];656 #else 657 Bool m_layerIdIncludedFlag[MAX_VPS_LAYER_SETS_PLUS1][MAX_VPS_LAYER_ID _PLUS1];655 Bool m_layerIdIncludedFlag[MAX_VPS_LAYER_SETS_PLUS1 + MAX_NUM_ADD_LAYER_SETS][MAX_VPS_LAYER_IDX_PLUS1]; 656 #else 657 Bool m_layerIdIncludedFlag[MAX_VPS_LAYER_SETS_PLUS1][MAX_VPS_LAYER_IDX_PLUS1]; 658 658 #endif 659 659 … … 671 671 UInt m_dimensionIdLen[MAX_VPS_NUM_SCALABILITY_TYPES]; 672 672 Bool m_nuhLayerIdPresentFlag; 673 UInt m_layerIdInNuh[MAX_VPS_LAYER_ID _PLUS1]; // Maps layer ID in the VPS with layer_id_in_nuh674 UInt m_dimensionId[MAX_VPS_LAYER_ID _PLUS1][MAX_VPS_NUM_SCALABILITY_TYPES];673 UInt m_layerIdInNuh[MAX_VPS_LAYER_IDX_PLUS1]; // Maps layer ID in the VPS with layer_id_in_nuh 674 UInt m_dimensionId[MAX_VPS_LAYER_IDX_PLUS1][MAX_VPS_NUM_SCALABILITY_TYPES]; 675 675 676 676 // Below are derived variables 677 677 UInt m_numScalabilityTypes; 678 UInt m_layerIdxInVps[MAX_VPS_LAYER_ID _PLUS1]; // Maps layer_id_in_nuh with the layer ID in the VPS678 UInt m_layerIdxInVps[MAX_VPS_LAYER_IDX_PLUS1]; // Maps layer_id_in_nuh with the layer ID in the VPS 679 679 #endif 680 680 #if BITRATE_PICRATE_SIGNALLING … … 703 703 #if Q0078_ADD_LAYER_SETS 704 704 UInt m_outputLayerSetIdx[MAX_VPS_LAYER_SETS_PLUS1 + 2*MAX_NUM_ADD_LAYER_SETS]; 705 Bool m_outputLayerFlag[MAX_VPS_LAYER_SETS_PLUS1 + 2*MAX_NUM_ADD_LAYER_SETS][MAX_VPS_LAYER_ID _PLUS1];705 Bool m_outputLayerFlag[MAX_VPS_LAYER_SETS_PLUS1 + 2*MAX_NUM_ADD_LAYER_SETS][MAX_VPS_LAYER_IDX_PLUS1]; 706 706 #else 707 707 UInt m_outputLayerSetIdx[MAX_VPS_LAYER_SETS_PLUS1]; 708 Bool m_outputLayerFlag[MAX_VPS_LAYER_SETS_PLUS1][MAX_VPS_LAYER_ID _PLUS1];708 Bool m_outputLayerFlag[MAX_VPS_LAYER_SETS_PLUS1][MAX_VPS_LAYER_IDX_PLUS1]; 709 709 #endif 710 710 #endif 711 711 #if VPS_EXTN_DIRECT_REF_LAYERS 712 Bool m_directDependencyFlag[MAX_VPS_LAYER_ID _PLUS1][MAX_VPS_LAYER_ID_PLUS1];713 UInt m_numDirectRefLayers[MAX_VPS_LAYER_ID _PLUS1];714 UInt m_refLayerId[MAX_VPS_LAYER_ID _PLUS1][MAX_VPS_LAYER_ID_PLUS1];712 Bool m_directDependencyFlag[MAX_VPS_LAYER_IDX_PLUS1][MAX_VPS_LAYER_IDX_PLUS1]; 713 UInt m_numDirectRefLayers[MAX_VPS_LAYER_IDX_PLUS1]; 714 UInt m_refLayerId[MAX_VPS_LAYER_IDX_PLUS1][MAX_VPS_LAYER_IDX_PLUS1]; 715 715 UInt m_directDepTypeLen; 716 716 #if O0096_DEFAULT_DEPENDENCY_TYPE … … 718 718 UInt m_defaultDirectDependencyType; 719 719 #endif 720 UInt m_directDependencyType[MAX_VPS_LAYER_ID _PLUS1][MAX_VPS_LAYER_ID_PLUS1];720 UInt m_directDependencyType[MAX_VPS_LAYER_IDX_PLUS1][MAX_VPS_LAYER_IDX_PLUS1]; 721 721 #endif 722 722 UInt m_numProfileTierLevel; … … 741 741 Bool m_maxOneActiveRefLayerFlag; 742 742 #if O0062_POC_LSB_NOT_PRESENT_FLAG 743 Bool m_pocLsbNotPresentFlag[MAX_VPS_LAYER_ID _PLUS1];743 Bool m_pocLsbNotPresentFlag[MAX_VPS_LAYER_IDX_PLUS1]; 744 744 #endif 745 745 #if O0223_PICTURE_TYPES_ALIGN_FLAG … … 751 751 #endif 752 752 #if O0225_MAX_TID_FOR_REF_LAYERS 753 UInt m_maxTidIlRefPicsPlus1[MAX_VPS_LAYER_ID _PLUS1 - 1][MAX_VPS_LAYER_ID_PLUS1];754 #else 755 UInt m_maxTidIlRefPicsPlus1[MAX_VPS_LAYER_ID _PLUS1 - 1];753 UInt m_maxTidIlRefPicsPlus1[MAX_VPS_LAYER_IDX_PLUS1 - 1][MAX_VPS_LAYER_IDX_PLUS1]; 754 #else 755 UInt m_maxTidIlRefPicsPlus1[MAX_VPS_LAYER_IDX_PLUS1 - 1]; 756 756 #endif 757 757 Bool m_maxTidRefPresentFlag; … … 768 768 #if VPS_VUI_TILES_NOT_IN_USE__FLAG 769 769 Bool m_tilesNotInUseFlag; 770 Bool m_tilesInUseFlag[MAX_VPS_LAYER_ID _PLUS1];771 Bool m_loopFilterNotAcrossTilesFlag[MAX_VPS_LAYER_ID _PLUS1];770 Bool m_tilesInUseFlag[MAX_VPS_LAYER_IDX_PLUS1]; 771 Bool m_loopFilterNotAcrossTilesFlag[MAX_VPS_LAYER_IDX_PLUS1]; 772 772 #endif 773 Bool m_tileBoundariesAlignedFlag[MAX_VPS_LAYER_ID _PLUS1][MAX_VPS_LAYER_ID_PLUS1];773 Bool m_tileBoundariesAlignedFlag[MAX_VPS_LAYER_IDX_PLUS1][MAX_VPS_LAYER_IDX_PLUS1]; 774 774 #if VPS_VUI_WPP_NOT_IN_USE__FLAG 775 775 Bool m_wppNotInUseFlag; 776 Bool m_wppInUseFlag[MAX_VPS_LAYER_ID _PLUS1];776 Bool m_wppInUseFlag[MAX_VPS_LAYER_IDX_PLUS1]; 777 777 #endif 778 778 #if N0160_VUI_EXT_ILP_REF 779 779 Bool m_ilpRestrictedRefLayersFlag; 780 Int m_minSpatialSegmentOffsetPlus1[MAX_VPS_LAYER_ID _PLUS1][MAX_VPS_LAYER_ID_PLUS1];781 Bool m_ctuBasedOffsetEnabledFlag [MAX_VPS_LAYER_ID _PLUS1][MAX_VPS_LAYER_ID_PLUS1];782 Int m_minHorizontalCtuOffsetPlus1 [MAX_VPS_LAYER_ID _PLUS1][MAX_VPS_LAYER_ID_PLUS1];780 Int m_minSpatialSegmentOffsetPlus1[MAX_VPS_LAYER_IDX_PLUS1][MAX_VPS_LAYER_IDX_PLUS1]; 781 Bool m_ctuBasedOffsetEnabledFlag [MAX_VPS_LAYER_IDX_PLUS1][MAX_VPS_LAYER_IDX_PLUS1]; 782 Int m_minHorizontalCtuOffsetPlus1 [MAX_VPS_LAYER_IDX_PLUS1][MAX_VPS_LAYER_IDX_PLUS1]; 783 783 #endif 784 784 #if VPS_VUI_VIDEO_SIGNAL 785 785 Bool m_vidSigPresentVpsFlag; 786 786 Int m_vpsVidSigInfo; 787 Int m_vpsVidSigIdx[MAX_VPS_LAYER_ID _PLUS1];787 Int m_vpsVidSigIdx[MAX_VPS_LAYER_IDX_PLUS1]; 788 788 Int m_vpsVidFormat[16]; 789 789 Bool m_vpsFullRangeFlag[16]; … … 2409 2409 Bool m_interLayerPredEnabledFlag; 2410 2410 Int m_activeNumILRRefIdx; //< Active inter-layer reference pictures 2411 Int m_interLayerPredLayerIdc [MAX_VPS_LAYER_ID _PLUS1];2411 Int m_interLayerPredLayerIdc [MAX_VPS_LAYER_IDX_PLUS1]; 2412 2412 #if P0312_VERT_PHASE_ADJ 2413 Bool m_vertPhasePositionFlag[MAX_VPS_LAYER_ID _PLUS1];2413 Bool m_vertPhasePositionFlag[MAX_VPS_LAYER_IDX_PLUS1]; 2414 2414 #endif 2415 2415 #if POC_RESET_FLAG -
branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h
r1037 r1046 410 410 #define MAX_VPS_LAYER_SETS_PLUS1 1024 411 411 #define MAX_VPS_OUTPUT_LAYER_SETS_PLUS1 1024 412 #define MAX_VPS_LAYER_ID _PLUS1 MAX_LAYERS412 #define MAX_VPS_LAYER_IDX_PLUS1 MAX_LAYERS 413 413 #else 414 414 #define MAX_VPS_NUM_HRD_PARAMETERS 1
Note: See TracChangeset for help on using the changeset viewer.