Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(444)

Unified Diff: media/cast/sender/video_encoder.h

Issue 863083002: [cast] Add optional VideoEncoder method to flush frames. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add documentation for VideoConfig::max_number_of_video_buffers_used Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/cast/sender/h264_vt_encoder.cc ('k') | media/cast/sender/video_encoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/sender/video_encoder.h
diff --git a/media/cast/sender/video_encoder.h b/media/cast/sender/video_encoder.h
index bcb323c12a1fd83fa99cbba0baccf30894e7e0d5..ca352decc17c554e11a09b8d44ae989414d51272 100644
--- a/media/cast/sender/video_encoder.h
+++ b/media/cast/sender/video_encoder.h
@@ -48,6 +48,13 @@ class VideoEncoder {
// encoder affinity (defined as offering some sort of performance benefit).
// This is an optional capability and by default returns null.
virtual scoped_ptr<VideoFrameFactory> CreateVideoFrameFactory();
+
+ // Instructs the encoder to finish and emit all frames that have been
+ // submitted for encoding. An encoder may hold a certain number of frames for
+ // analysis. Under certain network conditions, particularly when there is
+ // network congestion, it is necessary to flush out of the encoder all
+ // submitted frames so that eventually new frames may be encoded.
miu 2015/01/22 01:07:18 Also in this comment, please add something to the
+ virtual void EmitFrames();
};
} // namespace cast
« no previous file with comments | « media/cast/sender/h264_vt_encoder.cc ('k') | media/cast/sender/video_encoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698