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

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