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

Side by Side Diff: webrtc/modules/video_coding/codecs/vp8/temporal_layers.h

Issue 2978743002: Fix potential incorrect sync flags used with screenshare TL stream. (Closed)
Patch Set: test case, plus frame config constructor fixes 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 unified diff | Download patch
« no previous file with comments | « webrtc/modules/video_coding/codecs/vp8/screenshare_layers_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 1 /* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
2 * 2 *
3 * Use of this source code is governed by a BSD-style license 3 * Use of this source code is governed by a BSD-style license
4 * that can be found in the LICENSE file in the root of the source 4 * that can be found in the LICENSE file in the root of the source
5 * tree. An additional intellectual property rights grant can be found 5 * tree. An additional intellectual property rights grant can be found
6 * in the file PATENTS. All contributing project authors may 6 * in the file PATENTS. All contributing project authors may
7 * be found in the AUTHORS file in the root of the source tree. 7 * be found in the AUTHORS file in the root of the source tree.
8 */ 8 */
9 /* 9 /*
10 * This file defines the interface for doing temporal layers with VP8. 10 * This file defines the interface for doing temporal layers with VP8.
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 BufferFlags arf_buffer_flags; 48 BufferFlags arf_buffer_flags;
49 49
50 // TODO(pbos): Consider breaking these out of here and returning only a 50 // TODO(pbos): Consider breaking these out of here and returning only a
51 // pattern index that needs to be returned to fill CodecSpecificInfoVP8 or 51 // pattern index that needs to be returned to fill CodecSpecificInfoVP8 or
52 // EncodeFlags. 52 // EncodeFlags.
53 bool layer_sync; 53 bool layer_sync;
54 bool freeze_entropy; 54 bool freeze_entropy;
55 55
56 int pattern_idx; 56 int pattern_idx;
57 57
58 bool operator==(const FrameConfig& o) const {
pbos-webrtc 2017/07/12 18:05:46 Where do we need this operator?
pbos-webrtc 2017/07/12 18:26:45 .. if we don't, can we delete it?
sprang_webrtc 2017/07/13 10:50:50 It's used in the test. I could add a comparator in
59 return drop_frame == o.drop_frame &&
60 last_buffer_flags == o.last_buffer_flags &&
61 golden_buffer_flags == o.golden_buffer_flags &&
62 arf_buffer_flags == o.arf_buffer_flags &&
63 layer_sync == o.layer_sync && freeze_entropy == o.freeze_entropy &&
64 pattern_idx == o.pattern_idx;
65 }
66 bool operator!=(const FrameConfig& o) const { return !(*this == o); }
67
58 private: 68 private:
59 FrameConfig(BufferFlags last, 69 FrameConfig(BufferFlags last,
60 BufferFlags golden, 70 BufferFlags golden,
61 BufferFlags arf, 71 BufferFlags arf,
62 bool freeze_entropy); 72 bool freeze_entropy);
63 }; 73 };
64 74
65 // Factory for TemporalLayer strategy. Default behavior is a fixed pattern 75 // Factory for TemporalLayer strategy. Default behavior is a fixed pattern
66 // of temporal layers. See default_temporal_layers.cc 76 // of temporal layers. See default_temporal_layers.cc
67 virtual ~TemporalLayers() {} 77 virtual ~TemporalLayers() {}
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 public: 133 public:
124 TemporalLayersListener() {} 134 TemporalLayersListener() {}
125 virtual ~TemporalLayersListener() {} 135 virtual ~TemporalLayersListener() {}
126 136
127 virtual void OnTemporalLayersCreated(int simulcast_id, 137 virtual void OnTemporalLayersCreated(int simulcast_id,
128 TemporalLayers* layers) = 0; 138 TemporalLayers* layers) = 0;
129 }; 139 };
130 140
131 } // namespace webrtc 141 } // namespace webrtc
132 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_TEMPORAL_LAYERS_H_ 142 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_TEMPORAL_LAYERS_H_
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/codecs/vp8/screenshare_layers_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698