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 |
11 #ifndef WEBRTC_MODULES_INTERFACE_VIDEO_CODING_H_ | 11 #ifndef WEBRTC_MODULES_INTERFACE_VIDEO_CODING_H_ |
12 #define WEBRTC_MODULES_INTERFACE_VIDEO_CODING_H_ | 12 #define WEBRTC_MODULES_INTERFACE_VIDEO_CODING_H_ |
13 | 13 |
14 #if defined(WEBRTC_WIN) | 14 #if defined(WEBRTC_WIN) |
15 // This is a workaround on Windows due to the fact that some Windows | 15 // This is a workaround on Windows due to the fact that some Windows |
16 // headers define CreateEvent as a macro to either CreateEventW or CreateEventA. | 16 // headers define CreateEvent as a macro to either CreateEventW or CreateEventA. |
17 // This can cause problems since we use that name as well and could | 17 // This can cause problems since we use that name as well and could |
18 // declare them as one thing here whereas in another place a windows header | 18 // declare them as one thing here whereas in another place a windows header |
19 // may have been included and then implementing CreateEvent() causes compilation | 19 // may have been included and then implementing CreateEvent() causes compilation |
20 // errors. So for consistency, we include the main windows header here. | 20 // errors. So for consistency, we include the main windows header here. |
21 #include <windows.h> | 21 #include <windows.h> |
22 #endif | 22 #endif |
23 | 23 |
24 #include "webrtc/modules/interface/module.h" | 24 #include "webrtc/modules/include/module.h" |
25 #include "webrtc/modules/interface/module_common_types.h" | 25 #include "webrtc/modules/include/module_common_types.h" |
26 #include "webrtc/modules/video_coding/main/interface/video_coding_defines.h" | 26 #include "webrtc/modules/video_coding/main/interface/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 | 32 |
33 class Clock; | 33 class Clock; |
34 class EncodedImageCallback; | 34 class EncodedImageCallback; |
35 class VideoEncoder; | 35 class VideoEncoder; |
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
535 EncodedImageCallback* observer) = 0; | 535 EncodedImageCallback* observer) = 0; |
536 virtual void RegisterPostEncodeImageCallback( | 536 virtual void RegisterPostEncodeImageCallback( |
537 EncodedImageCallback* post_encode_callback) = 0; | 537 EncodedImageCallback* post_encode_callback) = 0; |
538 // Releases pending decode calls, permitting faster thread shutdown. | 538 // Releases pending decode calls, permitting faster thread shutdown. |
539 virtual void TriggerDecoderShutdown() = 0; | 539 virtual void TriggerDecoderShutdown() = 0; |
540 }; | 540 }; |
541 | 541 |
542 } // namespace webrtc | 542 } // namespace webrtc |
543 | 543 |
544 #endif // WEBRTC_MODULES_INTERFACE_VIDEO_CODING_H_ | 544 #endif // WEBRTC_MODULES_INTERFACE_VIDEO_CODING_H_ |
OLD | NEW |