34 #ifndef __TCOMCHROMAFORMAT__
35 #define __TCOMCHROMAFORMAT__
74 const UInt samplesPerChannel = width * height;
78 case CHROMA_400:
return samplesPerChannel;
break;
79 case CHROMA_420:
return (samplesPerChannel * 3) >> 1;
break;
80 case CHROMA_422:
return samplesPerChannel * 2;
break;
81 case CHROMA_444:
return samplesPerChannel * 3;
break;
83 std::cerr <<
"ERROR: Unrecognised chroma format in getTotalSamples()" << std::endl;
95 const UInt samplesPerChannel = width * height;
104 std::cerr <<
"ERROR: Unrecognised chroma format in getTotalSamples()" << std::endl;
132 const Int partsPerMinCU
144 return (chFmt==
CHROMA_422 && quadtreeTULog2MinSize>2) ? 1 : 0;
153 return (!intraReferenceSmoothingDisabled) && (
isLuma(chType) || (chFmt ==
CHROMA_444));
163 return (rectSamples.
width <= (1<<transformSkipLog2MaxSize));
171 return maxLog2TrDynamicRange - channelBitDepth - uiLog2TrSize;
222 result_offsetX = (
isChroma(component)) ? 0 : ((convertedWidth * 3) + ((convertedWidth + 1) >> 2));
223 result_offsetY = (
isChroma(component)) ? 0 : ((convertedHeight * 3) + ((convertedHeight + 1) >> 2));
224 result_shiftX = (
isChroma(component)) ? convertedWidth : ((convertedWidth + 3) >> 2);
225 result_shiftY = (
isChroma(component)) ? convertedHeight : ((convertedHeight + 3) >> 2);
244 const UInt subsetIndex,
245 const Bool foundACoefficientGreaterThan1)
247 const UInt notFirstSubsetOffset = (
isLuma(component) && (subsetIndex > 0)) ? 2 : 0;
248 const UInt foundAGreaterThan1Offset = foundACoefficientGreaterThan1 ? 1 : 0;
SChar g_aucConvertToBit[MAX_CU_SIZE+1]
#define FIRST_SIG_FLAG_CTX_CHROMA
Defines version information, constants and small in-line functions.
global variables & functions (header)
T Clip3(const T minVal, const T maxVal, const T a)
general min/max clip
Defines constants and tables for SBAC.
#define FIRST_CBF_CTX_LUMA
index of first luminance CBF context
ChromaFormat
chroma formats (according to semantics of chroma_format_idc)
#define FIRST_CTX_SET_LUMA
index of first luminance context set
#define FIRST_CBF_CTX_CHROMA
index of first chrominance CBF context
#define FIRST_SIG_FLAG_CTX_LUMA
#define FIRST_CTX_SET_CHROMA
index of first chrominance context set
InputColourSpaceConversion
static const Int chromaQPMappingTableSize
static const UInt MAX_UINT
max. value of unsigned 32-bit integer
PredMode
supported prediction type
const UChar g_aucChromaScale[NUM_CHROMA_FORMAT][chromaQPMappingTableSize]
Defines types and objects for environment-variable-based debugging and feature control.