File: video_stats.proto

package info (click to toggle)
chromium 139.0.7258.127-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 6,122,068 kB
  • sloc: cpp: 35,100,771; ansic: 7,163,530; javascript: 4,103,002; python: 1,436,920; asm: 946,517; xml: 746,709; pascal: 187,653; perl: 88,691; sh: 88,436; objc: 79,953; sql: 51,488; cs: 44,583; fortran: 24,137; makefile: 22,147; tcl: 15,277; php: 13,980; yacc: 8,984; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (78 lines) | stat: -rw-r--r-- 2,337 bytes parent folder | download | duplicates (7)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Internal message types that should not be seen outside the protocol
// directory.

syntax = "proto2";

option optimize_for = LITE_RUNTIME;

package remoting;

// Next Id: 19
message FrameStatsMessage {
  // Frame ID.
  optional uint32 frame_id = 1;

  // Frame size.
  optional int32 frame_size = 2;

  // Id of the last event that was injected before this frame was captured.
  optional int64 latest_event_timestamp = 3;

  // Time from when the last event was injected until capturing has started.
  optional int32 capture_pending_time_ms = 4;

  // Time in milliseconds spent in capturing this video frame.
  optional int32 capture_time_ms = 5;

  // Total overhead time for IPC and threading when capturing frames.
  optional int32 capture_overhead_time_ms = 6;

  // Time between when the frame was captured and when encoding started.
  optional int32 encode_pending_time_ms = 7;

  // Time in milliseconds spent in encoding this video frame.
  optional int32 encode_time_ms = 8;

  // Time for which the frame is blocked until it's sent to the client.
  optional int32 send_pending_time_ms = 9;

  // Current network RTT estimate.
  optional int32 rtt_estimate_ms = 10;

  // Current bandwidth estimate in kb/s.
  optional int32 bandwidth_estimate_kbps = 11;

  // The capturer Id to indicate the implementation of ScreenCapturer that
  // generates this frame.
  optional uint32 capturer_id = 12;

  // A simple indication of the quality of the frame, scored between 0 and 100,
  // with 100 representing a lossless encoded frame.
  optional uint32 frame_quality = 13;

  // The screen ID of the desktop-capturer that captured this frame. The value
  // matches the corresponding field of the VideoTrackLayout for the stream.
  optional int64 screen_id = 14;

  // Codec used to encode the frame.
  enum VideoCodec {
    UNKNOWN = 0;
    VP8 = 1;
    VP9 = 2;
    AV1 = 3;
    H264 = 4;
  }
  optional VideoCodec codec = 15 [default = UNKNOWN];

  // Video codec profile.
  optional int32 profile = 16;

  // Estimated width/height of the areas of screen that have changed since
  // last frame.
  optional int32 encoded_rect_width = 17;
  optional int32 encoded_rect_height = 18;
}