HEVC Test Model (HM)  HM-16.18
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 TChar *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
 

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 253 of file Debug.cpp.

UInt getZScanIndex ( const UInt  x,
const UInt  y 
)

Definition at line 259 of file Debug.cpp.

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

Definition at line 399 of file Debug.cpp.

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

Definition at line 323 of file Debug.cpp.

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

Definition at line 422 of file Debug.cpp.

Void printCbfArray ( TComDataCU pcCU)

Definition at line 235 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 205 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 284 of file Debug.cpp.

Variable Documentation

EnvVar Debug("-- Debugging","","")
UInt g_debugCounter = 0

Definition at line 193 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.