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

Unified Diff: remoting/codec/video_encoder.h

Issue 1923573006: Implement a dummy host to do capturing and analysis only. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resolve review commnets Created 4 years, 7 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/BUILD.gn ('k') | remoting/codec/video_encoder.cc » ('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 99018f7d4e6c4ad2cde7cd2454722576f1f06351..2920b260b500d75ffdb27f8c06fd88fbf52d37a5 100644
--- a/remoting/codec/video_encoder.h
+++ b/remoting/codec/video_encoder.h
@@ -14,7 +14,9 @@ class DesktopFrame;
} // namespace webrtc
namespace remoting {
-
+namespace protocol {
+class SessionConfig;
+} // namespace protocol
class VideoPacket;
// A class to perform the task of encoding a continuous stream of images. The
@@ -34,6 +36,9 @@ class VideoEncoder {
// there is no work to do.
virtual std::unique_ptr<VideoPacket> Encode(const webrtc::DesktopFrame& frame,
uint32_t flags) = 0;
+
+ static std::unique_ptr<VideoEncoder> Create(
+ const protocol::SessionConfig& config);
};
} // namespace remoting
« no previous file with comments | « remoting/codec/BUILD.gn ('k') | remoting/codec/video_encoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698