Changeset 1375 in SHVCSoftware for branches/SHM-dev/source/App
- Timestamp:
- 22 Jul 2015, 05:35:56 (9 years ago)
- Location:
- branches/SHM-dev/source/App/TAppEncoder
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.cpp
r1374 r1375 999 999 #if SVC_EXTENSION 1000 1000 ExtendedProfileName extendedProfile[MAX_NUM_LAYER_IDS + 1]; 1001 1002 UInt tmpBitDepthConstraint; 1003 Bool tmpIntraConstraintFlag, tmpOnePictureOnlyConstraintFlag, tmpLowerBitRateConstraintFlag; 1001 1004 #else 1002 1005 ExtendedProfileName extendedProfile; … … 1226 1229 ("Level%d", m_levelList, Level::NONE, (MAX_NUM_LAYER_IDS + 1), "Level limit to be used, eg 5.1, or none") 1227 1230 ("Tier%d", m_levelTierList, Level::MAIN, (MAX_NUM_LAYER_IDS + 1), "Tier to use for interpretation of --Level (main or high only)") 1228 #endif 1229 ("MaxBitDepthConstraint", m_bitDepthConstraint,0u, "Bit depth to use for profile-constraint for RExt profiles. 0=automatically choose based upon other parameters")1231 1232 ("MaxBitDepthConstraint", tmpBitDepthConstraint, 0u, "Bit depth to use for profile-constraint for RExt profiles. 0=automatically choose based upon other parameters") 1230 1233 ("MaxChromaFormatConstraint", tmpConstraintChromaFormat, 0, "Chroma-format to use for the profile-constraint for RExt profiles. 0=automatically choose based upon other parameters") 1231 ("IntraConstraintFlag", m_intraConstraintFlag,false, "Value of general_intra_constraint_flag to use for RExt profiles (not used if an explicit RExt sub-profile is specified)")1232 ("OnePictureOnlyConstraintFlag", m_onePictureOnlyConstraintFlag,false, "Value of general_one_picture_only_constraint_flag to use for RExt profiles (not used if an explicit RExt sub-profile is specified)")1233 ("LowerBitRateConstraintFlag", m_lowerBitRateConstraintFlag, true, "Value of general_lower_bit_rate_constraint_flag to use for RExt profiles")1234 #if SVC_EXTENSION 1234 ("IntraConstraintFlag", tmpIntraConstraintFlag, false, "Value of general_intra_constraint_flag to use for RExt profiles (not used if an explicit RExt sub-profile is specified)") 1235 ("OnePictureOnlyConstraintFlag", tmpOnePictureOnlyConstraintFlag, false, "Value of general_one_picture_only_constraint_flag to use for RExt profiles (not used if an explicit RExt sub-profile is specified)") 1236 ("LowerBitRateConstraintFlag", tmpLowerBitRateConstraintFlag, true, "Value of general_lower_bit_rate_constraint_flag to use for RExt profiles") 1237 1235 1238 ("ProfileCompatibility%d", m_profileCompatibility, Profile::NONE, (MAX_NUM_LAYER_IDS + 1), "Compatible profile to be used when encoding") 1236 1239 ("ProgressiveSource%d", m_progressiveSourceFlagList, false, (MAX_NUM_LAYER_IDS + 1), "Indicate that source is progressive") … … 1259 1262 ("Level", m_level, Level::NONE, "Level limit to be used, eg 5.1, or none") 1260 1263 ("Tier", m_levelTier, Level::MAIN, "Tier to use for interpretation of --Level (main or high only)") 1264 1265 ("MaxBitDepthConstraint", m_bitDepthConstraint, 0u, "Bit depth to use for profile-constraint for RExt profiles. 0=automatically choose based upon other parameters") 1266 ("MaxChromaFormatConstraint", tmpConstraintChromaFormat, 0, "Chroma-format to use for the profile-constraint for RExt profiles. 0=automatically choose based upon other parameters") 1267 ("IntraConstraintFlag", m_intraConstraintFlag, false, "Value of general_intra_constraint_flag to use for RExt profiles (not used if an explicit RExt sub-profile is specified)") 1268 ("OnePictureOnlyConstraintFlag", m_onePictureOnlyConstraintFlag, false, "Value of general_one_picture_only_constraint_flag to use for RExt profiles (not used if an explicit RExt sub-profile is specified)") 1269 ("LowerBitRateConstraintFlag", m_lowerBitRateConstraintFlag, true, "Value of general_lower_bit_rate_constraint_flag to use for RExt profiles") 1261 1270 1262 1271 ("ProgressiveSource", m_progressiveSourceFlag, false, "Indicate that source is progressive") … … 1897 1906 } 1898 1907 1899 m_acLayerCfg[layer].m_bitDepthConstraint = m_bitDepthConstraint;1900 m_acLayerCfg[layer].m_intraConstraintFlag = m_intraConstraintFlag;1901 m_acLayerCfg[layer].m_lowerBitRateConstraintFlag = m_lowerBitRateConstraintFlag;1908 m_acLayerCfg[layer].m_bitDepthConstraint = tmpBitDepthConstraint; 1909 m_acLayerCfg[layer].m_intraConstraintFlag = tmpIntraConstraintFlag; 1910 m_acLayerCfg[layer].m_lowerBitRateConstraintFlag = tmpLowerBitRateConstraintFlag; 1902 1911 1903 1912 for (UInt channelType = 0; channelType < MAX_NUM_CHANNEL_TYPE; channelType++) … … 2957 2966 2958 2967 Int layerPTLIdx = m_acLayerCfg[layerIdx].m_layerPTLIdx; 2959 Profile::Name m_profile = m_profileList[layerPTLIdx]; 2960 UInt m_bitDepthConstraint = m_acLayerCfg[layerIdx].m_bitDepthConstraint; 2961 Bool m_intraConstraintFlag = m_acLayerCfg[layerIdx].m_intraConstraintFlag; 2962 Bool m_lowerBitRateConstraintFlag = m_acLayerCfg[layerIdx].m_lowerBitRateConstraintFlag; 2968 Profile::Name m_profile = m_profileList[layerPTLIdx]; 2969 UInt m_bitDepthConstraint = m_acLayerCfg[layerIdx].m_bitDepthConstraint; 2970 Bool m_intraConstraintFlag = m_acLayerCfg[layerIdx].m_intraConstraintFlag; 2971 Bool m_lowerBitRateConstraintFlag = m_acLayerCfg[layerIdx].m_lowerBitRateConstraintFlag; 2972 Bool m_onePictureOnlyConstraintFlag = m_acLayerCfg[layerIdx].m_onePictureOnlyConstraintFlag; 2963 2973 #else 2964 2974 Void TAppEncCfg::xCheckParameter() -
branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.h
r1369 r1375 147 147 Level::Tier m_levelTier; 148 148 Level::Name m_level; 149 #endif150 149 UInt m_bitDepthConstraint; 151 150 ChromaFormat m_chromaFormatConstraint; … … 153 152 Bool m_onePictureOnlyConstraintFlag; 154 153 Bool m_lowerBitRateConstraintFlag; 155 #if !SVC_EXTENSION156 154 Bool m_progressiveSourceFlag; 157 155 Bool m_interlacedSourceFlag; -
branches/SHM-dev/source/App/TAppEncoder/TAppEncLayerCfg.h
r1316 r1375 49 49 Bool m_intraConstraintFlag; 50 50 Bool m_lowerBitRateConstraintFlag; 51 Bool m_onePictureOnlyConstraintFlag; 51 52 #if AUXILIARY_PICTURES 52 53 Int m_auxId; -
branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp
r1369 r1375 229 229 m_acTEncTop[layer].setChromaFormatConstraintValue ( m_acLayerCfg[layer].m_chromaFormatConstraint ); 230 230 m_acTEncTop[layer].setIntraConstraintFlag ( m_acLayerCfg[layer].m_intraConstraintFlag ); 231 m_acTEncTop[layer].setOnePictureOnlyConstraintFlag ( m_ onePictureOnlyConstraintFlag );231 m_acTEncTop[layer].setOnePictureOnlyConstraintFlag ( m_acLayerCfg[layer].m_onePictureOnlyConstraintFlag ); 232 232 m_acTEncTop[layer].setLowerBitRateConstraintFlag ( m_acLayerCfg[layer].m_lowerBitRateConstraintFlag ); 233 233
Note: See TracChangeset for help on using the changeset viewer.