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

Side by Side Diff: webrtc/media/base/mediachannel.h

Issue 2471783002: Revert of Delete all use of cricket::VideoFrame and cricket::WebRtcVideoFrame. (Closed)
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « webrtc/media/base/fakevideorenderer.h ('k') | webrtc/media/base/testutils.h » ('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 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2004 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 13 matching lines...) Expand all
24 #include "webrtc/base/logging.h" 24 #include "webrtc/base/logging.h"
25 #include "webrtc/base/networkroute.h" 25 #include "webrtc/base/networkroute.h"
26 #include "webrtc/base/optional.h" 26 #include "webrtc/base/optional.h"
27 #include "webrtc/base/sigslot.h" 27 #include "webrtc/base/sigslot.h"
28 #include "webrtc/base/socket.h" 28 #include "webrtc/base/socket.h"
29 #include "webrtc/base/window.h" 29 #include "webrtc/base/window.h"
30 #include "webrtc/config.h" 30 #include "webrtc/config.h"
31 #include "webrtc/media/base/codec.h" 31 #include "webrtc/media/base/codec.h"
32 #include "webrtc/media/base/mediaconstants.h" 32 #include "webrtc/media/base/mediaconstants.h"
33 #include "webrtc/media/base/streamparams.h" 33 #include "webrtc/media/base/streamparams.h"
34 // TODO(nisse): Temporarily; to be replaced with a forward declaration
35 // of webrtc::VideoFrame when dependency on cricket::VideoFrame is deleted.
36 #include "webrtc/media/base/videoframe.h"
34 #include "webrtc/media/base/videosinkinterface.h" 37 #include "webrtc/media/base/videosinkinterface.h"
35 #include "webrtc/media/base/videosourceinterface.h" 38 #include "webrtc/media/base/videosourceinterface.h"
36 // TODO(juberti): re-evaluate this include 39 // TODO(juberti): re-evaluate this include
37 #include "webrtc/pc/audiomonitor.h" 40 #include "webrtc/pc/audiomonitor.h"
38 41
39 namespace rtc { 42 namespace rtc {
40 class RateLimiter; 43 class RateLimiter;
41 class Timing; 44 class Timing;
42 } 45 }
43 46
44 namespace webrtc { 47 namespace webrtc {
45 class AudioSinkInterface; 48 class AudioSinkInterface;
46 class VideoFrame;
47 } 49 }
48 50
49 namespace cricket { 51 namespace cricket {
50 52
51 class AudioSource; 53 class AudioSource;
52 class VideoCapturer; 54 class VideoCapturer;
53 struct RtpHeader; 55 struct RtpHeader;
54 struct VideoFormat; 56 struct VideoFormat;
55 57
56 const int kScreencastDefaultFps = 5; 58 const int kScreencastDefaultFps = 5;
(...skipping 965 matching lines...) Expand 10 before | Expand all | Expand 10 after
1022 // Gets the currently set codecs/payload types to be used for outgoing media. 1024 // Gets the currently set codecs/payload types to be used for outgoing media.
1023 virtual bool GetSendCodec(VideoCodec* send_codec) = 0; 1025 virtual bool GetSendCodec(VideoCodec* send_codec) = 0;
1024 // Starts or stops transmission (and potentially capture) of local video. 1026 // Starts or stops transmission (and potentially capture) of local video.
1025 virtual bool SetSend(bool send) = 0; 1027 virtual bool SetSend(bool send) = 0;
1026 // Configure stream for sending and register a source. 1028 // Configure stream for sending and register a source.
1027 // The |ssrc| must correspond to a registered send stream. 1029 // The |ssrc| must correspond to a registered send stream.
1028 virtual bool SetVideoSend( 1030 virtual bool SetVideoSend(
1029 uint32_t ssrc, 1031 uint32_t ssrc,
1030 bool enable, 1032 bool enable,
1031 const VideoOptions* options, 1033 const VideoOptions* options,
1032 rtc::VideoSourceInterface<webrtc::VideoFrame>* source) = 0; 1034 rtc::VideoSourceInterface<cricket::VideoFrame>* source) = 0;
1033 // Sets the sink object to be used for the specified stream. 1035 // Sets the sink object to be used for the specified stream.
1034 // If SSRC is 0, the renderer is used for the 'default' stream. 1036 // If SSRC is 0, the renderer is used for the 'default' stream.
1035 virtual bool SetSink(uint32_t ssrc, 1037 virtual bool SetSink(uint32_t ssrc,
1036 rtc::VideoSinkInterface<webrtc::VideoFrame>* sink) = 0; 1038 rtc::VideoSinkInterface<cricket::VideoFrame>* sink) = 0;
1037 // Gets quality stats for the channel. 1039 // Gets quality stats for the channel.
1038 virtual bool GetStats(VideoMediaInfo* info) = 0; 1040 virtual bool GetStats(VideoMediaInfo* info) = 0;
1039 }; 1041 };
1040 1042
1041 enum DataMessageType { 1043 enum DataMessageType {
1042 // Chrome-Internal use only. See SctpDataMediaChannel for the actual PPID 1044 // Chrome-Internal use only. See SctpDataMediaChannel for the actual PPID
1043 // values. 1045 // values.
1044 DMT_NONE = 0, 1046 DMT_NONE = 0,
1045 DMT_CONTROL = 1, 1047 DMT_CONTROL = 1,
1046 DMT_BINARY = 2, 1048 DMT_BINARY = 2,
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
1156 // Signal when the media channel is ready to send the stream. Arguments are: 1158 // Signal when the media channel is ready to send the stream. Arguments are:
1157 // writable(bool) 1159 // writable(bool)
1158 sigslot::signal1<bool> SignalReadyToSend; 1160 sigslot::signal1<bool> SignalReadyToSend;
1159 // Signal for notifying that the remote side has closed the DataChannel. 1161 // Signal for notifying that the remote side has closed the DataChannel.
1160 sigslot::signal1<uint32_t> SignalStreamClosedRemotely; 1162 sigslot::signal1<uint32_t> SignalStreamClosedRemotely;
1161 }; 1163 };
1162 1164
1163 } // namespace cricket 1165 } // namespace cricket
1164 1166
1165 #endif // WEBRTC_MEDIA_BASE_MEDIACHANNEL_H_ 1167 #endif // WEBRTC_MEDIA_BASE_MEDIACHANNEL_H_
OLDNEW
« no previous file with comments | « webrtc/media/base/fakevideorenderer.h ('k') | webrtc/media/base/testutils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698