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

Unified Diff: modules/video_coding/rtp_frame_reference_finder.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 | « modules/video_coding/packet.cc ('k') | modules/video_coding/video_codec_initializer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/video_coding/rtp_frame_reference_finder.cc
diff --git a/modules/video_coding/rtp_frame_reference_finder.cc b/modules/video_coding/rtp_frame_reference_finder.cc
index b62d4971eabe8bf06299be1bb8b3215fd1ac2e06..68f49aea40fdad779aa58a0fa4d7bc78481057c7 100644
--- a/modules/video_coding/rtp_frame_reference_finder.cc
+++ b/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.
@@ -405,13 +407,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 | « modules/video_coding/packet.cc ('k') | modules/video_coding/video_codec_initializer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698