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

Side by Side Diff: webrtc/common_types.h

Issue 1415693002: Remove VideoFrameType aliases for FrameType. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 kRecordingAllChannelsMixed, 155 kRecordingAllChannelsMixed,
156 kRecordingPreprocessing 156 kRecordingPreprocessing
157 }; 157 };
158 158
159 enum FrameType { 159 enum FrameType {
160 kEmptyFrame = 0, 160 kEmptyFrame = 0,
161 kAudioFrameSpeech = 1, 161 kAudioFrameSpeech = 1,
162 kAudioFrameCN = 2, 162 kAudioFrameCN = 2,
163 kVideoFrameKey = 3, 163 kVideoFrameKey = 3,
164 kVideoFrameDelta = 4, 164 kVideoFrameDelta = 4,
165 // TODO(pbos): Remove below aliases (non-kVideo prefixed) as soon as no
166 // VideoEncoder implementation in Chromium uses them.
167 kKeyFrame = kVideoFrameKey,
168 kDeltaFrame = kVideoFrameDelta,
169 }; 165 };
170 166
171 // TODO(pbos): Remove VideoFrameType when VideoEncoder implementations no longer
172 // depend on it.
173 using VideoFrameType = FrameType;
174
175 // Statistics for an RTCP channel 167 // Statistics for an RTCP channel
176 struct RtcpStatistics { 168 struct RtcpStatistics {
177 RtcpStatistics() 169 RtcpStatistics()
178 : fraction_lost(0), 170 : fraction_lost(0),
179 cumulative_lost(0), 171 cumulative_lost(0),
180 extended_max_sequence_number(0), 172 extended_max_sequence_number(0),
181 jitter(0) {} 173 jitter(0) {}
182 174
183 uint8_t fraction_lost; 175 uint8_t fraction_lost;
184 uint32_t cumulative_lost; 176 uint32_t cumulative_lost;
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after
901 uint32_t ssrc) = 0; 893 uint32_t ssrc) = 0;
902 }; 894 };
903 895
904 // RTCP mode to use. Compound mode is described by RFC 4585 and reduced-size 896 // RTCP mode to use. Compound mode is described by RFC 4585 and reduced-size
905 // RTCP mode is described by RFC 5506. 897 // RTCP mode is described by RFC 5506.
906 enum class RtcpMode { kOff, kCompound, kReducedSize }; 898 enum class RtcpMode { kOff, kCompound, kReducedSize };
907 899
908 } // namespace webrtc 900 } // namespace webrtc
909 901
910 #endif // WEBRTC_COMMON_TYPES_H_ 902 #endif // WEBRTC_COMMON_TYPES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698