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

Unified Diff: webrtc/modules/video_coding/encoded_frame.cc

Issue 2990463002: [EXPERIMENTAL] Generic stereo codec with index header sending merged frames
Patch Set: Created 3 years, 5 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
Index: webrtc/modules/video_coding/encoded_frame.cc
diff --git a/webrtc/modules/video_coding/encoded_frame.cc b/webrtc/modules/video_coding/encoded_frame.cc
index ec7f560755d71c7acb0738341b1e09efe359e828..b73cc674d78d673a9d031e246798a2f50c71a427 100644
--- a/webrtc/modules/video_coding/encoded_frame.cc
+++ b/webrtc/modules/video_coding/encoded_frame.cc
@@ -8,6 +8,7 @@
* be found in the AUTHORS file in the root of the source tree.
*/
+#include "webrtc/base/logging.h"
#include "webrtc/modules/video_coding/include/video_coding_defines.h"
#include "webrtc/modules/video_coding/encoded_frame.h"
#include "webrtc/modules/video_coding/generic_encoder.h"
@@ -193,7 +194,19 @@ void VCMEncodedFrame::CopyCodecSpecific(const RTPVideoHeader* header) {
_codecSpecificInfo.codecType = kVideoCodecH264;
break;
}
+ case kRtpVideoStereo: {
+ RTPVideoHeader modified_header = *header;
+ modified_header.codec = kRtpVideoVp9;
+ CopyCodecSpecific(&modified_header);
+ _codecSpecificInfo.codecType = kVideoCodecStereo;
+ _codecSpecificInfo.stereoInfo.stereoCodecType = kVideoCodecVP9;
+ _codecSpecificInfo.stereoInfo.num_frames = 1;
+ _codecSpecificInfo.stereoInfo.encoded_images[0] =
+ header->stereoInfo.encoded_images[0];
+ break;
+ }
default: {
+ RTC_NOTREACHED();
_codecSpecificInfo.codecType = kVideoCodecUnknown;
break;
}
« no previous file with comments | « webrtc/modules/video_coding/codecs/stereo/stereo_encoder_adapter.cc ('k') | webrtc/modules/video_coding/frame_buffer2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698