HEVC Test Model (HM)  HM-16.3
Functions | Variables
Debug.cpp File Reference

Defines types and objects for environment-variable-based debugging and feature control. More...

#include "Debug.h"
#include <algorithm>
#include <math.h>
#include "TComDataCU.h"
#include "TComPic.h"
#include "TComYuv.h"
Include dependency graph for Debug.cpp:

Go to the source code of this file.

Functions

static Void printPair (const std::pair< std::string, std::string > &p)
 
static Void printVal (const EnvVar *env)
 
Void printMacroSettings ()
 
Void printSBACCoeffData (const UInt lastX, const UInt lastY, const UInt width, const UInt height, const UInt chan, const UInt absPart, const UInt scanIdx, const TCoeff *const pCoeff, const Bool finalEncode)
 
Void printCbfArray (TComDataCU *pcCU)
 
UInt getDecimalWidth (const Double value)
 
UInt getZScanIndex (const UInt x, const UInt y)
 
std::string splitOnSettings (const std::string &input)
 
std::string lineWrap (const std::string &input, const UInt maximumLineLength)
 
std::string indentNewLines (const std::string &input, const UInt indentBy)
 
Void printBlockToStream (std::ostream &ss, const Char *pLinePrefix, TComYuv &src, const UInt numSubBlocksAcross, const UInt numSubBlocksUp, const UInt defWidth)
 

Variables

static const UInt settingNameWidth = 66
 
static const UInt settingHelpWidth = 84
 
static const UInt settingValueWidth = 3
 
EnvVar Debug ("-- Debugging","","")
 
UInt g_debugCounter = 0
 
Bool g_printDebug = false
 
Voidg_debugAddr = 0
 

Detailed Description

Defines types and objects for environment-variable-based debugging and feature control.

Definition in file Debug.cpp.

Function Documentation

UInt getDecimalWidth ( const Double  value)

Definition at line 255 of file Debug.cpp.

UInt getZScanIndex ( const UInt  x,
const UInt  y 
)

Definition at line 261 of file Debug.cpp.

std::string indentNewLines ( const std::string &  input,
const UInt  indentBy 
)

Definition at line 401 of file Debug.cpp.

std::string lineWrap ( const std::string &  input,
const UInt  maximumLineLength 
)

Definition at line 325 of file Debug.cpp.

Void printBlockToStream ( std::ostream &  ss,
const Char pLinePrefix,
TComYuv src,
const UInt  numSubBlocksAcross,
const UInt  numSubBlocksUp,
const UInt  defWidth 
)

Definition at line 424 of file Debug.cpp.

Void printCbfArray ( TComDataCU pcCU)

Definition at line 237 of file Debug.cpp.

Void printMacroSettings ( )

Definition at line 167 of file Debug.cpp.

static Void printPair ( const std::pair< std::string, std::string > &  p)
inlinestatic

Definition at line 72 of file Debug.cpp.

Void printSBACCoeffData ( const UInt  lastX,
const UInt  lastY,
const UInt  width,
const UInt  height,
const UInt  chan,
const UInt  absPart,
const UInt  scanIdx,
const TCoeff *const  pCoeff,
const Bool  finalEncode 
)

Definition at line 207 of file Debug.cpp.

static Void printVal ( const EnvVar env)
inlinestatic

Definition at line 84 of file Debug.cpp.

std::string splitOnSettings ( const std::string &  input)

Definition at line 286 of file Debug.cpp.

Variable Documentation

EnvVar Debug("-- Debugging","","")
Void* g_debugAddr = 0

Definition at line 195 of file Debug.cpp.

UInt g_debugCounter = 0

Definition at line 193 of file Debug.cpp.

Bool g_printDebug = false

Definition at line 194 of file Debug.cpp.

const UInt settingHelpWidth = 84
static

Definition at line 46 of file Debug.cpp.

const UInt settingNameWidth = 66
static

Definition at line 45 of file Debug.cpp.

const UInt settingValueWidth = 3
static

Definition at line 47 of file Debug.cpp.