Commit ded212dc authored by Yu-Chi Su's avatar Yu-Chi Su Committed by Xiang Li

JVET-L0083: Reduce number of ALF fractional bit to 7

parent 2d917c9b
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment