| OLD | NEW |
| 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/base/optional.h" | 19 #include "webrtc/rtc_base/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 28 matching lines...) Expand all Loading... |
| 58 | 58 |
| 59 uint8_t tl0_pic_idx_; | 59 uint8_t tl0_pic_idx_; |
| 60 uint8_t pattern_idx_; | 60 uint8_t pattern_idx_; |
| 61 uint32_t timestamp_; | 61 uint32_t timestamp_; |
| 62 bool last_base_layer_sync_; | 62 bool last_base_layer_sync_; |
| 63 rtc::Optional<std::vector<uint32_t>> new_bitrates_kbps_; | 63 rtc::Optional<std::vector<uint32_t>> new_bitrates_kbps_; |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 } // namespace webrtc | 66 } // namespace webrtc |
| 67 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_DEFAULT_TEMPORAL_LAYERS_H_ | 67 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_DEFAULT_TEMPORAL_LAYERS_H_ |
| OLD | NEW |