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

Side by Side Diff: webrtc/video/video_receive_stream.h

Issue 1226123005: Define Stream base classes (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Code review follow-up 3 Created 5 years, 5 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 | « webrtc/video/end_to_end_tests.cc ('k') | webrtc/video/video_receive_stream.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 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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 26 matching lines...) Expand all
37 public I420FrameCallback, 37 public I420FrameCallback,
38 public VideoRenderCallback { 38 public VideoRenderCallback {
39 public: 39 public:
40 VideoReceiveStream(int num_cpu_cores, 40 VideoReceiveStream(int num_cpu_cores,
41 int base_channel_id, 41 int base_channel_id,
42 ChannelGroup* channel_group, 42 ChannelGroup* channel_group,
43 int channel_id, 43 int channel_id,
44 const VideoReceiveStream::Config& config, 44 const VideoReceiveStream::Config& config,
45 newapi::Transport* transport, 45 newapi::Transport* transport,
46 webrtc::VoiceEngine* voice_engine); 46 webrtc::VoiceEngine* voice_engine);
47 virtual ~VideoReceiveStream(); 47 ~VideoReceiveStream() override;
48 48
49 // webrtc::ReceiveStream implementation.
49 void Start() override; 50 void Start() override;
50 void Stop() override; 51 void Stop() override;
51 Stats GetStats() const override; 52 void SignalNetworkState(NetworkState state) override;
53 bool DeliverRtcp(const uint8_t* packet, size_t length) override;
54 bool DeliverRtp(const uint8_t* packet, size_t length) override;
55
56 // webrtc::VideoReceiveStream implementation.
57 webrtc::VideoReceiveStream::Stats GetStats() const override;
52 58
53 // Overrides I420FrameCallback. 59 // Overrides I420FrameCallback.
54 void FrameCallback(VideoFrame* video_frame) override; 60 void FrameCallback(VideoFrame* video_frame) override;
55 61
56 // Overrides VideoRenderCallback. 62 // Overrides VideoRenderCallback.
57 int RenderFrame(const uint32_t /*stream_id*/, 63 int RenderFrame(const uint32_t /*stream_id*/,
58 const VideoFrame& video_frame) override; 64 const VideoFrame& video_frame) override;
59 65
60 void SignalNetworkState(Call::NetworkState state);
61
62 bool DeliverRtcp(const uint8_t* packet, size_t length);
63 bool DeliverRtp(const uint8_t* packet, size_t length);
64
65 private: 66 private:
66 void SetRtcpMode(newapi::RtcpMode mode); 67 void SetRtcpMode(newapi::RtcpMode mode);
67 68
68 TransportAdapter transport_adapter_; 69 TransportAdapter transport_adapter_;
69 EncodedFrameCallbackAdapter encoded_frame_proxy_; 70 EncodedFrameCallbackAdapter encoded_frame_proxy_;
70 const VideoReceiveStream::Config config_; 71 const VideoReceiveStream::Config config_;
71 Clock* const clock_; 72 Clock* const clock_;
72 73
73 ChannelGroup* const channel_group_; 74 ChannelGroup* const channel_group_;
74 const int channel_id_; 75 const int channel_id_;
75 76
76 ViEChannel* vie_channel_; 77 ViEChannel* vie_channel_;
77 rtc::scoped_ptr<IncomingVideoStream> incoming_video_stream_; 78 rtc::scoped_ptr<IncomingVideoStream> incoming_video_stream_;
78 79
79 VoEVideoSync* voe_sync_interface_; 80 VoEVideoSync* voe_sync_interface_;
80 81
81 rtc::scoped_ptr<ReceiveStatisticsProxy> stats_proxy_; 82 rtc::scoped_ptr<ReceiveStatisticsProxy> stats_proxy_;
82 }; 83 };
83 } // namespace internal 84 } // namespace internal
84 } // namespace webrtc 85 } // namespace webrtc
85 86
86 #endif // WEBRTC_VIDEO_VIDEO_RECEIVE_STREAM_H_ 87 #endif // WEBRTC_VIDEO_VIDEO_RECEIVE_STREAM_H_
OLDNEW
« no previous file with comments | « webrtc/video/end_to_end_tests.cc ('k') | webrtc/video/video_receive_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698