HEVC Test Model (HM)  HM-16.3
TEncSearch.cpp File Reference

encoder search class More...

#include "TLibCommon/TypeDef.h"
#include "TLibCommon/TComRom.h"
#include "TLibCommon/TComMotionInfo.h"
#include "TEncSearch.h"
#include "TLibCommon/TComTU.h"
#include "TLibCommon/Debug.h"
#include <math.h>
#include <limits>
Include dependency graph for TEncSearch.cpp:

Go to the source code of this file.

#define FIRSTSEARCHSTOP   1
 
#define TZ_SEARCH_CONFIGURATION
 
#define SEL_SEARCH_CONFIGURATION
 
static const TComMv s_acMvRefineH [9]
 
static const TComMv s_acMvRefineQ [9]
 
static const UInt s_auiDFilter [9]
 
static Void offsetSubTUCBFs (TComTU &rTu, const ComponentID compID)
 

Detailed Description

encoder search class

Definition in file TEncSearch.cpp.

Macro Definition Documentation

#define FIRSTSEARCHSTOP   1

Definition at line 295 of file TEncSearch.cpp.

#define SEL_SEARCH_CONFIGURATION
Value:
const Bool bTestOtherPredictedMV = 1; \
const Bool bTestZeroVector = 1; \
const Bool bEnableRasterSearch = 1; \
const Bool bAlwaysRasterSearch = 0; /* ===== 1: BETTER but factor 15x slower ===== */ \
const Bool bStarRefinementEnable = 1; /* enable either star refinement or raster refinement */ \
const Bool bStarRefinementDiamond = 1; /* 1 = xTZ8PointDiamondSearch 0 = xTZ8PointSquareSearch */ \
const Bool bStarRefinementStop = 0; \
const UInt uiStarRefinementRounds = 2; /* star refinement stop X rounds after best match (must be >=1) */ \
const UInt uiSearchRange = m_iSearchRange; \
const Int uiSearchRangeInitial = m_iSearchRange >> 2; \
const Int uiSearchStep = 4; \
const Int iMVDistThresh = 8; \
unsigned int UInt
Definition: TypeDef.h:297
bool Bool
Definition: TypeDef.h:286
int Int
Definition: TypeDef.h:296

Definition at line 319 of file TEncSearch.cpp.

#define TZ_SEARCH_CONFIGURATION
Value:
const Int iRaster = 5; /* TZ soll von aussen ?ergeben werden */ \
const Bool bTestOtherPredictedMV = 0; \
const Bool bTestZeroVector = 1; \
const Bool bTestZeroVectorStart = 0; \
const Bool bTestZeroVectorStop = 0; \
const Bool bFirstSearchDiamond = 1; /* 1 = xTZ8PointDiamondSearch 0 = xTZ8PointSquareSearch */ \
const Bool bFirstSearchStop = FIRSTSEARCHSTOP; \
const UInt uiFirstSearchRounds = 3; /* first search stop X rounds after best match (must be >=1) */ \
const Bool bEnableRasterSearch = 1; \
const Bool bAlwaysRasterSearch = 0; /* ===== 1: BETTER but factor 2 slower ===== */ \
const Bool bRasterRefinementEnable = 0; /* enable either raster refinement or star refinement */ \
const Bool bRasterRefinementDiamond = 0; /* 1 = xTZ8PointDiamondSearch 0 = xTZ8PointSquareSearch */ \
const Bool bStarRefinementEnable = 1; /* enable either star refinement or raster refinement */ \
const Bool bStarRefinementDiamond = 1; /* 1 = xTZ8PointDiamondSearch 0 = xTZ8PointSquareSearch */ \
const Bool bStarRefinementStop = 0; \
const UInt uiStarRefinementRounds = 2; /* star refinement stop X rounds after best match (must be >=1) */ \
unsigned int UInt
Definition: TypeDef.h:297
bool Bool
Definition: TypeDef.h:286
#define FIRSTSEARCHSTOP
Definition: TEncSearch.cpp:295
int Int
Definition: TypeDef.h:296

Definition at line 300 of file TEncSearch.cpp.

Function Documentation

static Void offsetSubTUCBFs ( TComTU rTu,
const ComponentID  compID 
)
static

Definition at line 84 of file TEncSearch.cpp.

Variable Documentation

const TComMv s_acMvRefineQ[9]
static
Initial value:
=
{
TComMv( 0, 0 ),
TComMv( 0, -1 ),
TComMv( 0, 1 ),
TComMv( -1, -1 ),
TComMv( 1, -1 ),
TComMv( -1, 0 ),
TComMv( 1, 0 ),
TComMv( -1, 1 ),
TComMv( 1, 1 )
}
basic motion vector class
Definition: TComMv.h:51

Definition at line 64 of file TEncSearch.cpp.

const UInt s_auiDFilter[9]
static
Initial value:
=
{
0, 1, 0,
2, 3, 2,
0, 1, 0
}

Definition at line 77 of file TEncSearch.cpp.