webrtc_video_stats.proto 1.1 KB

1234567891011121314151617181920212223242526272829
  1. // Copyright 2022 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. message WebrtcVideoStatsProto {
  8. // Required. Timestamp of this entry from base::Time::ToJsTimeIgnoringNull().
  9. // Data will be discarded when the date indicates its very old. This avoids a
  10. // circumstance where a few bad outlier playbacks permanently define a
  11. // machines capabilities.
  12. optional double timestamp = 1;
  13. // Required. Number of frames that this entry is based on.
  14. optional uint32 frames_processed = 2;
  15. // Required. Number of key frames out of the total number of frames.
  16. optional uint32 key_frames_processed = 3;
  17. // Required. The 99th percentile of the processing time.
  18. optional float p99_processing_time_ms = 4;
  19. }
  20. // Proto representation of WebrtcVideoStatsDB::VideoStatsEntry. The values are
  21. // associated with a distinct WebrtcVideoStatsDB::VideoDescKey.
  22. message WebrtcVideoStatsEntryProto {
  23. repeated WebrtcVideoStatsProto stats = 1;
  24. }