HEVC Test Model (HM)  HM-16.3
Functions | Variables
TComChromaFormat.h File Reference
#include "CommonDef.h"
#include "TComRectangle.h"
#include "ContextTables.h"
#include "TComRom.h"
#include <iostream>
#include <vector>
#include <assert.h>
#include "Debug.h"
Include dependency graph for TComChromaFormat.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static ChannelType toChannelType (const ComponentID id)
 
static Bool isLuma (const ComponentID id)
 
static Bool isLuma (const ChannelType id)
 
static Bool isChroma (const ComponentID id)
 
static Bool isChroma (const ChannelType id)
 
static UInt getChannelTypeScaleX (const ChannelType id, const ChromaFormat fmt)
 
static UInt getChannelTypeScaleY (const ChannelType id, const ChromaFormat fmt)
 
static UInt getComponentScaleX (const ComponentID id, const ChromaFormat fmt)
 
static UInt getComponentScaleY (const ComponentID id, const ChromaFormat fmt)
 
static UInt getNumberValidChannelTypes (const ChromaFormat fmt)
 
static UInt getNumberValidComponents (const ChromaFormat fmt)
 
static Bool isChromaEnabled (const ChromaFormat fmt)
 
static ComponentID getFirstComponentOfChannel (const ChannelType id)
 
InputColourSpaceConversion stringToInputColourSpaceConvert (const std::string &value, const Bool bIsForward)
 
std::string getListOfColourSpaceConverts (const Bool bIsForward)
 
static UInt getTotalSamples (const UInt width, const UInt height, const ChromaFormat format)
 
static UInt getTotalBits (const UInt width, const UInt height, const ChromaFormat format, const Int bitDepths[MAX_NUM_CHANNEL_TYPE])
 
static Bool enable4ChromaPUsInIntraNxNCU (const ChromaFormat chFmt)
 
static UInt getChromasCorrespondingPULumaIdx (const UInt lumaZOrderIdxInCtu, const ChromaFormat chFmt)
 
static UInt getMaxCUDepthOffset (const ChromaFormat chFmt, const UInt quadtreeTULog2MinSize)
 
static Bool filterIntraReferenceSamples (const ChannelType chType, const ChromaFormat chFmt, const Bool intraReferenceSmoothingDisabled)
 
static Bool TUCompRectHasAssociatedTransformSkipFlag (const TComRectangle &rectSamples, const UInt transformSkipLog2MaxSize)
 
static Int getTransformShift (const ChannelType type, const UInt uiLog2TrSize)
 
static Int getScaledChromaQP (Int unscaledChromaQP, const ChromaFormat chFmt)
 
static Int getScalingListType (const PredMode predMode, const ComponentID compID)
 
static Void getLastSignificantContextParameters (const ComponentID component, const Int width, const Int height, Int &result_offsetX, Int &result_offsetY, Int &result_shiftX, Int &result_shiftY)
 
static UInt getSignificanceMapContextOffset (const ComponentID component)
 
static UInt getContextSetIndex (const ComponentID component, const UInt subsetIndex, const Bool foundACoefficientGreaterThan1)
 
static UInt getCBFContextOffset (const ComponentID component)
 
Void getTUEntropyCodingParameters (TUEntropyCodingParameters &result, class TComTU &rTu, const ComponentID component)
 

Variables

static const UInt significanceMapContextStartTable [MAX_NUM_CHANNEL_TYPE] = { 0 , ( 0 + 28 ) }
 
static const UInt contextSetStartTable [MAX_NUM_CHANNEL_TYPE] = { 0 , ( 0 + 4 ) }
 
static const UInt CBFContextStartTable [MAX_NUM_CHANNEL_TYPE] = { 0 , ( 0 + 5 ) }
 

Function Documentation

static Bool enable4ChromaPUsInIntraNxNCU ( const ChromaFormat  chFmt)
inlinestatic

Definition at line 119 of file TComChromaFormat.h.

static Bool filterIntraReferenceSamples ( const ChannelType  chType,
const ChromaFormat  chFmt,
const Bool  intraReferenceSmoothingDisabled 
)
inlinestatic

Definition at line 147 of file TComChromaFormat.h.

static UInt getCBFContextOffset ( const ComponentID  component)
inlinestatic

Definition at line 258 of file TComChromaFormat.h.

static UInt getChannelTypeScaleX ( const ChannelType  id,
const ChromaFormat  fmt 
)
inlinestatic

Definition at line 58 of file TComChromaFormat.h.

static UInt getChannelTypeScaleY ( const ChannelType  id,
const ChromaFormat  fmt 
)
inlinestatic

Definition at line 59 of file TComChromaFormat.h.

static UInt getChromasCorrespondingPULumaIdx ( const UInt  lumaZOrderIdxInCtu,
const ChromaFormat  chFmt 
)
inlinestatic

