Index: webrtc/video_send_stream.h |
diff --git a/webrtc/video_send_stream.h b/webrtc/video_send_stream.h |
index 04f4fea31c1d0356bf9c540dda2eae211d14b288..e19f4cceb4565b420022602b61c3932181aec218 100644 |
--- a/webrtc/video_send_stream.h |
+++ b/webrtc/video_send_stream.h |
@@ -23,9 +23,17 @@ |
namespace webrtc { |
+class FrameEncodeTimeCallback; |
sprang_webrtc
2015/09/30 13:34:53
Remove.
ivica
2015/09/30 13:46:07
Done.
|
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,11 @@ 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. |
+ // TODO(ivica): Consolidate with post_encode_callback: |
+ // https://code.google.com/p/webrtc/issues/detail?id=5042 |
+ EncodingTimeObserver* encoding_time_observer = nullptr; |
}; |
// Gets interface used to insert captured frames. Valid as long as the |