Commit f211d5e8 authored by Johannes Sauer's avatar Johannes Sauer

added GBI (K0248) block statisitics

parent 61e87835
......@@ -433,6 +433,9 @@ void writeAllData(const CodingStructure& cs, const UnitArea& ctuArea)
DTRACE_BLOCK_SCALAR(g_trace_ctx, D_BLOCK_STATISTICS_ALL, cu, GetBlockStatisticName(BlockStatistic::IMVMode), cu.imv);
#endif
DTRACE_BLOCK_SCALAR(g_trace_ctx, D_BLOCK_STATISTICS_ALL, cu, GetBlockStatisticName(BlockStatistic::RootCbf), cu.rootCbf);
#if JVET_K0248_GBI
DTRACE_BLOCK_SCALAR(g_trace_ctx, D_BLOCK_STATISTICS_ALL, cu, GetBlockStatisticName(BlockStatistic::GBiIdx), cu.GBiIdx);
#endif
}
break;
case MODE_INTRA:
......@@ -453,6 +456,7 @@ void writeAllData(const CodingStructure& cs, const UnitArea& ctuArea)
DTRACE_BLOCK_SCALAR_CHROMA(g_trace_ctx, D_BLOCK_STATISTICS_ALL, cu, GetBlockStatisticName(BlockStatistic::PDPCFlag_Chroma), cu.pdpc);
DTRACE_BLOCK_SCALAR_CHROMA(g_trace_ctx, D_BLOCK_STATISTICS_ALL, cu, GetBlockStatisticName(BlockStatistic::NSSTIdx_Chroma), cu.nsstIdx);
#endif
}
const uint32_t numChType = ::getNumberValidChannels( cu.chromaFormat );
......@@ -472,10 +476,10 @@ void writeAllData(const CodingStructure& cs, const UnitArea& ctuArea)
{
const uint32_t uiChFinalMode = PU::getFinalIntraMode( pu, ChannelType( chType ) );
DTRACE_BLOCK_SCALAR_CHROMA(g_trace_ctx, D_BLOCK_STATISTICS_ALL, pu, GetBlockStatisticName(BlockStatistic::Chroma_IntraMode), uiChFinalMode);
#if ENABLE_CHROMA_422
#if ENABLE_CHROMA_422
assert(0);
#endif
}
#endif
}
}
}
}
......
......@@ -112,6 +112,9 @@ enum class BlockStatistic {
AffineType,
#endif
#endif
#if JVET_K0248_GBI
GBiIdx,
#endif
// for dual tree
// general
......@@ -206,6 +209,9 @@ static const std::map<BlockStatistic, std::tuple<std::string, BlockStatisticType
{ BlockStatistic::NSSTIdx, std::tuple<std::string, BlockStatisticType, std::string>{"NSSTIdx", BlockStatisticType::Integer, "[0, 3]"}},
#endif
#if JVET_K0248_GBI
{ BlockStatistic::GBiIdx, std::tuple<std::string, BlockStatisticType, std::string>{"GBiIdx", BlockStatisticType::Integer, "[0, " + std::to_string(GBI_NUM) + "]"}},
#endif
// for dual tree
{ BlockStatistic::PartSize_Chroma, std::tuple<std::string, BlockStatisticType, std::string>{"PartSize_Chroma", BlockStatisticType::Integer, "[0, " + std::to_string(NUMBER_OF_PART_SIZES) + "]"}},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment