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
602 B

  1. //
  2. // SCManagedVideoFrameSampler.h
  3. // Snapchat
  4. //
  5. // Created by Michel Loenngren on 3/10/17.
  6. // Copyright © 2017 Snapchat, Inc. All rights reserved.
  7. //
  8. #import "SCManagedCapturerListener.h"
  9. #import <Foundation/Foundation.h>
  10. /**
  11. Allows consumer to register a block to sample the next CMSampleBufferRef and
  12. automatically leverages Core image to convert the pixel buffer to a UIImage.
  13. Returned image will be a copy.
  14. */
  15. @interface SCManagedVideoFrameSampler : NSObject <SCManagedCapturerListener>
  16. - (void)sampleNextFrame:(void (^)(UIImage *frame, CMTime presentationTime))completeBlock;
  17. @end