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

Unified Diff: webrtc/modules/video_coding/codecs/vp8/temporal_layers.h

Issue 2992123002: Merge WebRTC r18998 and r19018 to M60 branch (Closed)
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/codecs/vp8/temporal_layers.h
diff --git a/webrtc/modules/video_coding/codecs/vp8/temporal_layers.h b/webrtc/modules/video_coding/codecs/vp8/temporal_layers.h
index 9b122919380684bf651d35fc7753bda93496c976..b3601e69f0d6aa15ba498d55ce8f436649093eb1 100644
--- a/webrtc/modules/video_coding/codecs/vp8/temporal_layers.h
+++ b/webrtc/modules/video_coding/codecs/vp8/temporal_layers.h
@@ -55,6 +55,16 @@ class TemporalLayers {
int pattern_idx;
+ bool operator==(const FrameConfig& o) const {
+ return drop_frame == o.drop_frame &&
+ last_buffer_flags == o.last_buffer_flags &&
+ golden_buffer_flags == o.golden_buffer_flags &&
+ arf_buffer_flags == o.arf_buffer_flags &&
+ layer_sync == o.layer_sync && freeze_entropy == o.freeze_entropy &&
+ pattern_idx == o.pattern_idx;
+ }
+ bool operator!=(const FrameConfig& o) const { return !(*this == o); }
+
private:
FrameConfig(BufferFlags last,
BufferFlags golden,

Powered by Google App Engine
This is Rietveld 408576698