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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 // Eventual handler for the contained encoders' EncodedImageCallbacks, but | 53 // Eventual handler for the contained encoders' EncodedImageCallbacks, but |
54 // called from an internal helper that also knows the correct stream | 54 // called from an internal helper that also knows the correct stream |
55 // index. | 55 // index. |
56 EncodedImageCallback::Result OnEncodedImage( | 56 EncodedImageCallback::Result OnEncodedImage( |
57 size_t stream_idx, | 57 size_t stream_idx, |
58 const EncodedImage& encoded_image, | 58 const EncodedImage& encoded_image, |
59 const CodecSpecificInfo* codec_specific_info, | 59 const CodecSpecificInfo* codec_specific_info, |
60 const RTPFragmentationHeader* fragmentation); | 60 const RTPFragmentationHeader* fragmentation); |
61 | 61 |
62 void OnDroppedFrame() override; | 62 void OnDroppedFrame() override; |
| 63 QualityScaler::Settings GetQPThresholds() const override; |
63 | 64 |
64 bool SupportsNativeHandle() const override; | 65 bool SupportsNativeHandle() const override; |
65 const char* ImplementationName() const override; | 66 const char* ImplementationName() const override; |
66 | 67 |
67 private: | 68 private: |
68 struct StreamInfo { | 69 struct StreamInfo { |
69 StreamInfo() | 70 StreamInfo() |
70 : encoder(NULL), | 71 : encoder(NULL), |
71 callback(NULL), | 72 callback(NULL), |
72 width(0), | 73 width(0), |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 VideoCodec codec_; | 108 VideoCodec codec_; |
108 std::vector<StreamInfo> streaminfos_; | 109 std::vector<StreamInfo> streaminfos_; |
109 EncodedImageCallback* encoded_complete_callback_; | 110 EncodedImageCallback* encoded_complete_callback_; |
110 std::string implementation_name_; | 111 std::string implementation_name_; |
111 std::unique_ptr<SimulcastRateAllocator> rate_allocator_; | 112 std::unique_ptr<SimulcastRateAllocator> rate_allocator_; |
112 }; | 113 }; |
113 | 114 |
114 } // namespace webrtc | 115 } // namespace webrtc |
115 | 116 |
116 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_SIMULCAST_ENCODER_ADAPTER_H_ | 117 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_SIMULCAST_ENCODER_ADAPTER_H_ |
OLD | NEW |