diff --git a/source/Lib/CommonLib/Slice.h b/source/Lib/CommonLib/Slice.h index 76437b95e424e983b9fb54296cd19ff67a423da5..7353a126dc59047417f6db53179ef6d1b36038a8 100644 --- a/source/Lib/CommonLib/Slice.h +++ b/source/Lib/CommonLib/Slice.h @@ -2531,9 +2531,7 @@ private: int m_numAlfAps; //!< number of alf aps active for the picture std::vector<int> m_alfApsId; //!< list of alf aps for the picture int m_alfChromaApsId; //!< chroma alf aps ID -#if JVET_Q0358_ALF_NALU_TID_CONSTRAINT int m_alfChromaIdc; //!< alf chroma idc -#endif #if JVET_Q0795_CCALF bool m_ccalfEnabledFlag[MAX_NUM_COMPONENT]; int m_ccalfCbApsId; @@ -2711,10 +2709,8 @@ public: int getNumAlfAps() const { return m_numAlfAps; } void setAlfApsIdChroma(int i) { m_alfChromaApsId = i; } int getAlfApsIdChroma() const { return m_alfChromaApsId; } -#if JVET_Q0358_ALF_NALU_TID_CONSTRAINT void setAlfChromaIdc(int i) { m_alfChromaIdc = i; } int getAlfChromaIdc() const { return m_alfChromaIdc; } -#endif #if JVET_Q0795_CCALF void setCcAlfEnabledFlag(ComponentID compId, bool b) { m_ccalfEnabledFlag[compId] = b; } bool getCcAlfEnabledFlag(ComponentID compId) const { return m_ccalfEnabledFlag[compId]; } diff --git a/source/Lib/CommonLib/TypeDef.h b/source/Lib/CommonLib/TypeDef.h index ae13f4daf12adcc9d34aaa7bb5bcb931c8af4d0a..f031d5adff454ac6eca8ebd6fe15caf7e142d035 100644 --- a/source/Lib/CommonLib/TypeDef.h +++ b/source/Lib/CommonLib/TypeDef.h @@ -69,7 +69,6 @@ #define JVET_Q0471_CHROMA_QT_SPLIT 1 // JVET-Q0471: Chroma QT split -#define JVET_Q0358_ALF_NALU_TID_CONSTRAINT 1 // JVET-Q0358: TemporalId constraint between ALF_APS NALU and the pic associated with PH #define JVET_Q0118_CLEANUPS 1 // JVET-Q0118: AHG8/AHG9: Scalability HLS cleanups diff --git a/source/Lib/DecoderLib/VLCReader.cpp b/source/Lib/DecoderLib/VLCReader.cpp index b5e85badebc1b67cca442458765829fc764361a9..7a9969d31def6f05421a72b1d8bf80303c0907b1 100644 --- a/source/Lib/DecoderLib/VLCReader.cpp +++ b/source/Lib/DecoderLib/VLCReader.cpp @@ -2830,9 +2830,7 @@ void HLSyntaxReader::parsePictureHeader( PicHeader* picHeader, ParameterSetManag { alfChromaIdc = 0; } -#if JVET_Q0358_ALF_NALU_TID_CONSTRAINT picHeader->setAlfChromaIdc(alfChromaIdc); -#endif if (alfChromaIdc) { READ_CODE(3, uiCode, "ph_alf_aps_id_chroma"); @@ -3864,7 +3862,6 @@ void HLSyntaxReader::parsePictureHeader( PicHeader* picHeader, ParameterSetManag #endif } -#if JVET_Q0358_ALF_NALU_TID_CONSTRAINT void HLSyntaxReader::checkAlfNaluTidAndPicTid(Slice* pcSlice, PicHeader* picHeader, ParameterSetManager *parameterSetManager) { SPS* sps = parameterSetManager->getSPS(picHeader->getSPSId()); @@ -3890,7 +3887,6 @@ void HLSyntaxReader::checkAlfNaluTidAndPicTid(Slice* pcSlice, PicHeader* picHea } } } -#endif void HLSyntaxReader::parseSliceHeader (Slice* pcSlice, PicHeader* picHeader, ParameterSetManager *parameterSetManager, const int prevTid0POC) { uint32_t uiCode; @@ -3912,9 +3908,7 @@ void HLSyntaxReader::parseSliceHeader (Slice* pcSlice, PicHeader* picHeader, Par #endif CHECK(picHeader==0, "Invalid Picture Header"); CHECK(picHeader->isValid()==false, "Invalid Picture Header"); -#if JVET_Q0358_ALF_NALU_TID_CONSTRAINT checkAlfNaluTidAndPicTid(pcSlice, picHeader, parameterSetManager); -#endif pps = parameterSetManager->getPPS( picHeader->getPPSId() ); //!KS: need to add error handling code here, if PPS is not available CHECK(pps==0, "Invalid PPS"); diff --git a/source/Lib/DecoderLib/VLCReader.h b/source/Lib/DecoderLib/VLCReader.h index b372d0b107c1626659114a32681708fb24ca53e6..a9298d10eb8eeec4acd64cebe05cb898a72c0bac 100644 --- a/source/Lib/DecoderLib/VLCReader.h +++ b/source/Lib/DecoderLib/VLCReader.h @@ -182,9 +182,7 @@ public: #else void parsePictureHeader ( PicHeader* picHeader, ParameterSetManager *parameterSetManager ); #endif -#if JVET_Q0358_ALF_NALU_TID_CONSTRAINT void checkAlfNaluTidAndPicTid(Slice* pcSlice, PicHeader* picHeader, ParameterSetManager *parameterSetManager); -#endif void parseSliceHeader ( Slice* pcSlice, PicHeader* picHeader, ParameterSetManager *parameterSetManager, const int prevTid0POC ); #if JVET_Q0819_PH_CHANGES void getSlicePoc ( Slice* pcSlice, PicHeader* picHeader, ParameterSetManager *parameterSetManager, const int prevTid0POC );