video_decode_stats.proto 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // Copyright 2017 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. syntax = "proto2";
  5. option optimize_for = LITE_RUNTIME;
  6. package media;
  7. // Proto representation of VideoDecodeStatsDB::DecodeStatsEntry. The values are
  8. // associated with a distinct VideoDecodeStatsDB::VideoDescKey.
  9. message DecodeStatsProto {
  10. // Required. Count of decoded video frames.
  11. optional uint64 frames_decoded = 1;
  12. // Required. Count of dropped video frames. Should not exceed
  13. // |frames_decoded|.
  14. optional uint64 frames_dropped = 2;
  15. // Required. Count of power efficiently decoded frames.
  16. optional uint64 frames_power_efficient = 3;
  17. // Required. Time of last data write from base::Time::ToJsTime(). Data will be
  18. // discarded when the date indicates its very old. This avoids a circumstance
  19. // where a few bad outlier playbacks permanently define a machines
  20. // capabilities.
  21. optional double last_write_date = 7;
  22. // Required (for those in the "unweighted" experiment). An unweighted average
  23. // of dropped frames percentage from the last |num_unweighted_playbacks|.
  24. optional double unweighted_average_frames_dropped = 8 [default = 0];
  25. // Required (for those in the "unweighted" experiment). An unweighted average
  26. // of efficient frames percentage from the last |num_unweighted_playbacks|.
  27. optional double unweighted_average_frames_efficient = 9 [default = 0];
  28. // Required (for those in the "unweighted" experiment). Count of playbacks
  29. // contributing to |unweighted_average_frames_*| fields.
  30. optional uint64 num_unweighted_playbacks = 10 [default = 0];
  31. }