Index: webrtc/video_send_stream.h |
diff --git a/webrtc/video_send_stream.h b/webrtc/video_send_stream.h |
index 04f4fea31c1d0356bf9c540dda2eae211d14b288..0c0af80ef7c41642dda170892b2201a2488ec9d7 100644 |
--- a/webrtc/video_send_stream.h |
+++ b/webrtc/video_send_stream.h |
@@ -26,6 +26,13 @@ namespace webrtc { |
class LoadObserver; |
class VideoEncoder; |
+class EncodingTimeObserver { |
+ public: |
+ virtual ~EncodingTimeObserver() {} |
+ |
+ virtual void OnReportEncodedTime(int64_t ntp_time_ms, int encode_time_ms) = 0; |
+}; |
+ |
// Class to deliver captured frame to the video send stream. |
class VideoCaptureInput { |
public: |
@@ -152,6 +159,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 |