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

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

Issue 3011943002: Move optional.h to webrtc/api/ (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
1 /* Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 1 /* Copyright (c) 2013 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 classes for doing temporal layers with VP8. 10 * This file defines classes for doing temporal layers with VP8.
11 */ 11 */
12 #ifndef WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_DEFAULT_TEMPORAL_LAYERS_H_ 12 #ifndef WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_DEFAULT_TEMPORAL_LAYERS_H_
13 #define WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_DEFAULT_TEMPORAL_LAYERS_H_ 13 #define WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_DEFAULT_TEMPORAL_LAYERS_H_
14 14
15 #include <vector> 15 #include <vector>
16 16
17 #include "webrtc/modules/video_coding/codecs/vp8/temporal_layers.h" 17 #include "webrtc/modules/video_coding/codecs/vp8/temporal_layers.h"
18 18
19 #include "webrtc/rtc_base/optional.h" 19 #include "webrtc/api/optional.h"
20 20
21 namespace webrtc { 21 namespace webrtc {
22 22
23 class DefaultTemporalLayers : public TemporalLayers { 23 class DefaultTemporalLayers : public TemporalLayers {
24 public: 24 public:
25 DefaultTemporalLayers(int number_of_temporal_layers, 25 DefaultTemporalLayers(int number_of_temporal_layers,
26 uint8_t initial_tl0_pic_idx); 26 uint8_t initial_tl0_pic_idx);
27 virtual ~DefaultTemporalLayers() {} 27 virtual ~DefaultTemporalLayers() {}
28 28
29 // Returns the recommended VP8 encode flags needed. May refresh the decoder 29 // Returns the recommended VP8 encode flags needed. May refresh the decoder
(...skipping 24 matching lines...) Expand all
54 const std::vector<TemporalLayers::FrameConfig> temporal_pattern_; 54 const std::vector<TemporalLayers::FrameConfig> temporal_pattern_;
55 55
56 uint8_t tl0_pic_idx_; 56 uint8_t tl0_pic_idx_;
57 uint8_t pattern_idx_; 57 uint8_t pattern_idx_;
58 bool last_base_layer_sync_; 58 bool last_base_layer_sync_;
59 rtc::Optional<std::vector<uint32_t>> new_bitrates_kbps_; 59 rtc::Optional<std::vector<uint32_t>> new_bitrates_kbps_;
60 }; 60 };
61 61
62 } // namespace webrtc 62 } // namespace webrtc
63 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_DEFAULT_TEMPORAL_LAYERS_H_ 63 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_DEFAULT_TEMPORAL_LAYERS_H_
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/BUILD.gn ('k') | webrtc/modules/video_coding/codecs/vp8/test/vp8_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698