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

Side by Side Diff: talk/session/media/channelmanager.h

Issue 1594973006: New rtc::VideoSinkInterface. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Workaround to not break chrome. Created 4 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 unified diff | Download patch
« no previous file with comments | « talk/media/webrtc/webrtcvideoengine2.cc ('k') | talk/session/media/channelmanager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * libjingle 2 * libjingle
3 * Copyright 2004 Google Inc. 3 * Copyright 2004 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 // When muting, produce black frames then pause the camera. 149 // When muting, produce black frames then pause the camera.
150 // When unmuting, start the camera. Camera starts unmuted. 150 // When unmuting, start the camera. Camera starts unmuted.
151 bool MuteToBlackThenPause(VideoCapturer* video_capturer, bool muted); 151 bool MuteToBlackThenPause(VideoCapturer* video_capturer, bool muted);
152 bool StopVideoCapture(VideoCapturer* video_capturer, 152 bool StopVideoCapture(VideoCapturer* video_capturer,
153 const VideoFormat& video_format); 153 const VideoFormat& video_format);
154 bool RestartVideoCapture(VideoCapturer* video_capturer, 154 bool RestartVideoCapture(VideoCapturer* video_capturer,
155 const VideoFormat& previous_format, 155 const VideoFormat& previous_format,
156 const VideoFormat& desired_format, 156 const VideoFormat& desired_format,
157 CaptureManager::RestartOptions options); 157 CaptureManager::RestartOptions options);
158 158
159 bool AddVideoRenderer(VideoCapturer* capturer, VideoRenderer* renderer); 159 virtual void AddVideoSink(VideoCapturer* video_capturer,
160 bool RemoveVideoRenderer(VideoCapturer* capturer, VideoRenderer* renderer); 160 rtc::VideoSinkInterface<VideoFrame>* sink);
161 virtual void RemoveVideoSink(VideoCapturer* video_capturer,
162 rtc::VideoSinkInterface<VideoFrame>* sink);
161 bool IsScreencastRunning() const; 163 bool IsScreencastRunning() const;
162 164
163 // The operations below occur on the main thread. 165 // The operations below occur on the main thread.
164 166
165 // Starts AEC dump using existing file, with a specified maximum file size in 167 // Starts AEC dump using existing file, with a specified maximum file size in
166 // bytes. When the limit is reached, logging will stop and the file will be 168 // bytes. When the limit is reached, logging will stop and the file will be
167 // closed. If max_size_bytes is set to <= 0, no limit will be used. 169 // closed. If max_size_bytes is set to <= 0, no limit will be used.
168 bool StartAecDump(rtc::PlatformFile file, int64_t max_size_bytes); 170 bool StartAecDump(rtc::PlatformFile file, int64_t max_size_bytes);
169 171
170 // Stops recording AEC dump. 172 // Stops recording AEC dump.
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 int audio_output_volume_; 233 int audio_output_volume_;
232 VideoRenderer* local_renderer_; 234 VideoRenderer* local_renderer_;
233 bool enable_rtx_; 235 bool enable_rtx_;
234 236
235 bool capturing_; 237 bool capturing_;
236 }; 238 };
237 239
238 } // namespace cricket 240 } // namespace cricket
239 241
240 #endif // TALK_SESSION_MEDIA_CHANNELMANAGER_H_ 242 #endif // TALK_SESSION_MEDIA_CHANNELMANAGER_H_
OLDNEW
« no previous file with comments | « talk/media/webrtc/webrtcvideoengine2.cc ('k') | talk/session/media/channelmanager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698