Definition at line 129 of file TComChromaFormat.h.

static UInt getComponentScaleX ( const ComponentID  id,
const ChromaFormat  fmt 
)
inlinestatic

Definition at line 60 of file TComChromaFormat.h.

static UInt getComponentScaleY ( const ComponentID  id,
const ChromaFormat  fmt 
)
inlinestatic

Definition at line 61 of file TComChromaFormat.h.

static UInt getContextSetIndex ( const ComponentID  component,
const UInt  subsetIndex,
const Bool  foundACoefficientGreaterThan1 
)
inlinestatic

Definition at line 243 of file TComChromaFormat.h.

static ComponentID getFirstComponentOfChannel ( const ChannelType  id)
inlinestatic

Definition at line 65 of file TComChromaFormat.h.

static Void getLastSignificantContextParameters ( const ComponentID  component,
const Int  width,
const Int  height,
Int result_offsetX,
Int result_offsetY,
Int result_shiftX,
Int result_shiftY 
)
inlinestatic

Definition at line 211 of file TComChromaFormat.h.

std::string getListOfColourSpaceConverts ( const Bool  bIsForward)

Definition at line 81 of file TComChromaFormat.cpp.

static UInt getMaxCUDepthOffset ( const ChromaFormat  chFmt,
const UInt  quadtreeTULog2MinSize 
)
inlinestatic

Definition at line 138 of file TComChromaFormat.h.

static UInt getNumberValidChannelTypes ( const ChromaFormat  fmt)
inlinestatic

Definition at line 62 of file TComChromaFormat.h.

static UInt getNumberValidComponents ( const ChromaFormat  fmt)
inlinestatic

Definition at line 63 of file TComChromaFormat.h.

static Int getScaledChromaQP ( Int  unscaledChromaQP,
const ChromaFormat  chFmt 
)
inlinestatic

Definition at line 177 of file TComChromaFormat.h.

static Int getScalingListType ( const PredMode  predMode,
const ComponentID  compID 
)
inlinestatic

Definition at line 187 of file TComChromaFormat.h.

static UInt getSignificanceMapContextOffset ( const ComponentID  component)
inlinestatic

Definition at line 233 of file TComChromaFormat.h.

static UInt getTotalBits ( const UInt  width,
const UInt  height,
const ChromaFormat  format,
const Int  bitDepths[MAX_NUM_CHANNEL_TYPE] 
)
inlinestatic

Definition at line 93 of file TComChromaFormat.h.

static UInt getTotalSamples ( const UInt  width,
const UInt  height,
const ChromaFormat  format 
)
inlinestatic

Definition at line 72 of file TComChromaFormat.h.

static Int getTransformShift ( const ChannelType  type,
const UInt  uiLog2TrSize 
)
inlinestatic

Definition at line 165 of file TComChromaFormat.h.

Void getTUEntropyCodingParameters ( TUEntropyCodingParameters result,
class TComTU rTu,
const ComponentID  component 
)

Definition at line 96 of file TComChromaFormat.cpp.

static Bool isChroma ( const ComponentID  id)
inlinestatic

Definition at line 56 of file TComChromaFormat.h.

static Bool isChroma ( const ChannelType  id)
inlinestatic

Definition at line 57 of file TComChromaFormat.h.

static Bool isChromaEnabled ( const ChromaFormat  fmt)
inlinestatic

Definition at line 64 of file TComChromaFormat.h.

static Bool isLuma ( const ComponentID  id)
inlinestatic

Definition at line 54 of file TComChromaFormat.h.

static Bool isLuma ( const ChannelType  id)
inlinestatic

Definition at line 55 of file TComChromaFormat.h.

InputColourSpaceConversion stringToInputColourSpaceConvert ( const std::string &  value,
const Bool  bIsForward 
)

Definition at line 46 of file TComChromaFormat.cpp.

static ChannelType toChannelType ( const ComponentID  id)
inlinestatic

Definition at line 53 of file TComChromaFormat.h.

static Bool TUCompRectHasAssociatedTransformSkipFlag ( const TComRectangle rectSamples,
const UInt  transformSkipLog2MaxSize 
)
inlinestatic

Definition at line 157 of file TComChromaFormat.h.

Variable Documentation

const UInt CBFContextStartTable[MAX_NUM_CHANNEL_TYPE] = { 0 , ( 0 + 5 ) }
static

Definition at line 204 of file TComChromaFormat.h.

const UInt contextSetStartTable[MAX_NUM_CHANNEL_TYPE] = { 0 , ( 0 + 4 ) }
static

Definition at line 203 of file TComChromaFormat.h.

const UInt significanceMapContextStartTable[MAX_NUM_CHANNEL_TYPE] = { 0 , ( 0 + 28 ) }
static

Definition at line 202 of file TComChromaFormat.h.