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

Unified Diff: video/payload_router.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 | « test/video_codec_settings.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: video/payload_router.cc
diff --git a/video/payload_router.cc b/video/payload_router.cc
index a7a20deadc106135a1953bc8bda70c745202869a..7000dc530667e6839c45262c29a27f59811c4cc8 100644
--- a/video/payload_router.cc
+++ b/video/payload_router.cc
@@ -14,6 +14,7 @@
#include "modules/rtp_rtcp/include/rtp_rtcp_defines.h"
#include "modules/video_coding/include/video_codec_interface.h"
#include "rtc_base/checks.h"
+#include "rtc_base/logging.h"
namespace webrtc {
@@ -82,6 +83,18 @@ void CopyCodecSpecific(const CodecSpecificInfo* info, RTPVideoHeader* rtp) {
rtp->codec = kRtpVideoGeneric;
rtp->simulcastIdx = info->codecSpecific.generic.simulcast_idx;
return;
+ case kVideoCodecStereo: {
+ CodecSpecificInfo* codec_specific_info =
+ const_cast<CodecSpecificInfo*>(info);
+ codec_specific_info->codecType = info->stereoInfo.stereoCodecType;
+ CopyCodecSpecific(codec_specific_info, rtp);
+ rtp->stereoInfo.stereoCodecType = rtp->codec;
+ rtp->codec = kRtpVideoStereo;
+ rtp->stereoInfo.frameIndex = info->stereoInfo.frameIndex;
+ rtp->stereoInfo.frameCount = info->stereoInfo.frameCount;
+ rtp->stereoInfo.pictureIndex = info->stereoInfo.pictureIndex;
+ return;
+ }
default:
return;
}
« no previous file with comments | « test/video_codec_settings.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698