From 0da2e5e63b6a883f40cfbd674d4988c40c3670a4 Mon Sep 17 00:00:00 2001 From: Karsten Suehring <karsten.suehring@hhi.fraunhofer.de> Date: Mon, 6 Jul 2020 15:15:43 +0200 Subject: [PATCH] remove macro JVET_R0245_LEVEL_CODING --- source/App/EncoderApp/EncAppCfg.cpp | 8 -------- source/Lib/CommonLib/ProfileLevelTier.cpp | 8 -------- source/Lib/CommonLib/ProfileLevelTier.h | 4 ---- source/Lib/CommonLib/TypeDef.h | 20 -------------------- source/Lib/EncoderLib/EncGOP.cpp | 4 ---- 5 files changed, 44 deletions(-) diff --git a/source/App/EncoderApp/EncAppCfg.cpp b/source/App/EncoderApp/EncAppCfg.cpp index b68ddfe29..c8f911f2e 100644 --- a/source/App/EncoderApp/EncAppCfg.cpp +++ b/source/App/EncoderApp/EncAppCfg.cpp @@ -280,11 +280,7 @@ strToLevel[] = {"6", Level::LEVEL6}, {"6.1", Level::LEVEL6_1}, {"6.2", Level::LEVEL6_2}, -#if JVET_R0245_LEVEL_CODING {"15.5", Level::LEVEL15_5}, -#else - {"8.5", Level::LEVEL8_5}, -#endif }; #if U0132_TARGET_BITS_SATURATION @@ -720,11 +716,7 @@ bool EncAppCfg::parseCfg( int argc, char* argv[] ) SMultiValueInput<uint32_t> cfg_subPicId(0, std::numeric_limits<uint16_t>::max(), 0, MAX_NUM_SUB_PICS); SMultiValueInput<int> cfg_sliFractions(0, 100, 0, std::numeric_limits<int>::max()); -#if JVET_R0245_LEVEL_CODING SMultiValueInput<Level::Name> cfg_sliRefLevels(Level::NONE, Level::LEVEL15_5, 0, 8); -#else - SMultiValueInput<Level::Name> cfg_sliRefLevels(Level::NONE, Level::LEVEL8_5, 0, 8); -#endif int warnUnknowParameter = 0; diff --git a/source/Lib/CommonLib/ProfileLevelTier.cpp b/source/Lib/CommonLib/ProfileLevelTier.cpp index 0883e29d8..10bbb136e 100644 --- a/source/Lib/CommonLib/ProfileLevelTier.cpp +++ b/source/Lib/CommonLib/ProfileLevelTier.cpp @@ -70,11 +70,7 @@ static const LevelTierFeatures mainLevelTierInfo[] = { Level::LEVEL6 , 35651584, { 80000, 240000 }, 600, 22, 20, 1069547520ULL, { 60000, 240000 }, { 8, 4} }, { Level::LEVEL6_1, 35651584, { 120000, 480000 }, 600, 22, 20, 2139095040ULL, { 120000, 480000 }, { 8, 4} }, { Level::LEVEL6_2, 35651584, { 180000, 800000 }, 600, 22, 20, 4278190080ULL, { 240000, 800000 }, { 8, 4} }, -#if JVET_R0245_LEVEL_CODING { Level::LEVEL15_5, MAX_UINT, { MAX_UINT, MAX_UINT }, MAX_UINT, MAX_UINT, MAX_UINT, MAX_CNFUINT64, {MAX_UINT, MAX_UINT }, { 0, 0} }, -#else - { Level::LEVEL8_5, MAX_UINT, { MAX_UINT, MAX_UINT }, MAX_UINT, MAX_UINT, MAX_UINT, MAX_CNFUINT64, {MAX_UINT, MAX_UINT }, { 0, 0} }, -#endif { Level::NONE } }; @@ -122,11 +118,7 @@ ProfileLevelTierFeatures::extractPTLInformation(const SPS &sps) // Now identify the level: const LevelTierFeatures *pLTF = m_pProfile->pLevelTiersListInfo; const Level::Name spsLevelName = spsPtl.getLevelIdc(); -#if JVET_R0245_LEVEL_CODING if (spsLevelName!=Level::LEVEL15_5 || m_pProfile->canUseLevel15p5) -#else - if (spsLevelName!=Level::LEVEL8_5 || m_pProfile->canUseLevel8p5) -#endif { for(int i=0; pLTF[i].level!=Level::NONE; i++) { diff --git a/source/Lib/CommonLib/ProfileLevelTier.h b/source/Lib/CommonLib/ProfileLevelTier.h index 6136fb549..6d89d5ae3 100644 --- a/source/Lib/CommonLib/ProfileLevelTier.h +++ b/source/Lib/CommonLib/ProfileLevelTier.h @@ -70,11 +70,7 @@ struct ProfileFeatures uint32_t maxBitDepth; ChromaFormat maxChromaFormat; -#if JVET_R0245_LEVEL_CODING bool canUseLevel15p5; -#else - bool canUseLevel8p5; -#endif uint32_t cpbVclFactor; uint32_t cpbNalFactor; uint32_t formatCapabilityFactorx1000; diff --git a/source/Lib/CommonLib/TypeDef.h b/source/Lib/CommonLib/TypeDef.h index d245ff15f..b789b4733 100644 --- a/source/Lib/CommonLib/TypeDef.h +++ b/source/Lib/CommonLib/TypeDef.h @@ -152,7 +152,6 @@ -#define JVET_R0245_LEVEL_CODING 1 // JVET-R0245: level coding numbering scheme #define STILL_PICTURE_PROFILES 1 // Adds support for still picture profiles @@ -803,7 +802,6 @@ namespace Level enum Name { -#if JVET_R0245_LEVEL_CODING // code = (major_level * 16 + minor_level * 3) NONE = 0, LEVEL1 = 16, @@ -820,24 +818,6 @@ namespace Level LEVEL6_1 = 99, LEVEL6_2 = 102, LEVEL15_5 = 255, -#else - // code = (level * 30) - NONE = 0, - LEVEL1 = 30, - LEVEL2 = 60, - LEVEL2_1 = 63, - LEVEL3 = 90, - LEVEL3_1 = 93, - LEVEL4 = 120, - LEVEL4_1 = 123, - LEVEL5 = 150, - LEVEL5_1 = 153, - LEVEL5_2 = 156, - LEVEL6 = 180, - LEVEL6_1 = 183, - LEVEL6_2 = 186, - LEVEL8_5 = 255, -#endif }; } diff --git a/source/Lib/EncoderLib/EncGOP.cpp b/source/Lib/EncoderLib/EncGOP.cpp index 94cdc383f..2ca92dcdc 100644 --- a/source/Lib/EncoderLib/EncGOP.cpp +++ b/source/Lib/EncoderLib/EncGOP.cpp @@ -1181,11 +1181,7 @@ validateMinCrRequirements(const ProfileLevelTierFeatures &plt, std::size_t numBy // numBytesInVclNalUnits shall be less than or equal to // FormatCapabilityFactor * MaxLumaSr * framePeriod / MinCr, // ( = FormatCapabilityFactor * MaxLumaSr / (MinCr * frameRate), -#if JVET_R0245_LEVEL_CODING if (plt.getLevelTierFeatures() && plt.getProfileFeatures() && plt.getLevelTierFeatures()->level!=Level::LEVEL15_5) -#else - if (plt.getLevelTierFeatures() && plt.getProfileFeatures() && plt.getLevelTierFeatures()->level!=Level::LEVEL8_5) -#endif { const uint32_t formatCapabilityFactorx1000 = plt.getProfileFeatures()->formatCapabilityFactorx1000; const uint64_t maxLumaSr = plt.getLevelTierFeatures()->maxLumaSr; -- GitLab