summaryrefslogtreecommitdiff
path: root/chromium/media/capabilities/webrtc_video_stats.proto
blob: 157952dad411876e7165eca885144836ed4bbe09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright 2022 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

syntax = "proto2";

option optimize_for = LITE_RUNTIME;

package media;

message WebrtcVideoStatsProto {
  // Required. Timestamp of this entry from base::Time::ToJsTimeIgnoringNull().
  // Data will be discarded when the date indicates its very old. This avoids a
  // circumstance where a few bad outlier playbacks permanently define a
  // machines capabilities.
  optional double timestamp = 1;
  // Required. Number of frames that this entry is based on.
  optional uint32 frames_processed = 2;
  // Required. Number of key frames out of the total number of frames.
  optional uint32 key_frames_processed = 3;
  // Required. The 99th percentile of the processing time.
  optional float p99_processing_time_ms = 4;
}

// Proto representation of WebrtcVideoStatsDB::VideoStatsEntry. The values are
// associated with a distinct WebrtcVideoStatsDB::VideoDescKey.
message WebrtcVideoStatsEntryProto {
  repeated WebrtcVideoStatsProto stats = 1;
}