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

Side by Side Diff: webrtc/video_engine/vie_channel.h

Issue 1428293003: Add VideoCodec::PreferDecodeLate (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 size_t max_rtp_streams, 78 size_t max_rtp_streams,
79 bool sender); 79 bool sender);
80 ~ViEChannel(); 80 ~ViEChannel();
81 81
82 int32_t Init(); 82 int32_t Init();
83 83
84 // Sets the encoder to use for the channel. |new_stream| indicates the encoder 84 // Sets the encoder to use for the channel. |new_stream| indicates the encoder
85 // type has changed and we should start a new RTP stream. 85 // type has changed and we should start a new RTP stream.
86 int32_t SetSendCodec(const VideoCodec& video_codec, bool new_stream = true); 86 int32_t SetSendCodec(const VideoCodec& video_codec, bool new_stream = true);
87 int32_t SetReceiveCodec(const VideoCodec& video_codec); 87 int32_t SetReceiveCodec(const VideoCodec& video_codec);
88 // Registers an external decoder. |buffered_rendering| means that the decoder 88 // Registers an external decoder.
89 // will render frames after decoding according to the render timestamp
90 // provided by the video coding module. |render_delay| indicates the time
91 // needed to decode and render a frame.
92 int32_t RegisterExternalDecoder(const uint8_t pl_type, 89 int32_t RegisterExternalDecoder(const uint8_t pl_type,
93 VideoDecoder* decoder, 90 VideoDecoder* decoder);
94 bool buffered_rendering,
95 int32_t render_delay);
96 int32_t DeRegisterExternalDecoder(const uint8_t pl_type); 91 int32_t DeRegisterExternalDecoder(const uint8_t pl_type);
97 int32_t ReceiveCodecStatistics(uint32_t* num_key_frames, 92 int32_t ReceiveCodecStatistics(uint32_t* num_key_frames,
98 uint32_t* num_delta_frames); 93 uint32_t* num_delta_frames);
99 uint32_t DiscardedPackets() const; 94 uint32_t DiscardedPackets() const;
100 95
101 // Returns the estimated delay in milliseconds. 96 // Returns the estimated delay in milliseconds.
102 int ReceiveDelay() const; 97 int ReceiveDelay() const;
103 98
104 void SetRTCPMode(const RtcpMode rtcp_mode); 99 void SetRTCPMode(const RtcpMode rtcp_mode);
105 void SetProtectionMode(bool enable_nack, 100 void SetProtectionMode(bool enable_nack,
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 size_t num_rtts_ GUARDED_BY(crit_); 444 size_t num_rtts_ GUARDED_BY(crit_);
450 445
451 // RtpRtcp modules, declared last as they use other members on construction. 446 // RtpRtcp modules, declared last as they use other members on construction.
452 const std::vector<RtpRtcp*> rtp_rtcp_modules_; 447 const std::vector<RtpRtcp*> rtp_rtcp_modules_;
453 size_t num_active_rtp_rtcp_modules_ GUARDED_BY(crit_); 448 size_t num_active_rtp_rtcp_modules_ GUARDED_BY(crit_);
454 }; 449 };
455 450
456 } // namespace webrtc 451 } // namespace webrtc
457 452
458 #endif // WEBRTC_VIDEO_ENGINE_VIE_CHANNEL_H_ 453 #endif // WEBRTC_VIDEO_ENGINE_VIE_CHANNEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698