MCPcopy Create free account
hub / github.com/IENT/YUView / fillStatisticList

Method fillStatisticList

YUViewLib/src/decoder/decoderLibde265.cpp:896–992  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

894}
895
896void decoderLibde265::fillStatisticList(stats::StatisticsData &statisticsData) const
897{
898 using namespace stats::color;
899
900 stats::StatisticsType sliceIdx(
901 0, "Slice Index", ColorMapper({0, 10}, Color(0, 0, 0), Color(255, 0, 0)));
902 sliceIdx.description = "The slice index reported per CTU";
903 statisticsData.addStatType(sliceIdx);
904
905 stats::StatisticsType partSize(1, "Part Size", ColorMapper({0, 7}, PredefinedType::Jet));
906 partSize.description = "The partition size of each CU into PUs";
907 partSize.setMappingValues({"PART_2Nx2N",
908 "PART_2NxN",
909 "PART_Nx2N",
910 "PART_NxN",
911 "PART_2NxnU",
912 "PART_2NxnD",
913 "PART_nLx2N",
914 "PART_nRx2N"});
915 statisticsData.addStatType(partSize);
916
917 stats::StatisticsType predMode(2, "Pred Mode", ColorMapper({0, 2}, PredefinedType::Jet));
918 predMode.description = "The internal libde265 prediction mode (intra/inter/skip) per CU";
919 predMode.setMappingValues({"INTRA", "INTER", "SKIP"});
920 statisticsData.addStatType(predMode);
921
922 stats::StatisticsType pcmFlag(
923 3, "PCM flag", ColorMapper({0, 1}, Color(0, 0, 0), Color(255, 0, 0)));
924 pcmFlag.description = "The PCM flag per CU";
925 statisticsData.addStatType(pcmFlag);
926
927 stats::StatisticsType transQuantBypass(
928 4, "Transquant Bypass Flag", ColorMapper({0, 1}, Color(0, 0, 0), Color(255, 0, 0)));
929 transQuantBypass.description = "The transquant bypass flag per CU";
930 statisticsData.addStatType(transQuantBypass);
931
932 stats::StatisticsType refIdx0(5, "Ref POC 0", ColorMapper({-16, 16}, PredefinedType::Col3_bblg));
933 refIdx0.description = "The reference POC in LIST 0 relative to the current POC per PU";
934 statisticsData.addStatType(refIdx0);
935
936 stats::StatisticsType refIdx1(6, "Ref POC 1", ColorMapper({-16, 16}, PredefinedType::Col3_bblg));
937 refIdx1.description = "The reference POC in LIST 1 relative to the current POC per PU";
938 statisticsData.addStatType(refIdx1);
939
940 stats::StatisticsType motionVec0(7, "Motion Vector 0", 4);
941 motionVec0.description = "The motion vector in LIST 0 per PU";
942 statisticsData.addStatType(motionVec0);
943
944 stats::StatisticsType motionVec1(8, "Motion Vector 1", 4);
945 motionVec1.description = "The motion vector in LIST 1 per PU";
946 statisticsData.addStatType(motionVec1);
947
948 stats::StatisticsType intraDirY(9, "Intra Dir Luma", ColorMapper({0, 34}, PredefinedType::Jet));
949 intraDirY.description =
950 "The intra mode for the luma component per TU (intra prediction is performed on a TU level)";
951 intraDirY.hasVectorData = true;
952 intraDirY.renderVectorData = true;
953 intraDirY.vectorScale = 32;

Callers

nothing calls this directly

Calls 4

ColorMapperClass · 0.85
ColorClass · 0.85
addStatTypeMethod · 0.80
setMappingValuesMethod · 0.80

Tested by

no test coverage detected