OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 13 matching lines...) Expand all Loading... |
24 #include "webrtc/modules/include/module.h" | 24 #include "webrtc/modules/include/module.h" |
25 #include "webrtc/modules/include/module_common_types.h" | 25 #include "webrtc/modules/include/module_common_types.h" |
26 #include "webrtc/modules/video_coding/include/video_coding_defines.h" | 26 #include "webrtc/modules/video_coding/include/video_coding_defines.h" |
27 #include "webrtc/system_wrappers/include/event_wrapper.h" | 27 #include "webrtc/system_wrappers/include/event_wrapper.h" |
28 #include "webrtc/video_frame.h" | 28 #include "webrtc/video_frame.h" |
29 | 29 |
30 namespace webrtc { | 30 namespace webrtc { |
31 | 31 |
32 class Clock; | 32 class Clock; |
33 class EncodedImageCallback; | 33 class EncodedImageCallback; |
| 34 // TODO(pbos): Remove VCMQMSettingsCallback completely. This might be done by |
| 35 // removing the VCM and use VideoSender/VideoReceiver as a public interface |
| 36 // directly. |
| 37 class VCMQMSettingsCallback; |
34 class VideoEncoder; | 38 class VideoEncoder; |
35 class VideoDecoder; | 39 class VideoDecoder; |
36 struct CodecSpecificInfo; | 40 struct CodecSpecificInfo; |
37 | 41 |
38 class EventFactory { | 42 class EventFactory { |
39 public: | 43 public: |
40 virtual ~EventFactory() {} | 44 virtual ~EventFactory() {} |
41 | 45 |
42 virtual EventWrapper* CreateEvent() = 0; | 46 virtual EventWrapper* CreateEvent() = 0; |
43 }; | 47 }; |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 // | 220 // |
217 // Input: | 221 // Input: |
218 // - videoFrame : Video frame to encode. | 222 // - videoFrame : Video frame to encode. |
219 // - codecSpecificInfo : Extra codec information, e.g., pre-parsed | 223 // - codecSpecificInfo : Extra codec information, e.g., pre-parsed |
220 // in-band signaling. | 224 // in-band signaling. |
221 // | 225 // |
222 // Return value : VCM_OK, on success. | 226 // Return value : VCM_OK, on success. |
223 // < 0, on error. | 227 // < 0, on error. |
224 virtual int32_t AddVideoFrame( | 228 virtual int32_t AddVideoFrame( |
225 const VideoFrame& videoFrame, | 229 const VideoFrame& videoFrame, |
226 const VideoContentMetrics* contentMetrics = NULL, | |
227 const CodecSpecificInfo* codecSpecificInfo = NULL) = 0; | 230 const CodecSpecificInfo* codecSpecificInfo = NULL) = 0; |
228 | 231 |
229 // Next frame encoded should be an intra frame (keyframe). | 232 // Next frame encoded should be an intra frame (keyframe). |
230 // | 233 // |
231 // Return value : VCM_OK, on success. | 234 // Return value : VCM_OK, on success. |
232 // < 0, on error. | 235 // < 0, on error. |
233 virtual int32_t IntraFrameRequest(size_t stream_index) = 0; | 236 virtual int32_t IntraFrameRequest(size_t stream_index) = 0; |
234 | 237 |
235 // Frame Dropper enable. Can be used to disable the frame dropping when the | 238 // Frame Dropper enable. Can be used to disable the frame dropping when the |
236 // encoder | 239 // encoder |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 | 487 |
485 virtual void RegisterPostEncodeImageCallback( | 488 virtual void RegisterPostEncodeImageCallback( |
486 EncodedImageCallback* post_encode_callback) = 0; | 489 EncodedImageCallback* post_encode_callback) = 0; |
487 // Releases pending decode calls, permitting faster thread shutdown. | 490 // Releases pending decode calls, permitting faster thread shutdown. |
488 virtual void TriggerDecoderShutdown() = 0; | 491 virtual void TriggerDecoderShutdown() = 0; |
489 }; | 492 }; |
490 | 493 |
491 } // namespace webrtc | 494 } // namespace webrtc |
492 | 495 |
493 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODING_H_ | 496 #endif // WEBRTC_MODULES_VIDEO_CODING_INCLUDE_VIDEO_CODING_H_ |
OLD | NEW |