| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 int32_t Release() override; | 38 int32_t Release() override; |
| 39 int32_t Encode(const VideoFrame& frame, | 39 int32_t Encode(const VideoFrame& frame, |
| 40 const CodecSpecificInfo* codec_specific_info, | 40 const CodecSpecificInfo* codec_specific_info, |
| 41 const std::vector<FrameType>* frame_types) override; | 41 const std::vector<FrameType>* frame_types) override; |
| 42 int32_t SetChannelParameters(uint32_t packet_loss, int64_t rtt) override; | 42 int32_t SetChannelParameters(uint32_t packet_loss, int64_t rtt) override; |
| 43 int32_t SetRateAllocation(const BitrateAllocation& bitrate_allocation, | 43 int32_t SetRateAllocation(const BitrateAllocation& bitrate_allocation, |
| 44 uint32_t framerate) override; | 44 uint32_t framerate) override; |
| 45 bool SupportsNativeHandle() const override; | 45 bool SupportsNativeHandle() const override; |
| 46 ScalingSettings GetScalingSettings() const override; | 46 ScalingSettings GetScalingSettings() const override; |
| 47 const char *ImplementationName() const override; |
| 47 | 48 |
| 48 private: | 49 private: |
| 49 bool InitFallbackEncoder(); | 50 bool InitFallbackEncoder(); |
| 50 | 51 |
| 51 // Settings used in the last InitEncode call and used if a dynamic fallback to | 52 // Settings used in the last InitEncode call and used if a dynamic fallback to |
| 52 // software is required. | 53 // software is required. |
| 53 VideoCodec codec_settings_; | 54 VideoCodec codec_settings_; |
| 54 int32_t number_of_cores_; | 55 int32_t number_of_cores_; |
| 55 size_t max_payload_size_; | 56 size_t max_payload_size_; |
| 56 | 57 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 68 webrtc::VideoEncoder* const encoder_; | 69 webrtc::VideoEncoder* const encoder_; |
| 69 | 70 |
| 70 std::unique_ptr<webrtc::VideoEncoder> fallback_encoder_; | 71 std::unique_ptr<webrtc::VideoEncoder> fallback_encoder_; |
| 71 std::string fallback_implementation_name_; | 72 std::string fallback_implementation_name_; |
| 72 EncodedImageCallback* callback_; | 73 EncodedImageCallback* callback_; |
| 73 }; | 74 }; |
| 74 | 75 |
| 75 } // namespace webrtc | 76 } // namespace webrtc |
| 76 | 77 |
| 77 #endif // WEBRTC_MEDIA_ENGINE_VIDEOENCODERSOFTWAREFALLBACKWRAPPER_H_ | 78 #endif // WEBRTC_MEDIA_ENGINE_VIDEOENCODERSOFTWAREFALLBACKWRAPPER_H_ |
| OLD | NEW |