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

Side by Side Diff: webrtc/common_types.h

Issue 1371043003: Unify FrameType and VideoFrameType. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 5 years, 2 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 | « talk/media/webrtc/fakewebrtcvideoengine.h ('k') | webrtc/frame_callback.h » ('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) 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 149
150 enum ProcessingTypes 150 enum ProcessingTypes
151 { 151 {
152 kPlaybackPerChannel = 0, 152 kPlaybackPerChannel = 0,
153 kPlaybackAllChannelsMixed, 153 kPlaybackAllChannelsMixed,
154 kRecordingPerChannel, 154 kRecordingPerChannel,
155 kRecordingAllChannelsMixed, 155 kRecordingAllChannelsMixed,
156 kRecordingPreprocessing 156 kRecordingPreprocessing
157 }; 157 };
158 158
159 enum FrameType 159 enum FrameType {
160 { 160 kEmptyFrame = 0,
161 kFrameEmpty = 0, 161 kAudioFrameSpeech = 1,
162 kAudioFrameSpeech = 1, 162 kAudioFrameCN = 2,
163 kAudioFrameCN = 2, 163 kVideoFrameKey = 3,
164 kVideoFrameKey = 3, // independent frame 164 kVideoFrameDelta = 4,
165 kVideoFrameDelta = 4, // depends on the previus frame 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,
166 }; 169 };
167 170
171 // TODO(pbos): Remove VideoFrameType when VideoEncoder implementations no longer
172 // depend on it.
173 using VideoFrameType = FrameType;
174
168 // Statistics for an RTCP channel 175 // Statistics for an RTCP channel
169 struct RtcpStatistics { 176 struct RtcpStatistics {
170 RtcpStatistics() 177 RtcpStatistics()
171 : fraction_lost(0), 178 : fraction_lost(0),
172 cumulative_lost(0), 179 cumulative_lost(0),
173 extended_max_sequence_number(0), 180 extended_max_sequence_number(0),
174 jitter(0) {} 181 jitter(0) {}
175 182
176 uint8_t fraction_lost; 183 uint8_t fraction_lost;
177 uint32_t cumulative_lost; 184 uint32_t cumulative_lost;
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after
894 uint32_t ssrc) = 0; 901 uint32_t ssrc) = 0;
895 }; 902 };
896 903
897 // RTCP mode to use. Compound mode is described by RFC 4585 and reduced-size 904 // RTCP mode to use. Compound mode is described by RFC 4585 and reduced-size
898 // RTCP mode is described by RFC 5506. 905 // RTCP mode is described by RFC 5506.
899 enum class RtcpMode { kOff, kCompound, kReducedSize }; 906 enum class RtcpMode { kOff, kCompound, kReducedSize };
900 907
901 } // namespace webrtc 908 } // namespace webrtc
902 909
903 #endif // WEBRTC_COMMON_TYPES_H_ 910 #endif // WEBRTC_COMMON_TYPES_H_
OLDNEW
« no previous file with comments | « talk/media/webrtc/fakewebrtcvideoengine.h ('k') | webrtc/frame_callback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698