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. |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 void FrameEncoded(unsigned int size, int qp) override {} | 46 void FrameEncoded(unsigned int size, int qp) override {} |
47 | 47 |
48 int GetTemporalLayerId( | 48 int GetTemporalLayerId( |
49 const TemporalLayers::FrameConfig& references) const override; | 49 const TemporalLayers::FrameConfig& references) const override; |
50 | 50 |
51 uint8_t Tl0PicIdx() const override; | 51 uint8_t Tl0PicIdx() const override; |
52 | 52 |
53 private: | 53 private: |
54 const size_t num_layers_; | 54 const size_t num_layers_; |
55 const std::vector<unsigned int> temporal_ids_; | 55 const std::vector<unsigned int> temporal_ids_; |
| 56 const std::vector<bool> temporal_layer_sync_; |
56 const std::vector<TemporalLayers::FrameConfig> temporal_pattern_; | 57 const std::vector<TemporalLayers::FrameConfig> temporal_pattern_; |
57 | 58 |
58 uint8_t tl0_pic_idx_; | 59 uint8_t tl0_pic_idx_; |
59 uint8_t pattern_idx_; | 60 uint8_t pattern_idx_; |
60 uint32_t timestamp_; | 61 uint32_t timestamp_; |
61 bool last_base_layer_sync_; | 62 bool last_base_layer_sync_; |
62 rtc::Optional<std::vector<uint32_t>> new_bitrates_kbps_; | 63 rtc::Optional<std::vector<uint32_t>> new_bitrates_kbps_; |
63 }; | 64 }; |
64 | 65 |
65 } // namespace webrtc | 66 } // namespace webrtc |
66 #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 |