Skip to content
Snippets Groups Projects
Commit 99157bd9 authored by Kenneth Andersson's avatar Kenneth Andersson
Browse files

JVET-O0061 Halfpel MV threshold deblocking

parent 6cde9a49
No related branches found
No related tags found
No related merge requests found
...@@ -722,7 +722,11 @@ unsigned LoopFilter::xGetBoundaryStrengthSingle ( const CodingUnit& cu, const De ...@@ -722,7 +722,11 @@ unsigned LoopFilter::xGetBoundaryStrengthSingle ( const CodingUnit& cu, const De
if( 0 <= miQ.refIdx[0] ) { mvQ0 = miQ.mv[0]; } if( 0 <= miQ.refIdx[0] ) { mvQ0 = miQ.mv[0]; }
if( 0 <= miQ.refIdx[1] ) { mvQ1 = miQ.mv[1]; } if( 0 <= miQ.refIdx[1] ) { mvQ1 = miQ.mv[1]; }
#if JVET_O0061_MV_THR_DEBLOCKING
int nThreshold = (1 << MV_FRACTIONAL_BITS_INTERNAL) >> 1;
#else
int nThreshold = 1 << MV_FRACTIONAL_BITS_INTERNAL; int nThreshold = 1 << MV_FRACTIONAL_BITS_INTERNAL;
#endif
unsigned uiBs = 0; unsigned uiBs = 0;
//th can be optimized //th can be optimized
...@@ -774,7 +778,11 @@ unsigned LoopFilter::xGetBoundaryStrengthSingle ( const CodingUnit& cu, const De ...@@ -774,7 +778,11 @@ unsigned LoopFilter::xGetBoundaryStrengthSingle ( const CodingUnit& cu, const De
Mv mvP0 = miP.mv[0]; Mv mvP0 = miP.mv[0];
Mv mvQ0 = miQ.mv[0]; Mv mvQ0 = miQ.mv[0];
#if JVET_O0061_MV_THR_DEBLOCKING
int nThreshold = (1 << MV_FRACTIONAL_BITS_INTERNAL) >> 1;
#else
int nThreshold = 1 << MV_FRACTIONAL_BITS_INTERNAL; int nThreshold = 1 << MV_FRACTIONAL_BITS_INTERNAL;
#endif
return ( ( abs( mvQ0.getHor() - mvP0.getHor() ) >= nThreshold ) || ( abs( mvQ0.getVer() - mvP0.getVer() ) >= nThreshold ) ) ? (tmpBs + 1) : tmpBs; return ( ( abs( mvQ0.getHor() - mvP0.getHor() ) >= nThreshold ) || ( abs( mvQ0.getVer() - mvP0.getVer() ) >= nThreshold ) ) ? (tmpBs + 1) : tmpBs;
} }
......
...@@ -50,6 +50,8 @@ ...@@ -50,6 +50,8 @@
#include <assert.h> #include <assert.h>
#include <cassert> #include <cassert>
#define JVET_O0061_MV_THR_DEBLOCKING 1 // a deblocking mv threshold of half pel
#define JVET_O0046_DQ_SIGNALLING 1 // JVET-O0046: Move delta-QP earlier for 64x64 VPDU processing, applied to CUs >64x64 only #define JVET_O0046_DQ_SIGNALLING 1 // JVET-O0046: Move delta-QP earlier for 64x64 VPDU processing, applied to CUs >64x64 only
#define JVET_O0616_400_CHROMA_SUPPORT 1 // JVET-O0616: Various chroma format support in VVC #define JVET_O0616_400_CHROMA_SUPPORT 1 // JVET-O0616: Various chroma format support in VVC
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment