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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 // index. | 52 // index. |
53 int32_t Encoded(size_t stream_idx, | 53 int32_t Encoded(size_t stream_idx, |
54 const EncodedImage& encodedImage, | 54 const EncodedImage& encodedImage, |
55 const CodecSpecificInfo* codecSpecificInfo = NULL, | 55 const CodecSpecificInfo* codecSpecificInfo = NULL, |
56 const RTPFragmentationHeader* fragmentation = NULL); | 56 const RTPFragmentationHeader* fragmentation = NULL); |
57 | 57 |
58 void OnDroppedFrame() override; | 58 void OnDroppedFrame() override; |
59 | 59 |
60 int GetTargetFramerate() override; | 60 int GetTargetFramerate() override; |
61 bool SupportsNativeHandle() const override; | 61 bool SupportsNativeHandle() const override; |
| 62 const char* ImplementationName() const override; |
62 | 63 |
63 private: | 64 private: |
64 struct StreamInfo { | 65 struct StreamInfo { |
65 StreamInfo() | 66 StreamInfo() |
66 : encoder(NULL), | 67 : encoder(NULL), |
67 callback(NULL), | 68 callback(NULL), |
68 width(0), | 69 width(0), |
69 height(0), | 70 height(0), |
70 key_frame_request(false), | 71 key_frame_request(false), |
71 send_stream(true) {} | 72 send_stream(true) {} |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 rtc::scoped_ptr<VideoEncoderFactory> factory_; | 112 rtc::scoped_ptr<VideoEncoderFactory> factory_; |
112 rtc::scoped_ptr<Config> screensharing_extra_options_; | 113 rtc::scoped_ptr<Config> screensharing_extra_options_; |
113 VideoCodec codec_; | 114 VideoCodec codec_; |
114 std::vector<StreamInfo> streaminfos_; | 115 std::vector<StreamInfo> streaminfos_; |
115 EncodedImageCallback* encoded_complete_callback_; | 116 EncodedImageCallback* encoded_complete_callback_; |
116 }; | 117 }; |
117 | 118 |
118 } // namespace webrtc | 119 } // namespace webrtc |
119 | 120 |
120 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_SIMULCAST_ENCODER_ADAPTER_H_ | 121 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_VP8_SIMULCAST_ENCODER_ADAPTER_H_ |
OLD | NEW |