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

Unified Diff: webrtc/modules/video_coding/rtp_frame_reference_finder.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/rtp_frame_reference_finder.cc
diff --git a/webrtc/modules/video_coding/rtp_frame_reference_finder.cc b/webrtc/modules/video_coding/rtp_frame_reference_finder.cc
index 66e57b06ed0add046de2b63f05d9df9051d7ef59..c0620b55d331ac329e2bbd656d6bf43b5ba016ac 100644
--- a/webrtc/modules/video_coding/rtp_frame_reference_finder.cc
+++ b/webrtc/modules/video_coding/rtp_frame_reference_finder.cc
@@ -100,6 +100,8 @@ RtpFrameReferenceFinder::ManageFrameInternal(RtpFrameObject* frame) {
case kVideoCodecI420:
case kVideoCodecGeneric:
return ManageFrameGeneric(frame, kNoPictureId);
+ case kVideoCodecStereo:
+ return ManageFrameVp9(frame);
}
// If not all code paths return a value it makes the win compiler sad.
@@ -404,13 +406,12 @@ RtpFrameReferenceFinder::FrameDecision RtpFrameReferenceFinder::ManageFrameVp9(
if (codec_header.picture_id == kNoPictureId ||
codec_header.temporal_idx == kNoTemporalIdx) {
- return ManageFrameGeneric(std::move(frame), codec_header.picture_id);
+ return ManageFrameGeneric(std::move(frame), kNoPictureId);
}
frame->spatial_layer = codec_header.spatial_idx;
frame->inter_layer_predicted = codec_header.inter_layer_predicted;
frame->picture_id = codec_header.picture_id % kPicIdLength;
-
if (last_unwrap_ == -1)
last_unwrap_ = codec_header.picture_id;
« no previous file with comments | « webrtc/modules/video_coding/packet_buffer.cc ('k') | webrtc/modules/video_coding/video_codec_initializer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698