Changeset 1185 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h
- Timestamp:
- 8 Jul 2015, 03:34:13 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h
r1182 r1185 395 395 Bool getCpbDpbDelaysPresentFlag() { return getNalHrdParametersPresentFlag() || getVclHrdParametersPresentFlag(); } 396 396 397 #if VPS_VUI_BSP_HRD_PARAMS397 #if SVC_EXTENSION 398 398 Void copyCommonInformation( TComHRD *refHrd ) 399 399 { … … 725 725 #if O0164_MULTI_LAYER_HRD 726 726 Bool m_vpsVuiBspHrdPresentFlag; 727 #if VPS_VUI_BSP_HRD_PARAMS728 727 Int m_vpsNumAddHrdParams; 729 728 std::vector<Bool> m_cprmsAddPresentFlag; … … 736 735 Int m_bspHrdIdx [MAX_VPS_OUTPUT_LAYER_SETS_PLUS1][16][MAX_TLAYER][31][MAX_LAYERS]; 737 736 Int m_bspSchedIdx [MAX_VPS_OUTPUT_LAYER_SETS_PLUS1][16][MAX_TLAYER][31][MAX_LAYERS]; 738 #else739 UInt m_vpsNumBspHrdParametersMinus1;740 Bool m_bspCprmsPresentFlag[MAX_VPS_LAYER_SETS_PLUS1];741 TComHRD *m_bspHrd;742 UInt m_numBitstreamPartitions[MAX_VPS_LAYER_SETS_PLUS1];743 Bool m_layerInBspFlag[MAX_VPS_LAYER_SETS_PLUS1][8][MAX_LAYERS];744 UInt m_numBspSchedCombinations[MAX_VPS_LAYER_SETS_PLUS1];745 UInt m_bspCombHrdIdx[MAX_VPS_LAYER_SETS_PLUS1][16][16];746 UInt m_bspCombSchedIdx[MAX_VPS_LAYER_SETS_PLUS1][16][16];747 #endif748 737 #endif 749 738 UInt m_baseLayerPSCompatibilityFlag[MAX_LAYERS]; … … 822 811 Void createBspHrdParamBuffer(UInt numHrds) 823 812 { 824 #if VPS_VUI_BSP_HRD_PARAMS825 813 m_bspHrd.resize( numHrds ); 826 814 m_cprmsAddPresentFlag.resize( numHrds ); 827 815 m_numSubLayerHrdMinus1.resize( numHrds ); 828 #else829 m_bspHrd = new TComHRD[ numHrds ];830 #endif831 // m_hrdOpSetIdx = new UInt [ getNumHrdParameters() ];832 // m_cprmsPresentFlag = new Bool [ getNumHrdParameters() ];833 816 } 834 817 #endif … … 836 819 Int getBspHrdParamBufferCpbCntMinus1(UInt i, UInt sl) 837 820 { 838 #if VPS_VUI_BSP_HRD_PARAMS839 821 return m_bspHrd[i].getCpbCntMinus1(sl); 840 #else841 return m_bspHrd->getCpbCntMinus1(sl);842 #endif843 822 } 844 823 #endif … … 1058 1037 Void setAvgPicRate(Int i, Int j, Int x) { m_avgPicRate[i][j] = x; } 1059 1038 #if O0164_MULTI_LAYER_HRD 1060 Bool getVpsVuiBspHrdPresentFlag() { return m_vpsVuiBspHrdPresentFlag; } 1061 Void setVpsVuiBspHrdPresentFlag(Bool x) { m_vpsVuiBspHrdPresentFlag = x; } 1062 #if VPS_VUI_BSP_HRD_PARAMS 1063 Int getVpsNumAddHrdParams() { return m_vpsNumAddHrdParams; } 1064 Void setVpsNumAddHrdParams(Int i) { m_vpsNumAddHrdParams = i; } 1065 1066 Bool getCprmsAddPresentFlag(Int i) { return m_cprmsAddPresentFlag[i]; } 1067 Void setCprmsAddPresentFlag(Int i, Bool val) { m_cprmsAddPresentFlag[i] = val; } 1068 1069 Int getNumSubLayerHrdMinus1(Int i) { return m_numSubLayerHrdMinus1[i]; } 1070 Void setNumSubLayerHrdMinus1(Int i, Int val) { m_numSubLayerHrdMinus1[i] = val; } 1039 Bool getVpsVuiBspHrdPresentFlag() { return m_vpsVuiBspHrdPresentFlag; } 1040 Void setVpsVuiBspHrdPresentFlag(Bool x) { m_vpsVuiBspHrdPresentFlag = x; } 1041 Int getVpsNumAddHrdParams() { return m_vpsNumAddHrdParams; } 1042 Void setVpsNumAddHrdParams(Int i) { m_vpsNumAddHrdParams = i; } 1043 1044 Bool getCprmsAddPresentFlag(Int i) { return m_cprmsAddPresentFlag[i]; } 1045 Void setCprmsAddPresentFlag(Int i, Bool val) { m_cprmsAddPresentFlag[i] = val; } 1046 1047 Int getNumSubLayerHrdMinus1(Int i) { return m_numSubLayerHrdMinus1[i]; } 1048 Void setNumSubLayerHrdMinus1(Int i, Int val) { m_numSubLayerHrdMinus1[i] = val; } 1071 1049 1072 1050 TComHRD* getBspHrd(Int i) {return &m_bspHrd[i];} 1073 1051 1074 Int getNumSignalledPartitioningSchemes(Int i) { return m_numSignalledPartitioningSchemes[i]; }1075 Void setNumSignalledPartitioningSchemes(Int i, Int val) { m_numSignalledPartitioningSchemes[i] = val; }1076 1077 Int getNumPartitionsInSchemeMinus1(Int i, Int j) { return m_numPartitionsInSchemeMinus1[i][j];}1078 Void setNumPartitionsInSchemeMinus1(Int i, Int j, Int val) { m_numPartitionsInSchemeMinus1[i][j] = val; }1079 1080 Int getLayerIncludedInPartitionFlag(Int i, Int j, Int k, Int l) { return m_layerIncludedInPartitionFlag[i][j][k][l];}1052 Int getNumSignalledPartitioningSchemes(Int i) { return m_numSignalledPartitioningSchemes[i]; } 1053 Void setNumSignalledPartitioningSchemes(Int i, Int val) { m_numSignalledPartitioningSchemes[i] = val; } 1054 1055 Int getNumPartitionsInSchemeMinus1(Int i, Int j) { return m_numPartitionsInSchemeMinus1[i][j];} 1056 Void setNumPartitionsInSchemeMinus1(Int i, Int j, Int val) { m_numPartitionsInSchemeMinus1[i][j] = val; } 1057 1058 Int getLayerIncludedInPartitionFlag(Int i, Int j, Int k, Int l) { return m_layerIncludedInPartitionFlag[i][j][k][l];} 1081 1059 Void setLayerIncludedInPartitionFlag(Int i, Int j, Int k, Int l, Int val) { m_layerIncludedInPartitionFlag[i][j][k][l] = val; } 1082 1060 1083 Int getNumBspSchedulesMinus1(Int i, Int j, Int k) { return m_numBspSchedulesMinus1[i][j][k];} 1084 Void setNumBspSchedulesMinus1(Int i, Int j, Int k, Int val) { m_numBspSchedulesMinus1[i][j][k] = val; } 1085 1086 Int getBspSchedIdx(Int i, Int j, Int k, Int l, Int m) { return m_bspSchedIdx[i][j][k][l][m];} 1087 Void setBspSchedIdx(Int i, Int j, Int k, Int l, Int m, Int val) { m_bspSchedIdx[i][j][k][l][m] = val; } 1088 1089 Int getBspHrdIdx(Int i, Int j, Int k, Int l, Int m) { return m_bspHrdIdx[i][j][k][l][m];} 1090 Void setBspHrdIdx(Int i, Int j, Int k, Int l, Int m, Int val) { m_bspHrdIdx[i][j][k][l][m] = val; } 1091 #else 1092 UInt getVpsNumBspHrdParametersMinus1() { return m_vpsNumBspHrdParametersMinus1; } 1093 Void setVpsNumBspHrdParametersMinus1(UInt i) { m_vpsNumBspHrdParametersMinus1 = i; } 1094 Bool getBspCprmsPresentFlag(UInt i) { return m_bspCprmsPresentFlag[i]; } 1095 Void setBspCprmsPresentFlag(UInt i, Bool val) { m_bspCprmsPresentFlag[i] = val; } 1096 TComHRD* getBspHrd(UInt i) { return &m_bspHrd[i]; } 1097 UInt getNumBitstreamPartitions(UInt i) { return m_numBitstreamPartitions[i]; } 1098 Void setNumBitstreamPartitions(UInt i, UInt val) { m_numBitstreamPartitions[i] = val; } 1099 UInt getLayerInBspFlag(UInt h, UInt i, UInt j) { return m_layerInBspFlag[h][i][j]; } 1100 Void setLayerInBspFlag(UInt h, UInt i, UInt j, UInt val) { m_layerInBspFlag[h][i][j] = val; } 1101 UInt getNumBspSchedCombinations(UInt i) { return m_numBspSchedCombinations[i]; } 1102 Void setNumBspSchedCombinations(UInt i, UInt val) { m_numBspSchedCombinations[i] = val; } 1103 UInt getBspCombHrdIdx(UInt h, UInt i, UInt j) { return m_bspCombHrdIdx[h][i][j]; } 1104 Void setBspCombHrdIdx(UInt h, UInt i, UInt j, UInt val) { m_bspCombHrdIdx[h][i][j] = val; } 1105 UInt getBspCombSchedIdx(UInt h, UInt i, UInt j) { return m_bspCombSchedIdx[h][i][j]; } 1106 Void setBspCombSchedIdx(UInt h, UInt i, UInt j, UInt val) { m_bspCombSchedIdx[h][i][j] = val; } 1107 #endif 1061 Int getNumBspSchedulesMinus1(Int i, Int j, Int k) { return m_numBspSchedulesMinus1[i][j][k];} 1062 Void setNumBspSchedulesMinus1(Int i, Int j, Int k, Int val) { m_numBspSchedulesMinus1[i][j][k] = val; } 1063 1064 Int getBspSchedIdx(Int i, Int j, Int k, Int l, Int m) { return m_bspSchedIdx[i][j][k][l][m];} 1065 Void setBspSchedIdx(Int i, Int j, Int k, Int l, Int m, Int val) { m_bspSchedIdx[i][j][k][l][m] = val; } 1066 1067 Int getBspHrdIdx(Int i, Int j, Int k, Int l, Int m) { return m_bspHrdIdx[i][j][k][l][m];} 1068 Void setBspHrdIdx(Int i, Int j, Int k, Int l, Int m, Int val) { m_bspHrdIdx[i][j][k][l][m] = val; } 1108 1069 #endif 1109 1070 Void setBaseLayerPSCompatibilityFlag (Int layer, int val) { m_baseLayerPSCompatibilityFlag[layer] = val; }
Note: See TracChangeset for help on using the changeset viewer.