HEVC Test Model (HM)  HM-16.18
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions | Variables
WeightPredAnalysis.cpp File Reference

weighted prediction encoder class More...

#include "../TLibCommon/CommonDef.h"
#include "../TLibCommon/TComSlice.h"
#include "../TLibCommon/TComPic.h"
#include "../TLibCommon/TComPicYuv.h"
#include "WeightPredAnalysis.h"
#include <limits>
Include dependency graph for WeightPredAnalysis.cpp:

Go to the source code of this file.

Functions

static Int64 xCalcSADvalueWP (const Int bitDepth, const Pel *pOrgPel, const Pel *pRefPel, const Int width, const Int height, const Int orgStride, const Int refStride, const Int log2Denom, const Int weight, const Int offset, const Bool useHighPrecision)
 calculate SAD values for both WP version and non-WP version. More...
 
static Int64 xCalcSADvalueWPOptionalClip (const Int bitDepth, const Pel *pOrgPel, const Pel *pRefPel, const Int width, const Int height, const Int orgStride, const Int refStride, const Int log2Denom, const Int weight, const Int offset, const Bool useHighPrecision, const Bool clipped)
 calculate SAD values for both WP version and non-WP version. More...
 
static Void xCalcHistogram (const Pel *pPel, std::vector< Int > &histogram, const Int width, const Int height, const Int stride, const Int maxPel)
 calculate Histogram for array of pixels More...
 
static Distortion xCalcHistDistortion (const std::vector< Int > &histogram0, const std::vector< Int > &histogram1)
 
static void xScaleHistogram (const std::vector< Int > &histogramInput, std::vector< Int > &histogramOutput, const Int bitDepth, const Int log2Denom, const Int weight, const Int offset, const Bool bHighPrecision)
 
static Distortion xSearchHistogram (const std::vector< Int > &histogramSource, const std::vector< Int > &histogramRef, std::vector< Int > &outputHistogram, const Int bitDepth, const Int log2Denom, Int &weightToUpdate, Int &offsetToUpdate, const Bool bHighPrecision, const ComponentID compID)
 

Variables

static const Double WEIGHT_PRED_SAD_RELATIVE_TO_NON_WEIGHT_PRED_SAD =0.99
 

Detailed Description

weighted prediction encoder class

Definition in file WeightPredAnalysis.cpp.

Function Documentation

static Distortion xCalcHistDistortion ( const std::vector< Int > &  histogram0,
const std::vector< Int > &  histogram1 
)
static

Definition at line 103 of file WeightPredAnalysis.cpp.

static Void xCalcHistogram ( const Pel pPel,
std::vector< Int > &  histogram,
const Int  width,
const Int  height,
const Int  stride,
const Int  maxPel 
)
static

calculate Histogram for array of pixels

Definition at line 82 of file WeightPredAnalysis.cpp.

static Int64 xCalcSADvalueWP ( const Int  bitDepth,
const Pel pOrgPel,
const Pel pRefPel,
const Int  width,
const Int  height,
const Int  orgStride,
const Int  refStride,
const Int  log2Denom,
const Int  weight,
const Int  offset,
const Bool  useHighPrecision 
)
static

calculate SAD values for both WP version and non-WP version.

Definition at line 647 of file WeightPredAnalysis.cpp.

static Int64 xCalcSADvalueWPOptionalClip ( const Int  bitDepth,
const Pel pOrgPel,
const Pel pRefPel,
const Int  width,
const Int  height,
const Int  orgStride,
const Int  refStride,
const Int  log2Denom,
const Int  weight,
const Int  offset,
const Bool  useHighPrecision,
const Bool  clipped 
)
static

calculate SAD values for both WP version and non-WP version.

Definition at line 679 of file WeightPredAnalysis.cpp.

static void xScaleHistogram ( const std::vector< Int > &  histogramInput,
std::vector< Int > &  histogramOutput,
const Int  bitDepth,
const Int  log2Denom,
const Int  weight,
const Int  offset,
const Bool  bHighPrecision 
)
static

Definition at line 120 of file WeightPredAnalysis.cpp.

static Distortion xSearchHistogram ( const std::vector< Int > &  histogramSource,
const std::vector< Int > &  histogramRef,
std::vector< Int > &  outputHistogram,
const Int  bitDepth,
const Int  log2Denom,
Int weightToUpdate,
Int offsetToUpdate,
const Bool  bHighPrecision,
const ComponentID  compID 
)
static

Definition at line 149 of file WeightPredAnalysis.cpp.

Variable Documentation

const Double WEIGHT_PRED_SAD_RELATIVE_TO_NON_WEIGHT_PRED_SAD =0.99
static

Definition at line 45 of file WeightPredAnalysis.cpp.