| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 return layers_->ConfigureBitrates( | 189 return layers_->ConfigureBitrates( |
| 190 bitrate_kbit, max_bitrate_kbit, framerate, cfg); | 190 bitrate_kbit, max_bitrate_kbit, framerate, cfg); |
| 191 } | 191 } |
| 192 | 192 |
| 193 void PopulateCodecSpecific(bool base_layer_sync, | 193 void PopulateCodecSpecific(bool base_layer_sync, |
| 194 CodecSpecificInfoVP8* vp8_info, | 194 CodecSpecificInfoVP8* vp8_info, |
| 195 uint32_t timestamp) override { | 195 uint32_t timestamp) override { |
| 196 layers_->PopulateCodecSpecific(base_layer_sync, vp8_info, timestamp); | 196 layers_->PopulateCodecSpecific(base_layer_sync, vp8_info, timestamp); |
| 197 } | 197 } |
| 198 | 198 |
| 199 void FrameEncoded(unsigned int size, uint32_t timestamp) override { | 199 void FrameEncoded(unsigned int size, uint32_t timestamp, int qp) override { |
| 200 layers_->FrameEncoded(size, timestamp); | 200 layers_->FrameEncoded(size, timestamp, qp); |
| 201 } | 201 } |
| 202 | 202 |
| 203 int CurrentLayerId() const override { return layers_->CurrentLayerId(); } | 203 int CurrentLayerId() const override { return layers_->CurrentLayerId(); } |
| 204 | 204 |
| 205 bool UpdateConfiguration(vpx_codec_enc_cfg_t* cfg) override { |
| 206 return false; |
| 207 } |
| 208 |
| 205 int configured_bitrate_; | 209 int configured_bitrate_; |
| 206 TemporalLayers* layers_; | 210 TemporalLayers* layers_; |
| 207 }; | 211 }; |
| 208 | 212 |
| 209 class SpyingTemporalLayersFactory : public TemporalLayers::Factory { | 213 class SpyingTemporalLayersFactory : public TemporalLayers::Factory { |
| 210 public: | 214 public: |
| 211 virtual ~SpyingTemporalLayersFactory() {} | 215 virtual ~SpyingTemporalLayersFactory() {} |
| 212 TemporalLayers* Create(int temporal_layers, | 216 TemporalLayers* Create(int temporal_layers, |
| 213 uint8_t initial_tl0_pic_idx) const override { | 217 uint8_t initial_tl0_pic_idx) const override { |
| 214 SpyingTemporalLayers* layers = | 218 SpyingTemporalLayers* layers = |
| (...skipping 779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 994 rtc::scoped_ptr<VP8Decoder> decoder_; | 998 rtc::scoped_ptr<VP8Decoder> decoder_; |
| 995 MockDecodedImageCallback decoder_callback_; | 999 MockDecodedImageCallback decoder_callback_; |
| 996 VideoCodec settings_; | 1000 VideoCodec settings_; |
| 997 VideoFrame input_frame_; | 1001 VideoFrame input_frame_; |
| 998 }; | 1002 }; |
| 999 | 1003 |
| 1000 } // namespace testing | 1004 } // namespace testing |
| 1001 } // namespace webrtc | 1005 } // namespace webrtc |
| 1002 | 1006 |
| 1003 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_SIMULCAST_UNITTEST_H_ | 1007 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_SIMULCAST_UNITTEST_H_ |
| OLD | NEW |