HEVC Test Model (HM)  HM-16.3
CommonDef.h File Reference

Defines constants, macros and tool parameters. More...

#include <algorithm>
#include <iostream>
#include <assert.h>
#include "TypeDef.h"
Include dependency graph for CommonDef.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

#define NV_VERSION   "16.3"
 Current software version. More...
 
#define NVM_COMPILEDBY   "[Unk-CXX]"
 
#define NVM_ONOS   "[Unk-OS]"
 
#define NVM_BITS   "[%d bit] ", (sizeof(Void*) == 8 ? 64 : 32)
 used for checking 64-bit O/S More...
 
#define NULL   0
 
#define _SUMMARY_OUT_   0
 print-out PSNR results of all slices to summary.txt More...
 
#define _SUMMARY_PIC_   0
 print-out PSNR results for each slice type to summary.txt More...
 
#define MAX_GOP   64
 max. value of hierarchical GOP size More...
 
#define MAX_NUM_REF_PICS   16
 max. number of pictures used for reference More...
 
#define MAX_NUM_REF   16
 max. number of entries in picture reference list More...
 
#define MAX_UINT   0xFFFFFFFFU
 max. value of unsigned 32-bit integer More...
 
#define MAX_INT   2147483647
 max. value of signed 32-bit integer More...
 
#define MAX_INT64   0x7FFFFFFFFFFFFFFFLL
 max. value of signed 64-bit integer More...
 
#define MAX_INTERMEDIATE_INT   MAX_INT
 
#define MAX_DOUBLE   1.7e+308
 max. value of Double-type value More...
 
#define MIN_QP   0
 
#define MAX_QP   51
 
#define NOT_VALID   -1
 
#define DATA_ALIGN   1
 use 32-bit aligned malloc/free More...
 
#define xMalloc(type, len)   malloc ( sizeof(type)*(len) )
 
#define xFree(ptr)   free ( ptr )
 
#define FATAL_ERROR_0(MESSAGE, EXITCODE)
 
#define AMVP_MAX_NUM_CANDS   2
 max number of final candidates More...
 
#define AMVP_MAX_NUM_CANDS_MEM   3
 max number of candidates More...
 
#define MRG_MAX_NUM_CANDS   5
 
#define DYN_REF_FREE   0
 dynamic free of reference memories More...
 
#define MAX_TLAYER   7
 max number of temporal layer More...
 
#define HB_LAMBDA_FOR_LDC   1
 use of B-style lambda for non-key pictures in low-delay mode More...
 
#define GPB_SIMPLE   1
 Simple GPB mode. More...
 
#define GPB_SIMPLE_UNI   1
 Simple mode for uni-direction. More...
 
#define FASTME_SMOOTHER_MV   1
 reduce ME time using faster option More...
 
#define ADAPT_SR_SCALE   1
 division factor for adaptive search range More...
 
#define CLIP_TO_709_RANGE   0
 
#define EARLY_SKIP_THRES   1.50
 if RD < thres*avg[BestSkipRD] More...
 
#define MAX_CHROMA_FORMAT_IDC   3
 
enum  NalUnitType {
  NAL_UNIT_CODED_SLICE_TRAIL_N = 0, NAL_UNIT_CODED_SLICE_TRAIL_R, NAL_UNIT_CODED_SLICE_TSA_N, NAL_UNIT_CODED_SLICE_TSA_R,
  NAL_UNIT_CODED_SLICE_STSA_N, NAL_UNIT_CODED_SLICE_STSA_R, NAL_UNIT_CODED_SLICE_RADL_N, NAL_UNIT_CODED_SLICE_RADL_R,
  NAL_UNIT_CODED_SLICE_RASL_N, NAL_UNIT_CODED_SLICE_RASL_R, NAL_UNIT_RESERVED_VCL_N10, NAL_UNIT_RESERVED_VCL_R11,
  NAL_UNIT_RESERVED_VCL_N12, NAL_UNIT_RESERVED_VCL_R13, NAL_UNIT_RESERVED_VCL_N14, NAL_UNIT_RESERVED_VCL_R15,
  NAL_UNIT_CODED_SLICE_BLA_W_LP, NAL_UNIT_CODED_SLICE_BLA_W_RADL, NAL_UNIT_CODED_SLICE_BLA_N_LP, NAL_UNIT_CODED_SLICE_IDR_W_RADL,
  NAL_UNIT_CODED_SLICE_IDR_N_LP, NAL_UNIT_CODED_SLICE_CRA, NAL_UNIT_RESERVED_IRAP_VCL22, NAL_UNIT_RESERVED_IRAP_VCL23,
  NAL_UNIT_RESERVED_VCL24, NAL_UNIT_RESERVED_VCL25, NAL_UNIT_RESERVED_VCL26, NAL_UNIT_RESERVED_VCL27,
  NAL_UNIT_RESERVED_VCL28, NAL_UNIT_RESERVED_VCL29, NAL_UNIT_RESERVED_VCL30, NAL_UNIT_RESERVED_VCL31,
  NAL_UNIT_VPS, NAL_UNIT_SPS, NAL_UNIT_PPS, NAL_UNIT_ACCESS_UNIT_DELIMITER,
  NAL_UNIT_EOS, NAL_UNIT_EOB, NAL_UNIT_FILLER_DATA, NAL_UNIT_PREFIX_SEI,
  NAL_UNIT_SUFFIX_SEI, NAL_UNIT_RESERVED_NVCL41, NAL_UNIT_RESERVED_NVCL42, NAL_UNIT_RESERVED_NVCL43,
  NAL_UNIT_RESERVED_NVCL44, NAL_UNIT_RESERVED_NVCL45, NAL_UNIT_RESERVED_NVCL46, NAL_UNIT_RESERVED_NVCL47,
  NAL_UNIT_UNSPECIFIED_48, NAL_UNIT_UNSPECIFIED_49, NAL_UNIT_UNSPECIFIED_50, NAL_UNIT_UNSPECIFIED_51,
  NAL_UNIT_UNSPECIFIED_52, NAL_UNIT_UNSPECIFIED_53, NAL_UNIT_UNSPECIFIED_54, NAL_UNIT_UNSPECIFIED_55,
  NAL_UNIT_UNSPECIFIED_56, NAL_UNIT_UNSPECIFIED_57, NAL_UNIT_UNSPECIFIED_58, NAL_UNIT_UNSPECIFIED_59,
  NAL_UNIT_UNSPECIFIED_60, NAL_UNIT_UNSPECIFIED_61, NAL_UNIT_UNSPECIFIED_62, NAL_UNIT_UNSPECIFIED_63,
  NAL_UNIT_INVALID
}
 
Int g_bitDepth [MAX_NUM_CHANNEL_TYPE]
 
template<typename T >
Clip3 (const T minVal, const T maxVal, const T a)
 general min/max clip More...
 
template<typename T >
ClipBD (const T x, const Int bitDepth)
 
template<typename T >
Clip (const T x, const ChannelType type)
 
template<typename T >
Void Check3 (T minVal, T maxVal, T a)
 general min/max clip More...
 
template<typename ValueType >
ValueType leftShift (const ValueType value, const Int shift)
 
template<typename ValueType >
ValueType rightShift (const ValueType value, const Int shift)
 
template<typename ValueType >
ValueType leftShift_round (const ValueType value, const Int shift)
 
template<typename ValueType >
ValueType rightShift_round (const ValueType value, const Int shift)
 

Detailed Description

Defines constants, macros and tool parameters.

Definition in file CommonDef.h.