| 5 | #import <AVFoundation/AVFoundation.h> |
| 6 |
| 7 | #include <memory> |
| 8 | #include "api/scoped_refptr.h" |
| 9 | #include "api/media_stream_interface.h" |
| 10 | #import "base/RTCVideoFrame.h" |
| 11 | #include "Instance.h" |
| 12 |
| 13 | @interface CustomExternalCapturer : NSObject |
| 14 |
| 15 | - (instancetype)initWithSource:(webrtc::scoped_refptr<webrtc::VideoTrackSourceInterface>)source; |
| 16 |
| 17 | + (void)passPixelBuffer:(CVPixelBufferRef)pixelBuffer sampleBufferReference:(CMSampleBufferRef)sampleBufferReference rotation:(RTCVideoRotation)rotation toSource:(webrtc::scoped_refptr<webrtc::VideoTrackSourceInterface>)source croppingBuffer:(std::vector<uint8_t> &)croppingBuffer; |
| 18 |
| 19 | @end |
| 20 | #endif // WEBRTC_IOS |
| 21 | #endif |
| 22 |