| 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 #include <stdlib.h> | 10 #include <stdlib.h> |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 } | 232 } |
| 233 if (vp8_info->temporalIdx == 0 && timestamp != timestamp_) { | 233 if (vp8_info->temporalIdx == 0 && timestamp != timestamp_) { |
| 234 timestamp_ = timestamp; | 234 timestamp_ = timestamp; |
| 235 tl0_pic_idx_++; | 235 tl0_pic_idx_++; |
| 236 } | 236 } |
| 237 last_base_layer_sync_ = base_layer_sync; | 237 last_base_layer_sync_ = base_layer_sync; |
| 238 vp8_info->tl0PicIdx = tl0_pic_idx_; | 238 vp8_info->tl0PicIdx = tl0_pic_idx_; |
| 239 } | 239 } |
| 240 } | 240 } |
| 241 | 241 |
| 242 void FrameEncoded(unsigned int size, uint32_t timestamp) {} | 242 void FrameEncoded(unsigned int size, uint32_t timestamp, int qp) override {} |
| 243 |
| 244 bool UpdateConfiguration(vpx_codec_enc_cfg_t* cfg) override { return false; } |
| 243 | 245 |
| 244 private: | 246 private: |
| 245 int temporal_layers_; | 247 int temporal_layers_; |
| 246 int max_temporal_layers_; | 248 int max_temporal_layers_; |
| 247 | 249 |
| 248 int tl0_pic_idx_; | 250 int tl0_pic_idx_; |
| 249 unsigned int frame_counter_; | 251 unsigned int frame_counter_; |
| 250 uint32_t timestamp_; | 252 uint32_t timestamp_; |
| 251 bool last_base_layer_sync_; | 253 bool last_base_layer_sync_; |
| 252 | 254 |
| 253 // Pattern of temporal layer ids. | 255 // Pattern of temporal layer ids. |
| 254 int layer_ids_length_; | 256 int layer_ids_length_; |
| 255 const unsigned int* layer_ids_; | 257 const unsigned int* layer_ids_; |
| 256 | 258 |
| 257 // Pattern of encode flags. | 259 // Pattern of encode flags. |
| 258 int encode_flags_length_; | 260 int encode_flags_length_; |
| 259 const int* encode_flags_; | 261 const int* encode_flags_; |
| 260 }; | 262 }; |
| 261 } // namespace | 263 } // namespace |
| 262 | 264 |
| 263 TemporalLayers* RealTimeTemporalLayersFactory::Create( | 265 TemporalLayers* RealTimeTemporalLayersFactory::Create( |
| 264 int max_temporal_layers, | 266 int max_temporal_layers, |
| 265 uint8_t initial_tl0_pic_idx) const { | 267 uint8_t initial_tl0_pic_idx) const { |
| 266 return new RealTimeTemporalLayers(max_temporal_layers, initial_tl0_pic_idx); | 268 return new RealTimeTemporalLayers(max_temporal_layers, initial_tl0_pic_idx); |
| 267 } | 269 } |
| 268 } // namespace webrtc | 270 } // namespace webrtc |
| OLD | NEW |