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.

28 lines
831 B

  1. //
  2. // SCManagedCaptureDeviceFaceDetectionAutoFocusHandler.h
  3. // Snapchat
  4. //
  5. // Created by Jiyang Zhu on 3/7/18.
  6. // Copyright © 2018 Snapchat, Inc. All rights reserved.
  7. //
  8. // This class is used to
  9. // 1. adjust focus related parameters of camera, including focus mode and focus point.
  10. // 2. receive detected face bounds, and focus to a preferred face if needed.
  11. #import "SCManagedCaptureDeviceFocusHandler.h"
  12. #import <SCBase/SCMacros.h>
  13. #import <AVFoundation/AVFoundation.h>
  14. @protocol SCCapturer;
  15. @interface SCManagedCaptureDeviceFaceDetectionAutoFocusHandler : NSObject <SCManagedCaptureDeviceFocusHandler>
  16. SC_INIT_AND_NEW_UNAVAILABLE
  17. - (instancetype)initWithDevice:(AVCaptureDevice *)device
  18. pointOfInterest:(CGPoint)pointOfInterest
  19. managedCapturer:(id<SCCapturer>)managedCapturer;
  20. @end