video_stats.proto 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. // Copyright 2016 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. // Internal message types that should not be seen outside the protocol
  5. // directory.
  6. syntax = "proto2";
  7. option optimize_for = LITE_RUNTIME;
  8. package remoting;
  9. // Next Id: 15
  10. message FrameStatsMessage {
  11. // Frame ID.
  12. optional uint32 frame_id = 1;
  13. // Frame size.
  14. optional int32 frame_size = 2;
  15. // Id of the last event that was injected before this frame was captured.
  16. optional int64 latest_event_timestamp = 3;
  17. // Time from when the last event was injected until capturing has started.
  18. optional int32 capture_pending_time_ms = 4;
  19. // Time in milliseconds spent in capturing this video frame.
  20. optional int32 capture_time_ms = 5;
  21. // Total overhead time for IPC and threading when capturing frames.
  22. optional int32 capture_overhead_time_ms = 6;
  23. // Time between when the frame was captured and when encoding started.
  24. optional int32 encode_pending_time_ms = 7;
  25. // Time in milliseconds spent in encoding this video frame.
  26. optional int32 encode_time_ms = 8;
  27. // Time for which the frame is blocked until it's sent to the client.
  28. optional int32 send_pending_time_ms = 9;
  29. // Current network RTT estimate.
  30. optional int32 rtt_estimate_ms = 10;
  31. // Current bandwidth estimate in kb/s.
  32. optional int32 bandwidth_estimate_kbps = 11;
  33. // The capturer Id to indicate the implementation of ScreenCapturer that
  34. // generates this frame.
  35. optional uint32 capturer_id = 12;
  36. // A simple indication of the quality of the frame, scored between 0 and 100,
  37. // with 100 representing a lossless encoded frame.
  38. optional uint32 frame_quality = 13;
  39. // The screen ID of the desktop-capturer that captured this frame. The value
  40. // matches the corresponding field of the VideoTrackLayout for the stream.
  41. optional int64 screen_id = 14;
  42. }