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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « talk/media/webrtc/fakewebrtcvideoengine.h ('k') | webrtc/frame_callback.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/common_types.h
diff --git a/webrtc/common_types.h b/webrtc/common_types.h
index c11c4d7a734c3fe7bd57e693a11cf030af0b764d..6b624bfce999c4b11e4417105e2009b15c7a8c2f 100644
--- a/webrtc/common_types.h
+++ b/webrtc/common_types.h
@@ -156,14 +156,21 @@ enum ProcessingTypes
kRecordingPreprocessing
};
-enum FrameType
-{
- kFrameEmpty = 0,
- kAudioFrameSpeech = 1,
- kAudioFrameCN = 2,
- kVideoFrameKey = 3, // independent frame
- kVideoFrameDelta = 4, // depends on the previus frame
-};
+enum FrameType {
+ kEmptyFrame = 0,
+ kAudioFrameSpeech = 1,
+ kAudioFrameCN = 2,
+ kVideoFrameKey = 3,
+ kVideoFrameDelta = 4,
+ // TODO(pbos): Remove below aliases (non-kVideo prefixed) as soon as no
+ // VideoEncoder implementation in Chromium uses them.
+ kKeyFrame = kVideoFrameKey,
+ kDeltaFrame = kVideoFrameDelta,
+};
+
+// TODO(pbos): Remove VideoFrameType when VideoEncoder implementations no longer
+// depend on it.
+using VideoFrameType = FrameType;
// Statistics for an RTCP channel
struct RtcpStatistics {
« 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