Index: webrtc/video_send_stream.h |
diff --git a/webrtc/video_send_stream.h b/webrtc/video_send_stream.h |
index 04f4fea31c1d0356bf9c540dda2eae211d14b288..129c89343917da46be072d5860cbac4b49309258 100644 |
--- a/webrtc/video_send_stream.h |
+++ b/webrtc/video_send_stream.h |
@@ -23,9 +23,17 @@ |
namespace webrtc { |
+class FrameEncodeTimeCallback; |
class LoadObserver; |
class VideoEncoder; |
+class EncodingTimeObserver { |
+ public: |
+ virtual ~EncodingTimeObserver() {} |
+ |
+ virtual void OnEncodedFrame(const VideoFrame& frame, int encode_time_ms) = 0; |
+}; |
+ |
// Class to deliver captured frame to the video send stream. |
class VideoCaptureInput { |
public: |
@@ -152,6 +160,9 @@ class VideoSendStream : public SendStream { |
// below the minimum configured bitrate. If this variable is false, the |
// stream may send at a rate higher than the estimated available bitrate. |
bool suspend_below_min_bitrate = false; |
+ |
+ // Called for each encoded frame. Passes the total time spent on encoding. |
pbos-webrtc
2015/09/30 12:48:31
// TODO(ivica): Consolidate with post_encode_callb
ivica
2015/09/30 13:18:04
Done.
|
+ EncodingTimeObserver* encoding_time_observer = nullptr; |
}; |
// Gets interface used to insert captured frames. Valid as long as the |