diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-12-31 22:50:55 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-12-31 22:50:55 +0100 |
| commit | fac368d9e7b04234bd0b1bb565aeb4e0d7257637 (patch) | |
| tree | 4db390358262b16049f410a70d8324d7f7b4cbac /src/lib/video_encoder.cc | |
| parent | 34746766f79e5304ef4fa948e7e1d8a06bf8b816 (diff) | |
Add VideoEncoder::video_frames_encoded().
Diffstat (limited to 'src/lib/video_encoder.cc')
| -rw-r--r-- | src/lib/video_encoder.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/video_encoder.cc b/src/lib/video_encoder.cc index 590dc7471..13c9fda46 100644 --- a/src/lib/video_encoder.cc +++ b/src/lib/video_encoder.cc @@ -54,6 +54,13 @@ VideoEncoder::video_frames_enqueued() const } +int +VideoEncoder::video_frames_encoded() const +{ + return _history.events(); +} + + /** @return an estimate of the current number of frames we are encoding per second, * if known. */ |
