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

Side by Side Diff: webrtc/video_receive_stream.h

Issue 2185953002: Add decoder-specific settings with proper lifetime. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 4 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) 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 25 matching lines...) Expand all
36 // The actual decoder instance. 36 // The actual decoder instance.
37 VideoDecoder* decoder = nullptr; 37 VideoDecoder* decoder = nullptr;
38 38
39 // Received RTP packets with this payload type will be sent to this decoder 39 // Received RTP packets with this payload type will be sent to this decoder
40 // instance. 40 // instance.
41 int payload_type = 0; 41 int payload_type = 0;
42 42
43 // Name of the decoded payload (such as VP8). Maps back to the depacketizer 43 // Name of the decoded payload (such as VP8). Maps back to the depacketizer
44 // used to unpack incoming packets. 44 // used to unpack incoming packets.
45 std::string payload_name; 45 std::string payload_name;
46
47 rtc::scoped_refptr<const DecoderSpecificSettings> decoder_specific;
46 }; 48 };
47 49
48 struct Stats { 50 struct Stats {
49 int network_frame_rate = 0; 51 int network_frame_rate = 0;
50 int decode_frame_rate = 0; 52 int decode_frame_rate = 0;
51 int render_frame_rate = 0; 53 int render_frame_rate = 0;
52 54
53 // Decoder stats. 55 // Decoder stats.
54 std::string decoder_implementation_name = "unknown"; 56 std::string decoder_implementation_name = "unknown";
55 FrameCounts frame_counts; 57 FrameCounts frame_counts;
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 // TODO(pbos): Add info on currently-received codec to Stats. 203 // TODO(pbos): Add info on currently-received codec to Stats.
202 virtual Stats GetStats() const = 0; 204 virtual Stats GetStats() const = 0;
203 205
204 protected: 206 protected:
205 virtual ~VideoReceiveStream() {} 207 virtual ~VideoReceiveStream() {}
206 }; 208 };
207 209
208 } // namespace webrtc 210 } // namespace webrtc
209 211
210 #endif // WEBRTC_VIDEO_RECEIVE_STREAM_H_ 212 #endif // WEBRTC_VIDEO_RECEIVE_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698