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

Side by Side Diff: webrtc/call/flexfec_receive_stream.h

Issue 2649973005: Inform jitter buffer about FlexFEC protection. (Closed)
Patch Set: Created 3 years, 11 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2016 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
11 #ifndef WEBRTC_CALL_FLEXFEC_RECEIVE_STREAM_H_ 11 #ifndef WEBRTC_CALL_FLEXFEC_RECEIVE_STREAM_H_
12 #define WEBRTC_CALL_FLEXFEC_RECEIVE_STREAM_H_ 12 #define WEBRTC_CALL_FLEXFEC_RECEIVE_STREAM_H_
13 13
14 #include <stdint.h> 14 #include <stdint.h>
15 15
16 #include <string> 16 #include <string>
17 #include <vector> 17 #include <vector>
18 18
19 #include "webrtc/api/call/transport.h" 19 #include "webrtc/api/call/transport.h"
20 #include "webrtc/config.h" 20 #include "webrtc/config.h"
21 21
22 namespace webrtc { 22 namespace webrtc {
23 23
24 class FlexfecProtectionMediator {
25 public:
26 // Is the media stream described by |ssrc| protected by FlexFEC?
27 virtual bool IsProtectedByFlexfec(uint32_t ssrc) = 0;
28
29 protected:
30 virtual ~FlexfecProtectionMediator() = default;
31 };
32
24 class FlexfecReceiveStream { 33 class FlexfecReceiveStream {
25 public: 34 public:
26 struct Stats { 35 struct Stats {
27 std::string ToString(int64_t time_ms) const; 36 std::string ToString(int64_t time_ms) const;
28 37
29 // TODO(brandtr): Add appropriate stats here. 38 // TODO(brandtr): Add appropriate stats here.
30 int flexfec_bitrate_bps; 39 int flexfec_bitrate_bps;
31 }; 40 };
32 41
33 struct Config { 42 struct Config {
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 91
83 virtual Stats GetStats() const = 0; 92 virtual Stats GetStats() const = 0;
84 93
85 protected: 94 protected:
86 virtual ~FlexfecReceiveStream() = default; 95 virtual ~FlexfecReceiveStream() = default;
87 }; 96 };
88 97
89 } // namespace webrtc 98 } // namespace webrtc
90 99
91 #endif // WEBRTC_CALL_FLEXFEC_RECEIVE_STREAM_H_ 100 #endif // WEBRTC_CALL_FLEXFEC_RECEIVE_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698