toMap method

Map<String, num> toMap()

JSON-friendly snapshot of every field. Useful for log lines, metrics exporters, and golden tests. All numeric values are plain nums.

Implementation

Map<String, num> toMap() => {
      'frameIndex': frameIndex,
      'isKeyframe': isKeyframe ? 1 : 0,
      'qi': qi,
      'filterLevel': filterLevel,
      'totalMbCount': totalMbCount,
      'intraMbCount': intraMbCount,
      'zeroMvMbCount': zeroMvMbCount,
      'nearestMvMbCount': nearestMvMbCount,
      'nearMvMbCount': nearMvMbCount,
      'newMvMbCount': newMvMbCount,
      'newMvLastMbCount': newMvLastMbCount,
      'newMvGoldenMbCount': newMvGoldenMbCount,
      'newMvAltrefMbCount': newMvAltrefMbCount,
      'goldenRefMbCount': goldenRefMbCount,
      'altrefRefMbCount': altrefRefMbCount,
      'denoisedMbCount': denoisedMbCount,
      'staticShortCircuitMbCount': staticShortCircuitMbCount,
      'bytesEmitted': bytesEmitted,
      'meanAbsMvQuarterPel': meanAbsMvQuarterPel,
      'maxAbsMvQuarterPel': maxAbsMvQuarterPel,
      'encodeDurationMicros': encodeDurationMicros,
      'psnrY': psnrY,
    };