Skip to content

Commit 07c3acd

Browse files
committed
fix: merge Encode/DecodeStats into PerformanceStats
1 parent 5674024 commit 07c3acd

File tree

7 files changed

+559
-837
lines changed

7 files changed

+559
-837
lines changed

protobuf/video/sfu/models/models.pb.go

Lines changed: 247 additions & 330 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protobuf/video/sfu/models/models.proto

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -401,19 +401,18 @@ enum AppleThermalState {
401401
APPLE_THERMAL_STATE_CRITICAL = 4;
402402
}
403403

404-
// EncodeStats represents the encoding statistics for a track.
405-
message EncodeStats {
404+
// PerformanceStats represents the encoding/decoding statistics for a track.
405+
message PerformanceStats {
406+
// The type of the track (e.g., audio, video).
406407
TrackType track_type = 1;
408+
// The codec used for encoding/decoding the track.
407409
Codec codec = 2;
410+
// The average encode time in milliseconds (for the publisher).
408411
float avg_frame_encode_time_ms = 3;
409-
float avg_fps = 4;
410-
}
411-
412-
// DecodeStats represents the decoding statistics for a track.
413-
message DecodeStats {
414-
TrackType track_type = 1;
415-
Codec codec = 2;
416-
float avg_frame_decode_time_ms = 3;
417-
float avg_fps = 4;
418-
VideoDimension video_dimension = 5;
412+
// The average decode time in milliseconds (for the subscriber).
413+
float avg_frame_decode_time_ms = 4;
414+
// The average frame rate in frames per second (FPS).
415+
float avg_fps = 5;
416+
// the video dimensions (width and height in pixels) of the track.
417+
VideoDimension video_dimension = 6;
419418
}

protobuf/video/sfu/models/models_vtproto.pb.go

Lines changed: 17 additions & 210 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)