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

Unified Diff: webrtc/modules/video_coding/codecs/vp8/default_temporal_layers.cc

Issue 2849723002: Extract TL config to VP8 libvpx flag conversion. (Closed)
Patch Set: rebase return type Created 3 years, 8 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 | « no previous file | webrtc/modules/video_coding/codecs/vp8/default_temporal_layers_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/video_coding/codecs/vp8/default_temporal_layers.cc
diff --git a/webrtc/modules/video_coding/codecs/vp8/default_temporal_layers.cc b/webrtc/modules/video_coding/codecs/vp8/default_temporal_layers.cc
index e2246b06ad3acfd8205265aa09b1b57012e66740..30374a3b33cabb629974aabbd1c2a5dea7c576e4 100644
--- a/webrtc/modules/video_coding/codecs/vp8/default_temporal_layers.cc
+++ b/webrtc/modules/video_coding/codecs/vp8/default_temporal_layers.cc
@@ -252,31 +252,6 @@ TemporalReferences DefaultTemporalLayers::UpdateLayerConfig(
return temporal_pattern_[++pattern_idx_ % temporal_pattern_.size()];
}
-int TemporalLayers::EncodeFlags(uint32_t timestamp) {
- TemporalReferences references = UpdateLayerConfig(timestamp);
- if (references.drop_frame)
- return -1;
-
- int flags = 0;
-
- if ((references.last_buffer_flags & kReference) == 0)
- flags |= VP8_EFLAG_NO_REF_LAST;
- if ((references.last_buffer_flags & kUpdate) == 0)
- flags |= VP8_EFLAG_NO_UPD_LAST;
- if ((references.golden_buffer_flags & kReference) == 0)
- flags |= VP8_EFLAG_NO_REF_GF;
- if ((references.golden_buffer_flags & kUpdate) == 0)
- flags |= VP8_EFLAG_NO_UPD_GF;
- if ((references.arf_buffer_flags & kReference) == 0)
- flags |= VP8_EFLAG_NO_REF_ARF;
- if ((references.arf_buffer_flags & kUpdate) == 0)
- flags |= VP8_EFLAG_NO_UPD_ARF;
- if (references.freeze_entropy)
- flags |= VP8_EFLAG_NO_UPD_ENTROPY;
-
- return flags;
-}
-
void DefaultTemporalLayers::PopulateCodecSpecific(
bool frame_is_keyframe,
CodecSpecificInfoVP8* vp8_info,
« no previous file with comments | « no previous file | webrtc/modules/video_coding/codecs/vp8/default_temporal_layers_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698