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

Unified Diff: remoting/codec/video_encoder.h

Issue 2329653002: Add WebrtcVideoEncoder interface (Closed)
Patch Set: win Created 4 years, 3 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 | « remoting/codec/codec_test.cc ('k') | remoting/codec/video_encoder_verbatim.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/codec/video_encoder.h
diff --git a/remoting/codec/video_encoder.h b/remoting/codec/video_encoder.h
index 3cd24837fbc6140cd4b11109c9b01bcc6f89fe79..61318e33e3ca3a2084da00d9a69c22961d4d6ed2 100644
--- a/remoting/codec/video_encoder.h
+++ b/remoting/codec/video_encoder.h
@@ -23,7 +23,6 @@ class VideoPacket;
// interface is asynchronous to enable maximum throughput.
class VideoEncoder {
public:
- enum Flags { REQUEST_KEY_FRAME = 1 << 0 };
virtual ~VideoEncoder() {}
// Request that the encoder provide lossless encoding, or color, if possible.
@@ -34,12 +33,11 @@ class VideoEncoder {
// then the encoder may return a packet (e.g. to top-off previously-encoded
// portions of the frame to higher quality) or return nullptr to indicate that
// there is no work to do.
- virtual std::unique_ptr<VideoPacket> Encode(const webrtc::DesktopFrame& frame,
- uint32_t flags) = 0;
+ virtual std::unique_ptr<VideoPacket> Encode(
+ const webrtc::DesktopFrame& frame) = 0;
static std::unique_ptr<VideoEncoder> Create(
const protocol::SessionConfig& config);
- virtual void UpdateTargetBitrate(int bitrate_kbps) {}
};
} // namespace remoting
« no previous file with comments | « remoting/codec/codec_test.cc ('k') | remoting/codec/video_encoder_verbatim.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698