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

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

Issue 906403006: [Cast] Size-Adaptable platform video encoders. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed hubbe's comments. Created 5 years, 10 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/video_encoder.cc ('k') | media/cast/sender/video_encoder_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/sender/video_encoder_impl.h
diff --git a/media/cast/sender/video_encoder_impl.h b/media/cast/sender/video_encoder_impl.h
index 07ed999cf936373fc87dd84e72f407a5cf3e6e36..7572c4adcfc5eb6291705697bc9869209f030aee 100644
--- a/media/cast/sender/video_encoder_impl.h
+++ b/media/cast/sender/video_encoder_impl.h
@@ -29,6 +29,9 @@ class VideoEncoderImpl : public VideoEncoder {
typedef base::Callback<void(scoped_ptr<EncodedFrame>)>
FrameEncodedCallback;
+ // Returns true if VideoEncoderImpl can be used with the given |video_config|.
+ static bool IsSupported(const VideoSenderConfig& video_config);
+
VideoEncoderImpl(scoped_refptr<CastEnvironment> cast_environment,
const VideoSenderConfig& video_config,
const StatusChangeCallback& status_change_cb);
@@ -36,7 +39,6 @@ class VideoEncoderImpl : public VideoEncoder {
~VideoEncoderImpl() override;
// VideoEncoder implementation.
- bool CanEncodeVariedFrameSizes() const override;
bool EncodeVideoFrame(
const scoped_refptr<media::VideoFrame>& video_frame,
const base::TimeTicks& reference_time,
« no previous file with comments | « media/cast/sender/video_encoder.cc ('k') | media/cast/sender/video_encoder_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698