Repo created
This commit is contained in:
parent
81b91f4139
commit
f8c34fa5ee
22732 changed files with 4815320 additions and 2 deletions
|
|
@ -0,0 +1,14 @@
|
|||
#include "ExtractCVPixelBuffer.h"
|
||||
|
||||
#include "sdk/objc/native/src/objc_frame_buffer.h"
|
||||
#import "sdk/objc/components/video_frame_buffer/RTCCVPixelBuffer.h"
|
||||
|
||||
namespace tgcalls {
|
||||
|
||||
|
||||
webrtc::scoped_refptr<webrtc::VideoFrameBuffer> extractCVPixelBuffer(void *data) {
|
||||
CVPixelBufferRef pixelBuffer = (CVPixelBufferRef)(void *)data;
|
||||
return rtc::make_ref_counted<webrtc::ObjCFrameBuffer>([[RTCCVPixelBuffer alloc] initWithPixelBuffer:pixelBuffer]);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue