...
 
Commits (4)
......@@ -489,7 +489,12 @@ void AdaptiveLoopFilter::filterBlk( AlfClassifier** classifier, const PelUnitBuf
short *coef = filterSet;
#if JVET_L0083_ALF_FRAC_BIT
const int shift = m_NUM_BITS - 1;
#else
const int shift = 9;
#endif
const int offset = 1 << ( shift - 1 );
int transposeIdx = 0;
......
......@@ -66,7 +66,11 @@ enum Direction
class AdaptiveLoopFilter
{
public:
#if JVET_L0083_ALF_FRAC_BIT
static constexpr int m_NUM_BITS = 8;
#else
static constexpr int m_NUM_BITS = 10;
#endif
static constexpr int m_CLASSIFICATION_BLK_SIZE = 32; //non-normative, local buffer size
AdaptiveLoopFilter();
......
......@@ -50,6 +50,8 @@
#include <assert.h>
#include <cassert>
#define JVET_L0083_ALF_FRAC_BIT 1 // Reduce number of ALF fractional bit to 7
#define JVET_L0082_ALF_COEF_BITS 1 // ALF filter coefficient bitwidth constraints: 10-bit
#define REUSE_CU_RESULTS 1
......
......@@ -542,15 +542,15 @@ void DecCu::xDeriveCUMV( CodingUnit &cu )
pu.mvpNum [eRefList] = amvpInfo.numCand;
pu.mv [eRefList] = amvpInfo.mvCand[pu.mvpIdx [eRefList]] + pu.mvd[eRefList];
if( pu.cs->sps->getSpsNext().getUseAffine() )
{
#if REMOVE_MV_ADAPT_PREC
pu.mv[eRefList].hor = pu.mv[eRefList].hor << VCEG_AZ07_MV_ADD_PRECISION_BIT_FOR_STORE;
pu.mv[eRefList].ver = pu.mv[eRefList].ver << VCEG_AZ07_MV_ADD_PRECISION_BIT_FOR_STORE;
pu.mv[eRefList].hor = pu.mv[eRefList].hor << VCEG_AZ07_MV_ADD_PRECISION_BIT_FOR_STORE;
pu.mv[eRefList].ver = pu.mv[eRefList].ver << VCEG_AZ07_MV_ADD_PRECISION_BIT_FOR_STORE;
#else
if( pu.cs->sps->getSpsNext().getUseAffine() )
{
pu.mv[eRefList].setHighPrec();
#endif
}
#endif
}
}
}
......