Skip to content

Commit 98e6d5a

Browse files
authored
feat: merge Encode/DecodeStats into a single PerformanceStats model (#1100)
1 parent 5674024 commit 98e6d5a

File tree

7 files changed

+541
-854
lines changed

7 files changed

+541
-854
lines changed

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

+237-333
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protobuf/video/sfu/models/models.proto

+8-11
Original file line numberDiff line numberDiff line change
@@ -401,19 +401,16 @@ 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., video, audio, screen share)
406407
TrackType track_type = 1;
408+
// the codec used for the track
407409
Codec codec = 2;
408-
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;
410+
// the average encode/decode time in ms
411+
float avg_frame_time_ms = 3;
412+
// the average fps for the track
417413
float avg_fps = 4;
414+
// the track dimensions
418415
VideoDimension video_dimension = 5;
419416
}

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

+12-225
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)