OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 21 matching lines...) Expand all Loading... |
32 int32_t number_of_cores, | 32 int32_t number_of_cores, |
33 size_t max_payload_size) override; | 33 size_t max_payload_size) override; |
34 int32_t Encode(const VideoFrame& input_image, | 34 int32_t Encode(const VideoFrame& input_image, |
35 const CodecSpecificInfo* codec_specific_info, | 35 const CodecSpecificInfo* codec_specific_info, |
36 const std::vector<FrameType>* frame_types) override; | 36 const std::vector<FrameType>* frame_types) override; |
37 int32_t RegisterEncodeCompleteCallback( | 37 int32_t RegisterEncodeCompleteCallback( |
38 EncodedImageCallback* callback) override; | 38 EncodedImageCallback* callback) override; |
39 int32_t Release() override; | 39 int32_t Release() override; |
40 int32_t SetChannelParameters(uint32_t packet_loss, int64_t rtt) override; | 40 int32_t SetChannelParameters(uint32_t packet_loss, int64_t rtt) override; |
41 int32_t SetRates(uint32_t new_target_bitrate, uint32_t framerate) override; | 41 int32_t SetRates(uint32_t new_target_bitrate, uint32_t framerate) override; |
| 42 const char* ImplementationName() const override; |
| 43 |
| 44 static const char* kImplementationName; |
42 | 45 |
43 protected: | 46 protected: |
44 Clock* const clock_; | 47 Clock* const clock_; |
45 VideoCodec config_; | 48 VideoCodec config_; |
46 EncodedImageCallback* callback_; | 49 EncodedImageCallback* callback_; |
47 int target_bitrate_kbps_; | 50 int target_bitrate_kbps_; |
48 int max_target_bitrate_kbps_; | 51 int max_target_bitrate_kbps_; |
49 int64_t last_encode_time_ms_; | 52 int64_t last_encode_time_ms_; |
50 uint8_t encoded_buffer_[100000]; | 53 uint8_t encoded_buffer_[100000]; |
51 }; | 54 }; |
(...skipping 24 matching lines...) Expand all Loading... |
76 const CodecSpecificInfo* codec_specific_info, | 79 const CodecSpecificInfo* codec_specific_info, |
77 const std::vector<FrameType>* frame_types) override; | 80 const std::vector<FrameType>* frame_types) override; |
78 | 81 |
79 private: | 82 private: |
80 const int delay_ms_; | 83 const int delay_ms_; |
81 }; | 84 }; |
82 } // namespace test | 85 } // namespace test |
83 } // namespace webrtc | 86 } // namespace webrtc |
84 | 87 |
85 #endif // WEBRTC_TEST_FAKE_ENCODER_H_ | 88 #endif // WEBRTC_TEST_FAKE_ENCODER_H_ |
OLD | NEW |