| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 // Eventual handler for the contained encoders' EncodedImageCallbacks, but | 51 // Eventual handler for the contained encoders' EncodedImageCallbacks, but |
| 52 // called from an internal helper that also knows the correct stream | 52 // called from an internal helper that also knows the correct stream |
| 53 // index. | 53 // index. |
| 54 int32_t Encoded(size_t stream_idx, | 54 int32_t Encoded(size_t stream_idx, |
| 55 const EncodedImage& encodedImage, | 55 const EncodedImage& encodedImage, |
| 56 const CodecSpecificInfo* codecSpecificInfo = NULL, | 56 const CodecSpecificInfo* codecSpecificInfo = NULL, |
| 57 const RTPFragmentationHeader* fragmentation = NULL); | 57 const RTPFragmentationHeader* fragmentation = NULL); |
| 58 | 58 |
| 59 void OnDroppedFrame() override; | 59 void OnDroppedFrame() override; |
| 60 | 60 |
| 61 int GetTargetFramerate() override; | |
| 62 bool SupportsNativeHandle() const override; | 61 bool SupportsNativeHandle() const override; |
| 63 const char* ImplementationName() const override; | 62 const char* ImplementationName() const override; |
| 64 | 63 |
| 65 private: | 64 private: |
| 66 struct StreamInfo { | 65 struct StreamInfo { |
| 67 StreamInfo() | 66 StreamInfo() |
| 68 : encoder(NULL), | 67 : encoder(NULL), |
| 69 callback(NULL), | 68 callback(NULL), |
| 70 width(0), | 69 width(0), |
| 71 height(0), | 70 height(0), |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 std::unique_ptr<TemporalLayersFactory> screensharing_tl_factory_; | 113 std::unique_ptr<TemporalLayersFactory> screensharing_tl_factory_; |
| 115 VideoCodec codec_; | 114 VideoCodec codec_; |
| 116 std::vector<StreamInfo> streaminfos_; | 115 std::vector<StreamInfo> streaminfos_; |
| 117 EncodedImageCallback* encoded_complete_callback_; | 116 EncodedImageCallback* encoded_complete_callback_; |
| 118 std::string implementation_name_; | 117 std::string implementation_name_; |
| 119 }; | 118 }; |
| 120 | 119 |
| 121 } // namespace webrtc | 120 } // namespace webrtc |
| 122 | 121 |
| 123 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_SIMULCAST_ENCODER_ADAPTER_H_ | 122 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_SIMULCAST_ENCODER_ADAPTER_H_ |
| OLD | NEW |