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

Unified Diff: common_types.cc

Issue 2951033003: [EXPERIMENTAL] Generic stereo codec with index header sending single frames
Patch Set: Rebase and add external codec support. Created 3 years, 3 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 | « common_types.h ('k') | common_video/include/video_frame_buffer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: common_types.cc
diff --git a/common_types.cc b/common_types.cc
index 59867d95c0c46faa88b22feeaa2fc5a631339c02..2c2c5238a67fbff22b0cac60a46f80dc80d5fb78 100644
--- a/common_types.cc
+++ b/common_types.cc
@@ -111,12 +111,12 @@ const VideoCodecVP8& VideoCodec::VP8() const {
}
VideoCodecVP9* VideoCodec::VP9() {
- RTC_DCHECK_EQ(codecType, kVideoCodecVP9);
+ // RTC_DCHECK_EQ(codecType, kVideoCodecVP9);
return &codec_specific_.VP9;
}
const VideoCodecVP9& VideoCodec::VP9() const {
- RTC_DCHECK_EQ(codecType, kVideoCodecVP9);
+ // RTC_DCHECK_EQ(codecType, kVideoCodecVP9);
return codec_specific_.VP9;
}
@@ -137,6 +137,7 @@ static const char* kPayloadNameI420 = "I420";
static const char* kPayloadNameRED = "RED";
static const char* kPayloadNameULPFEC = "ULPFEC";
static const char* kPayloadNameGeneric = "Generic";
+static const char* kPayloadNameStereo = "stereo";
static bool CodecNamesEq(const char* name1, const char* name2) {
return _stricmp(name1, name2) == 0;
@@ -156,6 +157,8 @@ const char* CodecTypeToPayloadString(VideoCodecType type) {
return kPayloadNameRED;
case kVideoCodecULPFEC:
return kPayloadNameULPFEC;
+ case kVideoCodecStereo:
+ return kPayloadNameStereo;
default:
// Unrecognized codecs default to generic.
return kPayloadNameGeneric;
@@ -175,6 +178,8 @@ VideoCodecType PayloadStringToCodecType(const std::string& name) {
return kVideoCodecRED;
if (CodecNamesEq(name.c_str(), kPayloadNameULPFEC))
return kVideoCodecULPFEC;
+ if (CodecNamesEq(name.c_str(), kPayloadNameStereo))
+ return kVideoCodecStereo;
return kVideoCodecGeneric;
}
« no previous file with comments | « common_types.h ('k') | common_video/include/video_frame_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698