OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 62 |
63 explicit CaptureRenderAdapter(VideoCapturer* video_capturer); | 63 explicit CaptureRenderAdapter(VideoCapturer* video_capturer); |
64 void Init(); | 64 void Init(); |
65 | 65 |
66 // Callback for frames received from the capturer. | 66 // Callback for frames received from the capturer. |
67 void OnVideoFrame(VideoCapturer* capturer, const VideoFrame* video_frame); | 67 void OnVideoFrame(VideoCapturer* capturer, const VideoFrame* video_frame); |
68 | 68 |
69 VideoRenderers video_renderers_; | 69 VideoRenderers video_renderers_; |
70 VideoCapturer* video_capturer_; | 70 VideoCapturer* video_capturer_; |
71 // Critical section synchronizing the capture thread. | 71 // Critical section synchronizing the capture thread. |
72 mutable rtc::CriticalSection capture_crit_; | 72 rtc::CriticalSection capture_crit_; |
73 }; | 73 }; |
74 | 74 |
75 } // namespace cricket | 75 } // namespace cricket |
76 | 76 |
77 #endif // TALK_MEDIA_BASE_CAPTURERENDERADAPTER_H_ | 77 #endif // TALK_MEDIA_BASE_CAPTURERENDERADAPTER_H_ |
OLD | NEW |