summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-12-31 22:50:55 +0100
committerCarl Hetherington <cth@carlh.net>2025-12-31 22:50:55 +0100
commitfac368d9e7b04234bd0b1bb565aeb4e0d7257637 (patch)
tree4db390358262b16049f410a70d8324d7f7b4cbac /src
parent34746766f79e5304ef4fa948e7e1d8a06bf8b816 (diff)
Add VideoEncoder::video_frames_encoded().
Diffstat (limited to 'src')
-rw-r--r--src/lib/video_encoder.cc7
-rw-r--r--src/lib/video_encoder.h1
2 files changed, 8 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.
*/
diff --git a/src/lib/video_encoder.h b/src/lib/video_encoder.h
index 8cc33ef8a..7a9813ba8 100644
--- a/src/lib/video_encoder.h
+++ b/src/lib/video_encoder.h
@@ -54,6 +54,7 @@ public:
virtual void end() = 0;
int video_frames_enqueued() const;
+ int video_frames_encoded() const;
boost::optional<float> current_encoding_rate() const;
protected: