2014 snapchat source code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
716 B

  1. //
  2. // SCProcessingModuleUtils.h
  3. // Snapchat
  4. //
  5. // Created by Brian Ng on 11/10/17.
  6. //
  7. #import <CoreImage/CoreImage.h>
  8. #import <CoreMedia/CoreMedia.h>
  9. #import <Foundation/Foundation.h>
  10. @interface SCProcessingModuleUtils : NSObject
  11. + (CVPixelBufferRef)pixelBufferFromImage:(CIImage *)image
  12. bufferPool:(CVPixelBufferPoolRef)bufferPool
  13. context:(CIContext *)context;
  14. + (CMSampleBufferRef)sampleBufferFromImage:(CIImage *)image
  15. oldSampleBuffer:(CMSampleBufferRef)oldSampleBuffer
  16. bufferPool:(CVPixelBufferPoolRef)bufferPool
  17. context:(CIContext *)context;
  18. @end