OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2004 Google Inc. | 3 * Copyright 2004 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 #include <string> | 33 #include <string> |
34 #include <vector> | 34 #include <vector> |
35 | 35 |
36 #include "talk/media/base/videocapturer.h" | 36 #include "talk/media/base/videocapturer.h" |
37 #include "talk/media/webrtc/webrtcvideoframe.h" | 37 #include "talk/media/webrtc/webrtcvideoframe.h" |
38 #include "webrtc/base/asyncinvoker.h" | 38 #include "webrtc/base/asyncinvoker.h" |
39 #include "webrtc/base/messagehandler.h" | 39 #include "webrtc/base/messagehandler.h" |
40 #include "webrtc/base/scoped_ptr.h" | 40 #include "webrtc/base/scoped_ptr.h" |
41 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" | 41 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" |
42 #include "webrtc/modules/video_capture/include/video_capture.h" | 42 #include "webrtc/modules/video_capture/video_capture.h" |
43 | 43 |
44 namespace cricket { | 44 namespace cricket { |
45 | 45 |
46 // Factory to allow injection of a VCM impl into WebRtcVideoCapturer. | 46 // Factory to allow injection of a VCM impl into WebRtcVideoCapturer. |
47 // DeviceInfos do not have a Release() and therefore need an explicit Destroy(). | 47 // DeviceInfos do not have a Release() and therefore need an explicit Destroy(). |
48 class WebRtcVcmFactoryInterface { | 48 class WebRtcVcmFactoryInterface { |
49 public: | 49 public: |
50 virtual ~WebRtcVcmFactoryInterface() {} | 50 virtual ~WebRtcVcmFactoryInterface() {} |
51 virtual webrtc::VideoCaptureModule* Create( | 51 virtual webrtc::VideoCaptureModule* Create( |
52 int id, const char* device) = 0; | 52 int id, const char* device) = 0; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 public: | 107 public: |
108 WebRtcCapturedFrame(const webrtc::VideoFrame& frame, | 108 WebRtcCapturedFrame(const webrtc::VideoFrame& frame, |
109 void* buffer, | 109 void* buffer, |
110 size_t length); | 110 size_t length); |
111 }; | 111 }; |
112 | 112 |
113 } // namespace cricket | 113 } // namespace cricket |
114 | 114 |
115 #endif // HAVE_WEBRTC_VIDEO | 115 #endif // HAVE_WEBRTC_VIDEO |
116 #endif // TALK_MEDIA_WEBRTCVIDEOCAPTURER_H_ | 116 #endif // TALK_MEDIA_WEBRTCVIDEOCAPTURER_H_ |
OLD | NEW |