OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2015 Google Inc. | 3 * Copyright 2015 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 // Converts the sample buffer into a cricket::CapturedFrame and signals the | 64 // Converts the sample buffer into a cricket::CapturedFrame and signals the |
65 // frame for capture. | 65 // frame for capture. |
66 void CaptureSampleBuffer(CMSampleBufferRef sampleBuffer); | 66 void CaptureSampleBuffer(CMSampleBufferRef sampleBuffer); |
67 | 67 |
68 private: | 68 private: |
69 // Used to signal frame capture on the thread that capturer was started on. | 69 // Used to signal frame capture on the thread that capturer was started on. |
70 void SignalFrameCapturedOnStartThread(const cricket::CapturedFrame* frame); | 70 void SignalFrameCapturedOnStartThread(const cricket::CapturedFrame* frame); |
71 | 71 |
72 RTCAVFoundationVideoCapturerInternal* _capturer; | 72 RTCAVFoundationVideoCapturerInternal* _capturer; |
73 rtc::Thread* _startThread; // Set in Start(), unset in Stop(). | 73 rtc::Thread* _startThread; // Set in Start(), unset in Stop(). |
74 uint64_t _startTime; | |
75 }; // AVFoundationVideoCapturer | 74 }; // AVFoundationVideoCapturer |
76 | 75 |
77 } // namespace webrtc | 76 } // namespace webrtc |
78 | 77 |
79 #endif // TALK_APP_WEBRTC_OBJC_AVFOUNDATION_CAPTURER_H_ | 78 #endif // TALK_APP_WEBRTC_OBJC_AVFOUNDATION_CAPTURER_H_ |
OLD | NEW |