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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 uint32_t framerate); | 172 uint32_t framerate); |
173 | 173 |
174 // Any encoder implementation wishing to use the WebRTC provided | 174 // Any encoder implementation wishing to use the WebRTC provided |
175 // quality scaler must implement this method. | 175 // quality scaler must implement this method. |
176 virtual ScalingSettings GetScalingSettings() const; | 176 virtual ScalingSettings GetScalingSettings() const; |
177 | 177 |
178 virtual int32_t SetPeriodicKeyFrames(bool enable); | 178 virtual int32_t SetPeriodicKeyFrames(bool enable); |
179 virtual bool SupportsNativeHandle() const; | 179 virtual bool SupportsNativeHandle() const; |
180 virtual const char* ImplementationName() const; | 180 virtual const char* ImplementationName() const; |
181 }; | 181 }; |
| 182 |
| 183 class VideoEncoderFactoryEx { |
| 184 public: |
| 185 virtual VideoEncoder* Create() = 0; |
| 186 virtual void Destroy(VideoEncoder* encoder) = 0; |
| 187 virtual ~VideoEncoderFactoryEx() {} |
| 188 }; |
| 189 |
182 } // namespace webrtc | 190 } // namespace webrtc |
183 #endif // API_VIDEO_CODECS_VIDEO_ENCODER_H_ | 191 #endif // API_VIDEO_CODECS_VIDEO_ENCODER_H_ |
OLD | NEW |