DeepARSDK / vonage-ios-objc

Video call using Vonage SDK with face masks provided by DeepAR SDK
https://developer.deepar.ai
MIT License
0 stars 4 forks source link

Use different format type #3

Open Yurlagin opened 3 years ago

Yurlagin commented 3 years ago

Hi! I use different video calls library that expects to receive CVImageBuffer in one of these formats: kCVPixelFormatType_420YpCbCr8BiPlanarFullRange or kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange.

Is it possible to receive sample buffers in one of them in DeepAr delegate's method func frameAvailable(_ sampleBuffer: CMSampleBuffer!) and how can I set it up?

JelenaKB commented 3 years ago

At the moment the available output formats are RGBA, BGRA, AEGB, and ABGR. You could convert RGBA to YUV420 in frameAvailable.