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

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

Issue 688423003: [Cast] VideoFrameFactory interface to vend frames with encoder affinity. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reworked implementation based on review feedback. Created 6 years, 1 month 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
Index: media/cast/sender/video_encoder.h
diff --git a/media/cast/sender/video_encoder.h b/media/cast/sender/video_encoder.h
index b3bdbe44f0b86d559e3289427d1bcf4f9d98902e..12e69f76ed4ac611ab00ab4470ca070d79a68653 100644
--- a/media/cast/sender/video_encoder.h
+++ b/media/cast/sender/video_encoder.h
@@ -17,6 +17,8 @@
namespace media {
namespace cast {
+class VideoFrameFactory;
+
// All these functions are called from the main cast thread.
class VideoEncoder {
public:
@@ -41,6 +43,11 @@ class VideoEncoder {
// Inform the encoder to only reference frames older or equal to frame_id;
virtual void LatestFrameIdToReference(uint32 frame_id) = 0;
+
+ // Creates a |VideoFrameFactory| object to vend |VideoFrame| object with
+ // encoder affinity (defined as offering some sort of performance benefit). If
+ // the encoder does not have any such capability, returns null.
+ virtual scoped_ptr<VideoFrameFactory> CreateVideoFrameFactory() = 0;
};
} // namespace cast

Powered by Google App Engine
This is Rietveld 408576698