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

Method fillStatisticList

YUViewLib/src/decoder/decoderDav1d.cpp:583–776  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

581}
582
583void decoderDav1d::fillStatisticList(stats::StatisticsData &statisticsData) const
584{
585 using namespace stats::color;
586
587 stats::StatisticsType predMode(0, "Pred Mode", ColorMapper({0, 1}, PredefinedType::Jet));
588 predMode.description = "The prediction mode (intra/inter) per block";
589 predMode.setMappingValues({"INTRA", "INTER"});
590 statisticsData.addStatType(predMode);
591
592 // LastActiveSegId indicates the real maximum. But that can also vary per frame.
593 // 255 is the maximum maximum.
594 stats::StatisticsType segmentID(1, "Segment ID", ColorMapper({0, 255}, PredefinedType::Jet));
595 segmentID.description =
596 "Specifies which segment is associated with the current intra block being decoded";
597 statisticsData.addStatType(segmentID);
598
599 stats::StatisticsType skip(2, "skip", ColorMapper({0, 1}, Color(0, 0, 0), Color(255, 0, 0)));
600 skip.description = "Equal to 0 indicates that there may be some transform coefficients for this "
601 "block. 1 Indicates there are none.";
602 statisticsData.addStatType(skip);
603
604 stats::StatisticsType skip_mode(
605 3, "skip_mode", ColorMapper({0, 1}, Color(0, 0, 0), Color(0, 255, 0)));
606 skip_mode.description = "Equal to 1 indicates that signaling of most of the mode info is skipped";
607 statisticsData.addStatType(skip_mode);
608
609 // Intra specific values
610
611 stats::StatisticsType intraPredModeLuma(
612 4, "intra pred mode (Y)", ColorMapper({0, 13}, PredefinedType::Jet));
613 intraPredModeLuma.description = "Intra prediction mode Luma (Y)";
614 intraPredModeLuma.setMappingValues({"DC_PRED",
615 "VERT_PRED",
616 "HOR_PRED",
617 "DIAG_DOWN_LEFT_PRED",
618 "DIAG_DOWN_RIGHT_PRED",
619 "VERT_RIGHT_PRED",
620 "HOR_DOWN_PRED",
621 "HOR_UP_PRED",
622 "VERT_LEFT_PRED",
623 "SMOOTH_PRED",
624 "SMOOTH_V_PRED",
625 "SMOOTH_H_PRED",
626 "PAETH_PRED",
627 "CFL_PRED"});
628 statisticsData.addStatType(intraPredModeLuma);
629
630 stats::StatisticsType intraPredModeChroma(
631 5, "intra pred mode (UV)", ColorMapper({0, 12}, PredefinedType::Jet));
632 intraPredModeChroma.description = "Intra prediction mode Chroma (UV)";
633 intraPredModeChroma.setMappingValues({"DC_PRED",
634 "VERT_PRED",
635 "HOR_PRED",
636 "DIAG_DOWN_LEFT_PRED",
637 "DIAG_DOWN_RIGHT_PRED",
638 "VERT_RIGHT_PRED",
639 "HOR_DOWN_PRED",
640 "HOR_UP_PRED",

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected