added files via upload

This commit is contained in:
Balackburn
2023-06-27 09:54:41 +02:00
commit 2ff6aac218
1420 changed files with 88898 additions and 0 deletions

1
Tweaks/PSHeader/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.DS_Store

View File

@@ -0,0 +1,7 @@
#import <AVFoundation/AVFoundation.h>
@interface AVCaptureDeviceFormat (CameraUI)
- (BOOL)cam_supportsVideoConfiguration:(NSInteger)videoConfiguration;
@end

View File

@@ -0,0 +1,10 @@
#import <AVFoundation/AVFoundation.h>
NS_CLASS_AVAILABLE_IOS(9_0)
@interface AVCaptureSession (CAMCaptureEngine)
- (void)cam_ensureInputs:(NSArray *)inputs;
- (void)cam_removeInputs:(NSArray *)inputs;
@end

View File

@@ -0,0 +1,12 @@
#import "CAMCameraSpec.h"
NS_CLASS_AVAILABLE_IOS(7_0)
@interface CAMApplicationSpec : CAMCameraSpec
+ (instancetype)specForPhone;
+ (instancetype)specForPad;
@property (readonly) NSInteger modeDialOrientation;
@property (readonly) NSInteger bottomBarOrientation;
@end

View File

@@ -0,0 +1,5 @@
#import "CAMCameraViewController.h"
NS_CLASS_AVAILABLE_IOS(8_0)
@interface CAMApplicationViewController : CAMCameraViewController
@end

View File

@@ -0,0 +1,8 @@
#import "CAMAvalancheSession.h"
NS_DEPRECATED_IOS(8_0, 8_4)
@interface CAMAvalancheCaptureService : NSObject
- (CAMAvalancheSession *)_activeAvalancheSession;
@end

View File

@@ -0,0 +1,6 @@
NS_DEPRECATED_IOS(7_0, 8_4)
@interface CAMAvalancheSession : NSObject
@property (readonly, assign, nonatomic) NSUInteger numberOfPhotos;
@end

View File

@@ -0,0 +1,44 @@
#import "CAMFilterButton.h"
#import "CAMFlashButton.h"
#import "CAMFlipButton.h"
#import "CAMHDRButton.h"
#import "CAMTimerButton.h"
#import "CAMShutterButton.h"
#import "CAMImageWell.h"
#import "CAMModeDial.h"
#import "CAMSlalomIndicatorView.h"
NS_CLASS_AVAILABLE_IOS(7_0)
@interface CAMBottomBar : UIView
@property (readonly, assign, nonatomic) UIView *backgroundView;
@property (retain, nonatomic) CAMFilterButton *filterButton;
@property (retain, nonatomic) CAMFlashButton *flashButton;
@property (retain, nonatomic) CAMFlipButton *flipButton;
@property (retain, nonatomic) CAMHDRButton *HDRButton;
@property (retain, nonatomic) CAMTimerButton *timerButton API_AVAILABLE(ios(8.0));
@property (retain, nonatomic) CAMShutterButton *shutterButton;
@property (retain, nonatomic) CAMShutterButton *stillDuringVideoButton;
@property (retain, nonatomic) CAMImageWell *imageWell;
@property (retain, nonatomic) CAMModeDial *modeDial;
@property (retain, nonatomic) CAMSlalomIndicatorView *slalomIndicatorView;
@property (assign) NSInteger layoutStyle;
+ (BOOL)wantsVerticalBarForTraitCollection:(UITraitCollection *)traitCollection API_AVAILABLE(ios(8.0));
+ (BOOL)wantsVerticalBarForLayoutStyle:(NSInteger)style API_AVAILABLE(ios(10.0));
- (CGRect)alignmentRectForFrame:(CGRect)frame;
- (NSObject *)delegate;
- (UIButton *)_expandedMenuButton;
- (UIView *)backgroundView;
- (UIView *)_shutterButtomBottomLayoutSpacer;
- (UIView *)_filterButtonBottomLayoutSpacer;
- (void)_setupHorizontalFilterButtonConstraints;
- (void)_setupVerticalFilterButtonConstraints;
- (BOOL)_isTimerButtonExpanded API_AVAILABLE(ios(8.0));
- (BOOL)shouldHideFlashButtonForMode:(NSInteger)mode device:(NSInteger)device;
- (BOOL)shouldHideFlipButtonForMode:(NSInteger)mode device:(NSInteger)device;
@end

View File

@@ -0,0 +1,9 @@
#import <UIKit/UIKit.h>
API_AVAILABLE(ios(7.0))
@interface CAMButtonLabel : UILabel
@property BOOL useLegibilityView;
@property BOOL wantsLegibilityShadow;
@end

View File

@@ -0,0 +1,8 @@
NS_CLASS_AVAILABLE_IOS(7_0)
@interface CAMCameraSpec : NSObject
+ (instancetype)specForCurrentPlatform;
+ (instancetype)specForPhone;
+ (instancetype)specForPad;
@end

View File

@@ -0,0 +1,120 @@
#import "CAMModeDial.h"
#import "CAMTopBar.h"
#import "CAMBottomBar.h"
#import "CAMFlashButton.h"
#import "CAMFlipButton.h"
#import "CAMTimerButton.h"
#import "CAMFilterButton.h"
#import "CAMHDRButton.h"
#import "CAMElapsedTimeView.h"
#import "CAMHDRBadge.h"
#import "CAMAvalancheSession.h"
#import "CAMApplicationSpec.h"
#import "CAMTorchPatternController.h"
#import "CAMPreviewView.h"
#import "CAMZoomSlider.h"
NS_CLASS_AVAILABLE_IOS(8_0)
@interface CAMCameraView : UIView
@property (assign, nonatomic) NSInteger videoFlashMode;
@property (assign, nonatomic) NSInteger flashMode;
@property (assign, nonatomic) NSInteger lastSelectedPhotoFlashMode;
@property (assign, nonatomic) NSInteger cameraDevice;
@property (assign, nonatomic) NSInteger cameraMode;
@property (getter=_numFilterSelectionsBeforeCapture, setter = _setNumFilterSelectionsBeforeCapture:) NSUInteger _numFilterSelectionsBeforeCapture;
@property (assign, nonatomic, getter=isTallScreen) BOOL tallScreen;
@property (getter=_isFlipping, setter = _setFlipping:) BOOL _flipping;
@property (readonly, assign, nonatomic) BOOL isCameraReady;
@property (assign, nonatomic) BOOL HDRIsOn;
@property (readonly, assign, nonatomic) CGRect unzoomedPreviewFrame;
@property (readonly, assign, nonatomic) CAMModeDial *_modeDial;
@property (readonly, assign, nonatomic) CAMZoomSlider *_zoomSlider;
@property (readonly, assign, nonatomic) CAMTopBar *_topBar;
@property (readonly, assign, nonatomic) CAMBottomBar *_bottomBar;
@property (readonly, assign, nonatomic) CAMFlashButton *_flashButton;
@property (readonly, assign, nonatomic) CAMFlipButton *_flipButton;
@property (readonly, assign, nonatomic) CAMTimerButton *_timerButton;
@property (readonly, assign, nonatomic) CAMFilterButton *_filterButton;
@property (readonly, assign, nonatomic) CAMHDRButton *_HDRButton;
@property (readonly, assign, nonatomic) CAMHDRBadge *_HDRBadge;
@property (readonly, assign, nonatomic) CAMShutterButton *_shutterButton;
@property (readonly, assign, nonatomic) CAMShutterButton *_stillDuringVideoButton;
@property (readonly, assign, nonatomic) CAMElapsedTimeView *_elapsedTimeView;
@property (readonly, assign, nonatomic) CAMAvalancheSession *_avalancheSession NS_DEPRECATED_IOS(7_0, 8_4);
@property (readonly, assign, nonatomic) CAMTorchPatternController *_torchPatternController;
- (BOOL)_avalancheCaptureInProgress;
- (BOOL)_didEverMoveToWindow;
- (BOOL)_isCapturing;
- (BOOL)_isHidingBadgesForFilterUI;
- (BOOL)_isStillImageMode:(NSInteger)mode;
- (BOOL)_isVideoMode:(NSInteger)mode;
- (BOOL)_performingDelayedCapture;
- (BOOL)_performingTimedCapture;
- (BOOL)_shouldEnableFlashButton;
- (BOOL)_shouldEnableModeDial;
- (BOOL)_shouldHideFilterButtonForMode:(NSInteger)mode;
- (BOOL)_shouldHideFlashButtonForMode:(NSInteger)mode;
- (BOOL)_shouldHideHDRBadgeForMode:(NSInteger)mode;
- (BOOL)_shouldHideModeDialForMode:(NSInteger)mode;
- (BOOL)_shouldHideTopBarForMode:(NSInteger)mode;
- (BOOL)_shouldUseAvalancheForDelayedCapture;
- (BOOL)bottomBarShouldHideFilterButton:(id)sender;
- (BOOL)hasInFlightCaptures;
- (BOOL)HDRIsOn;
- (CAMApplicationSpec *)spec;
- (CAMPreviewView *)previewView;
- (CGRect)_bottomBarFrame;
- (NSInteger)_currentFlashMode;
- (NSInteger)_currentTimerDuration;
- (NSInteger)_glyphOrientationForCameraOrientation:(NSInteger)cameraOrientation;
- (NSInteger)_HDRMode;
- (NSInteger)_photoFlashMode;
- (NSInteger)_remainingDelayedCaptureTicks;
- (NSString *)modeDial:(CAMModeDial *)modeDial titleForItemAtIndex:(NSUInteger)index;
- (void)_addZoomAnimationDisplayLinkWithSelector:(SEL)selector;
- (void)_beginZooming;
- (void)_captureStillDuringVideo;
- (void)_clearFocusViews;
- (void)_collapseExpandedButtonsAnimated:(BOOL)animated;
- (void)_createHDRBadgeIfNecessary;
- (void)_createZoomSliderIfNecessary;
- (void)_endZooming;
- (void)_handleVolumeUpEvents:(NSUInteger)events;
- (void)_layoutTopBarForOrientation:(NSInteger)orientation;
- (void)_rotateCameraControlsAndInterface;
- (void)_setBottomBarEnabled:(BOOL)enabled;
- (void)_setFlashMode:(NSInteger)mode;
- (void)_setOverlayControlsEnabled:(BOOL)enabled;
- (void)_setShouldShowFocus:(BOOL)focus;
- (void)_setSwipeToModeSwitchEnabled:(BOOL)enabled;
- (void)_setZoomFactor:(CGFloat)factor;
- (void)_shutterButtonClicked;
- (void)_startDelayedCapture;
- (void)_switchFromCameraModeAtIndex:(NSUInteger)fromIndex toCameraModeAtIndex:(NSUInteger)toIndex;
- (void)_teardownAvalancheCaptureTimer;
- (void)_updateForFocusCapabilities;
- (void)_updateHDRBadge;
- (void)_updatePreviewWellImage:(UIImage *)image;
- (void)_updateTopBarStyleForDeviceOrientation:(NSInteger)orientation;
- (void)cameraShutterReleased:(id)arg1;
- (void)flashButtonDidChangeFlashMode:(id)arg1;
- (void)flashButtonModeDidChange:(NSInteger)mode;
- (void)hideStaticClosedIris;
- (void)pausePreview;
- (void)resumePreview;
- (void)setCameraButtonsEnabled:(BOOL)enabled;
- (void)showZoomSlider;
- (void)takePicture;
- (void)takePictureOpenIrisAnimationFinished;
@end

View File

@@ -0,0 +1,5 @@
#import <UIKit/UIKit.h>
NS_CLASS_AVAILABLE_IOS(8_0)
@interface CAMCameraViewController : UIViewController
@end

View File

@@ -0,0 +1,16 @@
#import <Foundation/Foundation.h>
NS_CLASS_AVAILABLE_IOS(9_0)
@interface CAMCaptureCapabilities : NSObject
+ (instancetype)capabilities;
- (BOOL)isSupportedVideoConfiguration:(NSInteger)videoConfiguration forMode:(NSInteger)mode device:(NSInteger)device API_AVAILABLE(ios(10.0));
- (BOOL)isSupportedVideoModeConfiguration:(NSInteger)videoConfiguration forDevice:(NSInteger)device NS_DEPRECATED_IOS(9_0, 9_3);
- (BOOL)isSupportedSlomoModeConfiguration:(NSInteger)videoConfiguration forDevice:(NSInteger)device NS_DEPRECATED_IOS(9_0, 9_3);
- (BOOL)isFlashSupportedForDevice:(NSInteger)device;
- (BOOL)isTorchPatternSupportedForDevice:(NSInteger)device;
- (BOOL)isBackCameraSupported;
- (BOOL)isFrontCameraSupported;
@end

View File

@@ -0,0 +1,10 @@
NS_CLASS_AVAILABLE_IOS(10_0)
@interface CAMCaptureConfiguration : NSObject
- (NSInteger)videoConfiguration;
- (NSInteger)audioConfiguration;
- (NSInteger)previewConfiguration;
- (NSInteger)mode;
- (NSInteger)device;
@end

View File

@@ -0,0 +1,63 @@
#import "CAMCameraView.h"
#import "CAMAvalancheCaptureService.h"
#import "CAMEffectsRenderer.h"
#import <AVFoundation/AVFoundation.h>
NS_CLASS_AVAILABLE_IOS(8_0)
@interface CAMCaptureController : NSObject
@property (assign, nonatomic) AVCaptureDevice *currentDevice;
@property (assign, nonatomic) AVCaptureOutput *currentOutput;
@property (retain, nonatomic) AVCaptureVideoPreviewLayer *previewLayer;
@property (readonly, assign, nonatomic) AVCaptureSession *currentSession;
@property (assign, nonatomic) NSInteger cameraDevice;
@property (assign, nonatomic) NSInteger cameraMode;
@property (assign, nonatomic) NSInteger flashMode;
@property (readonly, assign, nonatomic) NSInteger cameraOrientation;
@property (assign, nonatomic, getter=isHDREnabled) BOOL HDREnabled;
@property (getter=_isPreviewPaused, setter = _setPreviewPaused:) BOOL _previewPaused;
@property (retain, nonatomic) CAMEffectsRenderer *effectsRenderer;
@property (assign, nonatomic) CGFloat videoZoomFactor;
@property BOOL performingAvalancheCapture;
+ (BOOL)isStillImageMode:(NSInteger)mode;
+ (BOOL)isVideoMode:(NSInteger)mode;
- (BOOL)_isSessionReady;
- (BOOL)_isVideoMode:(NSInteger)mode;
- (BOOL)_lockCurrentDeviceForConfiguration;
- (BOOL)canCaptureVideo;
- (BOOL)flashWillFire;
- (BOOL)hasFrontCamera;
- (BOOL)hasRearCamera;
- (BOOL)isCameraApp;
- (BOOL)isCapturingPanorama;
- (BOOL)isCapturingTimelapse;
- (BOOL)isCapturingVideo;
- (BOOL)isChangingModes;
- (BOOL)isFocusLockSupported;
- (BOOL)isReady;
- (CAMAvalancheCaptureService *)_avalancheCaptureService NS_DEPRECATED_IOS(7_0, 8_4);
- (CAMCameraView *)delegate;
- (NSMutableArray<NSNumber *> *)supportedCameraModes;
- (CGFloat)maximumZoomFactorForDevice:(AVCaptureDevice *)device;
- (double)mogulFrameRate;
- (NSUInteger)_activeFilterIndex;
- (NSUInteger)effectFilterIndexForMode:(NSInteger)mode;
- (void)_lockFocus:(BOOL)focus lockExposure:(BOOL)exposure lockWhiteBalance:(BOOL)whiteBalance;
- (void)_setFlashMode:(NSInteger)mode force:(BOOL)force;
- (void)_suggestedHDRChanged;
- (void)_unlockCurrentDeviceForConfiguration;
- (void)pausePreview;
- (void)resumePreview;
- (void)setFaceDetectionEnabled:(BOOL)enabled forceDisableImageProcessing:(BOOL)disableIP;
- (void)setFaceDetectionEnabled:(BOOL)enabled;
- (void)setFocusDisabled:(BOOL)disabled;
@end

View File

@@ -0,0 +1,15 @@
#import "CAMCaptureMovieFileOutput.h"
#import <AVFoundation/AVFoundation.h>
NS_CLASS_AVAILABLE_IOS(9_0)
@interface CAMCaptureEngine : NSObject
@property (retain, nonatomic) AVCaptureDevice *cameraDevice;
@property (retain, nonatomic) AVCaptureSession *_captureSession;
- (CAMCaptureMovieFileOutput *)movieFileOutput;
- (AVCaptureDeviceInput *)audioCaptureDeviceInput;
- (void)_handleSessionDidStartRunning:(id)arg1;
@end

View File

@@ -0,0 +1,18 @@
#import "CAMCaptureConfiguration.h"
NS_CLASS_AVAILABLE_IOS(10_0)
@interface CAMCaptureGraphConfiguration : NSObject <NSCoding>
+ (instancetype)captureGraphConfigurationUsingConfiguration:(CAMCaptureConfiguration *)configuration;
- (NSInteger)flashMode;
- (NSInteger)torchMode;
- (NSInteger)HDRMode;
- (NSInteger)timerDuration;
- (NSInteger)irisMode;
- (NSInteger)photoModeEffectFilterType;
- (NSInteger)squareModeEffectFilterType;
- (NSInteger)mode;
- (NSInteger)device;
@end

View File

@@ -0,0 +1,6 @@
typedef struct {
NSInteger mode;
NSInteger videoConfiguration;
NSInteger previewConfiguration;
NSInteger audioConfiguration;
} CAMCaptureModeWithOptions;

View File

@@ -0,0 +1,5 @@
#import <AVFoundation/AVFoundation.h>
API_AVAILABLE(ios(9.0))
@interface CAMCaptureMovieFileOutput : AVCaptureMovieFileOutput
@end

View File

@@ -0,0 +1,8 @@
#import <AVFoundation/AVFoundation.h>
NS_CLASS_AVAILABLE_IOS(9_0)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
@interface CAMCaptureStillImageOutput : AVCaptureStillImageOutput
@end
#pragma clang diagnostic pop

View File

@@ -0,0 +1,9 @@
#import <Foundation/Foundation.h>
NS_CLASS_AVAILABLE_IOS(9_0)
@interface CAMClosedViewfinderController : NSObject
- (void)addClosedViewfinderReason:(NSInteger)reason;
- (void)removeClosedViewfinderReason:(NSInteger)reason;
@end

View File

@@ -0,0 +1,4 @@
#import <UIKit/UIControl.h>
@interface CAMControlStatusIndicator : UIControl
@end

View File

@@ -0,0 +1,17 @@
#import <CoreImage/CoreImage.h>
NS_CLASS_AVAILABLE_IOS(8_0)
@interface CAMEffectFilterManager : NSObject
+ (instancetype)sharedInstance;
+ (NSString *)displayNameForType:(NSInteger)type;
- (NSUInteger)blackAndWhiteFilterStartIndex;
- (NSUInteger)filterCount;
- (CIFilter *)filterForIndex:(NSUInteger)index;
- (void)_addEffectNamed:(NSString *)name aggdName:(NSString *)aggdName filter:(CIFilter *)filter;
@end

View File

@@ -0,0 +1,4 @@
NS_DEPRECATED_IOS(7_0, 8_4)
@interface CAMEffectSelectionViewController : UIViewController
- (void)_setSelectedIndexPath:(NSIndexPath *)indexPath;
@end

View File

@@ -0,0 +1,6 @@
#import "CAMGLView.h"
NS_CLASS_AVAILABLE_IOS(8_0)
@interface CAMEffectsFullsizeView : CAMGLView
@property NSInteger filterType;
@end

View File

@@ -0,0 +1,11 @@
#import "CAMGLView.h"
NS_CLASS_AVAILABLE_IOS(8_0)
@interface CAMEffectsGridView : CAMGLView
- (NSUInteger)_cellCount;
- (NSUInteger)_filterIndexForGridIndex:(NSUInteger)index;
- (BOOL)isBlackAndWhite;
- (BOOL)isSquare;
- (CGRect)rectForFilterType:(NSInteger)type;
- (CGRect)_squareCropFromRect:(CGRect)rect;
@end

View File

@@ -0,0 +1,11 @@
NS_CLASS_AVAILABLE_IOS(8_0)
@interface CAMEffectsRenderer : NSObject
@property (assign, nonatomic, getter=isShowingGrid) BOOL showGrid;
- (void)setShowGrid:(BOOL)show animated:(BOOL)animated;
- (void)_previewStarted:(id)arg1;
- (void)_deviceStarted:(id)arg1;
- (void)_setPreviewStartedNotificationNeeded:(BOOL)arg1;
@end

View File

@@ -0,0 +1,17 @@
#import <UIKit/UIKit.h>
NS_CLASS_AVAILABLE_IOS(7_0)
@interface CAMElapsedTimeView : UIView
@property (readonly) UILabel *_timeLabel;
@property (readonly) UIImageView *_recordingImageView;
@property (readonly) NSTimer *_updateTimer;
@property (readonly) NSDate *_startTime;
- (void)_beginRecordingAnimation;
- (void)_endRecordingAnimation;
- (void)startTimer;
- (void)endTimer;
- (void)resetTimer;
- (void)_update:(NSTimer *)timer;
- (BOOL)usingBadgeAppearance;
- (UIColor *)_backgroundRedColor;
@end

View File

@@ -0,0 +1,9 @@
#import <UIKit/UIKit.h>
NS_CLASS_AVAILABLE_IOS(8_0)
@interface CAMExpandableMenuButton : UIView
@property NSUInteger selectedIndex;
+ (double)expansionDuration;
- (NSArray *)_menuItems;
- (void)setHighlighted:(BOOL)highlighted forIndex:(NSUInteger)index;
@end

View File

@@ -0,0 +1,19 @@
#import <UIKit/UIKit.h>
NS_CLASS_AVAILABLE_IOS(7_0)
@interface CAMFilterButton : UIButton <NSCoding>
@property (readonly) UIImageView *_circlesImageView;
@property (getter=isOn) BOOL on;
@property UIEdgeInsets tappableEdgeInsets;
+ (instancetype)filterButton;
- (void)_commonCAMFilterButtonInitialization;
- (UIImage *)_filterImage;
- (UIImage *)_filterOnImage;
- (CGFloat)_selectedIndicatorAlpha;
@end

View File

@@ -0,0 +1,31 @@
#import "CAMButtonLabel.h"
NS_CLASS_AVAILABLE_IOS(7_0)
@interface CAMFlashButton : UIButton
@property (assign, nonatomic) NSInteger orientation;
@property NSInteger flashMode;
@property BOOL allowsAutomaticFlash;
@property (getter=isUnavailable) BOOL unavailable;
@property (assign, nonatomic, getter=isAutoHidden) BOOL autoHidden;
@property (readonly) UIImageView *_glyphView;
@property (readonly, assign, nonatomic) UIImageView *_flashIconView;
@property (readonly, assign, nonatomic) UIImageView *_iconView;
@property (readonly, assign, nonatomic) CAMButtonLabel *_offLabel;
@property (readonly, assign, nonatomic) CAMButtonLabel *_onLabel;
@property (readonly, assign, nonatomic) CAMButtonLabel *_autoLabel;
@property (assign, nonatomic) NSUInteger selectedIndex;
- (UIView *)delegate;
- (BOOL)isExpanded;
- (void)collapseMenuAnimated:(BOOL)animated;
- (void)expandMenuAnimated:(BOOL)animated;
- (NSUInteger)indexForMode:(NSInteger)mode;
@end

View File

@@ -0,0 +1,8 @@
#import <UIKit/UIKit.h>
NS_CLASS_AVAILABLE_IOS(7_0)
@interface CAMFlipButton : UIButton
- (UIImage *)_flipImage;
@end

View File

@@ -0,0 +1,18 @@
#import <UIKit/UIKit.h>
NS_CLASS_AVAILABLE_IOS(9_0)
@interface CAMFramerateIndicatorView : UIView
@property NSInteger style;
- (NSInteger)_framesPerSecond;
- (NSString *)_labelText;
- (UIImageView *)_borderImageView;
- (UILabel *)_bottomLabel;
- (UILabel *)_topLabel;
- (void)_updateForAppearanceChange;
- (void)_updateLabels;
@end

View File

@@ -0,0 +1,9 @@
NS_CLASS_AVAILABLE_IOS(8_0)
@interface CAMGLView : UIView
@property CGSize fixedSize;
- (CGFloat)drawableHeight;
- (CGFloat)drawableWidth;
@end

View File

@@ -0,0 +1,4 @@
NS_CLASS_AVAILABLE_IOS(7_0)
@interface CAMHDRBadge : UIButton
@end

View File

@@ -0,0 +1,19 @@
#import "CAMButtonLabel.h"
API_AVAILABLE(ios(7.0))
@interface CAMHDRButton : UIButton <NSCoding>
@property (readonly, nonatomic) CAMButtonLabel *_onLabel;
@property (readonly, nonatomic) CAMButtonLabel *_offLabel;
@property (readonly, nonatomic) CAMButtonLabel *_hdrLabel;
@property (nonatomic) NSInteger orientation;
@property (nonatomic, getter=isOn) BOOL on;
- (void)_updateFromOrientationChangeAnimated:(BOOL)animated;
- (void)_updateFrameFromOrientation;
- (CGAffineTransform)_transformForOrientation:(NSInteger)orientation;
- (void)_updateLabelsFromOrientation;
- (void)_updateFromOnState;
- (void)setOrientation:(NSInteger)orientation animated:(BOOL)animated;
- (void)_layoutForLandscapeOrientation;
- (void)_layoutForPortraitOrientation;
- (void)_commonCAMHDRButtonInitialization;
@end

View File

@@ -0,0 +1,5 @@
#import <UIKit/UIKit.h>
NS_CLASS_AVAILABLE_IOS(7_0)
@interface CAMImageWell : UIView
@end

View File

@@ -0,0 +1,4 @@
NS_CLASS_AVAILABLE_IOS(8_0)
@interface CAMLegibilityViewHelper : NSObject
+ (UIImage *)_imageFromLabel:(UILabel *)label sizeToFit:(BOOL)fit;
@end

View File

@@ -0,0 +1,15 @@
#import "CAMModeDialItem.h"
NS_CLASS_AVAILABLE_IOS(7_0)
@interface CAMModeDial : UIView
@property (retain, nonatomic) NSMutableArray<CAMModeDialItem *> * _items;
@property (retain, nonatomic) UIView *_itemsContainerView;
@property (assign) NSUInteger selectedIndex;
@property (assign) NSInteger orientation;
+ (BOOL)wantsVerticalModeDialForTraitCollection:(UITraitCollection *)traitCollection NS_DEPRECATED_IOS(8_0, 9_3);
+ (BOOL)wantsVerticalModeDialForLayoutStyle:(NSInteger)style NS_AVAILABLE_IOS(10_0);
@end

View File

@@ -0,0 +1,6 @@
NS_CLASS_AVAILABLE_IOS(7_0)
@interface CAMModeDialItem : UIView
@property (retain, nonatomic) NSString *title;
- (BOOL)isSelected;
- (CAShapeLayer *)_scalableTextLayer;
@end

View File

@@ -0,0 +1,5 @@
NS_CLASS_AVAILABLE_IOS(7_0)
#import "CAMApplicationSpec.h"
@interface CAMPadApplicationSpec : CAMApplicationSpec
@end

View File

@@ -0,0 +1,3 @@
NS_CLASS_AVAILABLE_IOS(8_0)
@interface CAMPanoramaArrowView : UIView
@end

View File

@@ -0,0 +1,3 @@
NS_CLASS_AVAILABLE_IOS(8_0)
@interface CAMPanoramaLabel : UILabel
@end

View File

@@ -0,0 +1,3 @@
NS_CLASS_AVAILABLE_IOS(8_0)
@interface CAMPanoramaLevelView : UIView
@end

View File

@@ -0,0 +1,4 @@
#import "PanoramaViewDelegate.h"
@interface CAMPanoramaView : UIView <panoramaViewDelegate>
@end

View File

@@ -0,0 +1,4 @@
NS_CLASS_AVAILABLE_IOS(9_0)
@interface CAMPanoramaViewController : UIViewController
- (void)_handleDirectionChange:(id)arg1;
@end

View File

@@ -0,0 +1,5 @@
#import "CAMApplicationSpec.h"
NS_CLASS_AVAILABLE_IOS(7_0)
@interface CAMPhoneApplicationSpec : CAMApplicationSpec
@end

View File

@@ -0,0 +1,12 @@
#import <AVFoundation/AVFoundation.h>
NS_CLASS_AVAILABLE_IOS(8_0)
@interface CAMPreviewView : UIView
@property (retain, nonatomic) AVCaptureVideoPreviewLayer *videoPreviewLayer;
@property CGFloat dimmingStrength;
- (void)setDimmingStrength:(CGFloat)strength duration:(NSTimeInterval)duration;
@end

View File

@@ -0,0 +1,12 @@
#import "CAMEffectsRenderer.h"
NS_CLASS_AVAILABLE_IOS(8_0)
@interface CAMPreviewViewController : UIViewController
- (CAMEffectsRenderer *)effectsRenderer;
- (BOOL)_userLockedFocusAndExposure;
- (void)updateIndicatorVisibilityAnimated:(BOOL)animated;
@end

View File

@@ -0,0 +1,21 @@
#import "CAMShutterButtonSpec.h"
NS_CLASS_AVAILABLE_IOS(7_0)
@interface CAMShutterButton : UIButton
+ (instancetype)shutterButton;
+ (instancetype)smallShutterButton;
+ (instancetype)tinyShutterButton NS_AVAILABLE_IOS(8_0);
@property (getter=isPulsing) BOOL pulsing;
@property (getter=isSpinning) BOOL spinning;
@property NSInteger mode;
- (UIColor *)_colorForMode:(NSInteger)mode;
- (UIView *)_innerView;
- (UIView *)_outerView;
- (void)_updateOuterAndInnerLayers;
- (void)_setSpec:(CAMShutterButtonSpec)spec;
@end

View File

@@ -0,0 +1,6 @@
typedef struct CAMShutterButtonSpec {
CGFloat outerRingDiameter;
CGFloat outerRingStrokeWidth;
CGFloat stopSquareSideLength;
CGFloat stopSquareCornerRadius;
} CAMShutterButtonSpec;

View File

@@ -0,0 +1,4 @@
NS_CLASS_AVAILABLE_IOS(7_0)
@interface CAMSlalomIndicatorView : UIView
- (void)setFramesPerSecond:(NSInteger)sec;
@end

View File

@@ -0,0 +1,4 @@
NS_CLASS_AVAILABLE_IOS(8_0)
@interface CAMStillImageCaptureResponse : NSObject
- (UIImage *)thumbnailImage;
@end

View File

@@ -0,0 +1,12 @@
#import "CAMExpandableMenuButton.h"
NS_CLASS_AVAILABLE_IOS(8_0)
@interface CAMTimerButton : CAMExpandableMenuButton
@property NSInteger duration;
- (NSString *)titleForMenuItemAtIndex:(NSUInteger)index;
- (NSInteger)numberOfMenuItems;
@end

View File

@@ -0,0 +1,43 @@
#import "CAMFilterButton.h"
#import "CAMHDRButton.h"
#import "CAMFlashButton.h"
#import "CAMTimerButton.h"
#import "CAMFlipButton.h"
#import "CAMElapsedTimeView.h"
#import "CAMCaptureGraphConfiguration.h"
NS_CLASS_AVAILABLE_IOS(7_0)
@interface CAMTopBar : UIView
@property (readonly, assign, nonatomic) UIView *_backgroundView;
@property (retain, nonatomic) CAMFilterButton *filterButton;
@property (retain, nonatomic) CAMHDRButton *HDRButton;
@property (retain, nonatomic) CAMFlashButton *flashButton;
@property (retain, nonatomic) CAMTimerButton *timerButton NS_AVAILABLE_IOS(8_0);
@property (retain, nonatomic) CAMFlipButton *flipButton;
@property (retain, nonatomic) CAMElapsedTimeView *elapsedTimeView;
@property (readonly, assign, nonatomic, getter=isFloating) BOOL floating;
@property (assign, nonatomic) NSInteger orientation;
@property (assign, nonatomic) NSInteger style;
@property (assign, nonatomic) NSInteger backgroundStyle;
- (UIButton *)_expandedMenuButton NS_AVAILABLE_IOS(8_0);
- (NSObject *)delegate;
- (NSMutableArray<NSNumber *> *)_allowedControlsForVideoMode NS_AVAILABLE_IOS(8_0);
- (NSMutableArray<NSNumber *> *)_allowedControlsForStillImageMode NS_AVAILABLE_IOS(8_0);
- (NSMutableArray<NSNumber *> *)_allowedControlsForPanoramaMode NS_AVAILABLE_IOS(8_0);
- (NSMutableArray<NSNumber *> *)_allowedControlsForTimelapseMode NS_AVAILABLE_IOS(8_0);
- (BOOL)_isFlashButtonExpanded;
- (BOOL)_shouldHideFlashButton;
- (BOOL)shouldHideFlipButtonForMode:(NSInteger)mode device:(NSInteger)device NS_DEPRECATED_IOS(9_0, 9_3);
- (BOOL)shouldHideFlashButtonForMode:(NSInteger)mode device:(NSInteger)device NS_DEPRECATED_IOS(9_0, 9_3);
- (BOOL)shouldHideFlashButtonForGraphConfiguration:(CAMCaptureGraphConfiguration *)configuration NS_AVAILABLE_IOS(10_0);
- (BOOL)shouldHideFramerateIndicatorForGraphConfiguration:(CAMCaptureGraphConfiguration *)configuration NS_AVAILABLE_IOS(10_0);
- (void)setBackgroundStyle:(NSInteger)style animated:(BOOL)animated;
- (void)setStyle:(NSInteger)style animated:(BOOL)animated;
- (void)expandMenuButton:(UIButton *)button animated:(BOOL)animated;
- (void)collapseMenuButton:(UIButton *)button animated:(BOOL)animated;
@end

View File

@@ -0,0 +1,4 @@
NS_CLASS_AVAILABLE_IOS(8_0)
@interface CAMTorchPattern : NSObject
- (id)initWithType:(NSInteger)type;
@end

View File

@@ -0,0 +1,5 @@
NS_CLASS_AVAILABLE_IOS(8_0)
@interface CAMTorchPatternController : NSObject
- (void)blink;
- (void)doubleBlink;
@end

View File

@@ -0,0 +1,4 @@
NS_CLASS_AVAILABLE_IOS(7_1)
@interface CAMTriStateButton : UIControl
@property (assign, nonatomic) NSInteger flashMode;
@end

View File

@@ -0,0 +1,4 @@
@interface CAMUserPreferences : NSObject
+ (instancetype)preferences;
- (NSInteger)videoConfiguration;
@end

View File

@@ -0,0 +1,4 @@
#import "CAMControlStatusIndicator.h"
@interface CAMVideoConfigurationStatusIndicator : CAMControlStatusIndicator
@end

View File

@@ -0,0 +1,3 @@
NS_CLASS_AVAILABLE_IOS(8_0)
@interface CAMVideoPreviewView : UIView
@end

View File

@@ -0,0 +1,15 @@
#import "CAMPreviewView.h"
#import "CAMTopBar.h"
#import "CAMBottomBar.h"
#import "CAMZoomSlider.h"
NS_CLASS_AVAILABLE_IOS(9_0)
@interface CAMViewfinderView : UIView
- (CAMPreviewView *)previewView;
- (CAMTopBar *)topBar;
- (CAMBottomBar *)bottomBar;
- (CAMZoomSlider *)zoomSlider;
- (CGFloat)_interpolatedTopBarHeight;
- (CGSize)_topBarSizeForTraitCollection:(UITraitCollection *)traitCollection NS_DEPRECATED_IOS(9_0, 9_3);
- (CGSize)_topBarSizeForLayoutStyle:(NSInteger)layoutStyle NS_AVAILABLE_IOS(10_0);
@end

View File

@@ -0,0 +1,82 @@
#import "CAMTopBar.h"
#import "CAMBottomBar.h"
#import "CAMViewfinderView.h"
#import "CAMZoomSlider.h"
#import "CAMElapsedTimeView.h"
#import "CAMFramerateIndicatorView.h"
#import "CAMFlashButton.h"
#import "CUShutterButton.h"
#import "CAMPreviewViewController.h"
#import "CUCaptureController.h"
#import "CAMCaptureGraphConfiguration.h"
#import "CAMVideoConfigurationStatusIndicator.h"
NS_CLASS_AVAILABLE_IOS(9_0)
@interface CAMViewfinderViewController : UIViewController
@property NSInteger _desiredFlashMode;
@property NSInteger flashMode;
@property NSInteger _flashMode;
@property NSInteger _desiredTorchMode;
@property NSInteger torchMode NS_AVAILABLE_IOS(10_0);;
@property NSInteger _torchMode NS_DEPRECATED_IOS(9_0, 9_3);;
@property NSInteger _currentMode;
@property NSInteger _currentDevice;
@property NSInteger _desiredCaptureDevice;
@property (nonatomic, assign, readwrite, setter=_setResolvedLowLightMode:) NSInteger _resolvedLowLightMode;
@property (getter=_numFilterSelectionsBeforeCapture, setter = _setNumFilterSelectionsBeforeCapture:) NSUInteger _numFilterSelectionsBeforeCapture;
@property (nonatomic, strong) CAMViewfinderView *view;
@property (retain, nonatomic) CAMFramerateIndicatorView *_framerateIndicatorView;
@property (readonly, assign, nonatomic) CAMModeDial *_modeDial;
@property (readonly, assign, nonatomic) CAMTopBar *_topBar;
@property (readonly, assign, nonatomic) CAMBottomBar *_bottomBar;
@property (readonly, assign, nonatomic) CAMFlashButton *_flashButton;
@property (readonly, assign, nonatomic) CAMFlipButton *_flipButton;
@property (readonly, assign, nonatomic) CAMTimerButton *_timerButton;
@property (readonly, assign, nonatomic) CAMFilterButton *_filterButton;
@property (readonly, assign, nonatomic) CAMZoomSlider *_zoomSlider;
@property (readonly, assign, nonatomic) CAMHDRButton *_HDRButton;
@property (readonly, assign, nonatomic) CUShutterButton *_shutterButton;
@property (readonly, assign, nonatomic) CUShutterButton *_stillDuringVideoButton;
@property (readonly, assign, nonatomic) CAMElapsedTimeView *_elapsedTimeView;
- (BOOL)_isCapturingFromTimer;
- (BOOL)_isCapturingTimelapse;
- (BOOL)_shouldEnableFlashButton;
- (BOOL)_shouldHideFlashButtonForGraphConfiguration:(CAMCaptureGraphConfiguration *)configuration NS_AVAILABLE_IOS(10_0);
- (BOOL)_shouldHideFlashButtonForMode:(NSInteger)mode device:(NSInteger)device NS_DEPRECATED_IOS(9_0, 9_3);
- (BOOL)_shouldHideModeDialForMode:(NSInteger)mode device:(NSInteger)device NS_DEPRECATED_IOS(9_0, 9_3);
- (BOOL)_shouldHideTopBarForGraphConfiguration:(CAMCaptureGraphConfiguration *)configuration NS_AVAILABLE_IOS(10_0);
- (BOOL)_shouldHideTopBarForMode:(NSInteger)mode device:(NSInteger)device NS_DEPRECATED_IOS(9_0, 9_3);
- (BOOL)isEmulatingImagePicker;
- (CAMCaptureGraphConfiguration *)_currentGraphConfiguration;
- (CAMPreviewViewController *)_previewViewController;
- (CUCaptureController *)_captureController;
- (CAMVideoConfigurationStatusIndicator *)_targetVideoConfigurationStatusIndicator NS_AVAILABLE_IOS(14_0);
- (NSInteger)_effectFilterTypeForMode:(NSInteger)mode;
- (NSInteger)_remainingCaptureTimerTicks;
- (NSInteger)_resolvedTimerDuration;
- (NSInteger)_timerDuration;
- (NSInteger)timerDuration;
- (NSMutableArray <NSNumber *> *)modesForModeDial:(id)arg;
- (void)_captureStillImageWithCurrentSettings;
- (void)_collapseExpandedButtonsAnimated:(BOOL)animated;
- (void)_flashButtonDidChangeFlashMode:(CAMFlashButton *)flashButton;
- (void)_handleUserChangedToFlashMode:(NSInteger)flashMode;
- (void)_handleShutterButtonPressed:(id)arg1;
- (void)_handleShutterButtonReleased:(id)arg1;
- (void)_handleUserChangedFromDevice:(NSInteger)from toDevice:(NSInteger)to;
- (void)_readUserPreferencesAndHandleChanges NS_DEPRECATED_IOS(9_0, 12_4);
- (void)_setCurrentMode:(NSInteger)mode NS_DEPRECATED_IOS(9_0, 9_3);
- (void)_stopCapturingVideo;
- (void)_writeUserPreferences;
- (void)captureController:(id)arg1 didChangeToMode:(NSInteger)mode device:(NSInteger)device NS_DEPRECATED_IOS(9_0, 9_3);
- (void)readUserPreferencesAndHandleChangesWithOverrides:(id)arg1 NS_AVAILABLE_IOS(13_0);
@end

View File

@@ -0,0 +1,28 @@
NS_CLASS_AVAILABLE_IOS(8_0)
@interface CAMZoomSlider : UISlider
@property (getter=isMinimumAutozooming) BOOL minimumAutozooming;
@property (getter=isMaximumAutozooming) BOOL maximumAutozooming;
@property (getter=_isAutozooming, setter = _setAutozooming :) BOOL _autozooming;
@property (readonly) NSTimer *_visibilityTimer;
@property (readonly) UIImageView *_thumbImageView;
@property (readonly) UIView *_minTrackMaskView;
@property (readonly) UIView *_maxTrackMaskView;
@property (assign, nonatomic) UIView *delegate;
- (BOOL)visibilityTimerIsValid;
- (void)_beginAutozooming;
- (void)_commonCAMZoomSliderInitialization;
- (void)_endAutozooming;
- (void)_hideZoomSlider:(id)arg1;
- (void)_postHideZoomSliderAnimation;
- (void)_updateAutozooming;
- (void)makeInvisible;
- (void)makeVisible;
- (void)makeVisibleAnimated:(BOOL)animated;
- (void)startVisibilityTimer;
- (void)stopVisibilityTimer;
@end

View File

@@ -0,0 +1,12 @@
#import "CAMCaptureEngine.h"
NS_CLASS_AVAILABLE_IOS(9_0)
@interface CUCaptureController : NSObject
- (BOOL)isCapturingVideo;
- (BOOL)isCapturingCTMVideo;
- (BOOL)isCapturingStandardVideo;
- (BOOL)isCapturingBurst;
- (BOOL)isCapturingPanorama;
- (BOOL)isCapturingTimelapse;
- (CAMCaptureEngine *)_captureEngine;
@end

View File

@@ -0,0 +1,24 @@
#import "CAMShutterButtonSpec.h"
NS_CLASS_AVAILABLE_IOS(9_0)
@interface CUShutterButton : UIButton
+ (instancetype)shutterButton;
+ (instancetype)smallShutterButton;
+ (instancetype)smallShutterButtonWithLayoutStyle:(NSInteger)style NS_AVAILABLE_IOS(10_0);
+ (instancetype)tinyShutterButton;
+ (instancetype)tinyShutterButtonWithLayoutStyle:(NSInteger)style NS_AVAILABLE_IOS(10_0);
@property (getter=isPulsing) BOOL pulsing;
@property (getter=isSpinning) BOOL spinning;
@property NSInteger mode;
- (UIColor *)_colorForMode:(NSInteger)mode;
- (UIColor *)_innerCircleColorForMode:(NSInteger)mode spinning:(BOOL)spinning;
- (UIView *)_innerView;
- (UIView *)_outerView;
- (void)_updateOuterAndInnerLayers;
- (void)_setSpec:(CAMShutterButtonSpec)spec;
@end

View File

@@ -0,0 +1,94 @@
#import "AVCaptureDeviceFormat+CameraUI.h"
#import "AVCaptureSession+CAMCaptureEngine.h"
#import "CAMApplicationSpec.h"
#import "CAMApplicationViewController.h"
#import "CAMAvalancheCaptureService.h"
#import "CAMAvalancheSession.h"
#import "CAMBottomBar.h"
#import "CAMButtonLabel.h"
#import "CAMCameraSpec.h"
#import "CAMCameraView.h"
#import "CAMCameraViewController.h"
#import "CAMCaptureCapabilities.h"
#import "CAMCaptureConfiguration.h"
#import "CAMCaptureController.h"
#import "CAMCaptureEngine.h"
#import "CAMCaptureGraphConfiguration.h"
#import "CAMCaptureModeWithOptions.h"
#import "CAMCaptureMovieFileOutput.h"
#import "CAMCaptureStillImageOutput.h"
#import "CAMClosedViewfinderController.h"
#import "CAMEffectFilterManager.h"
#import "CAMEffectSelectionViewController.h"
#import "CAMEffectsFullsizeView.h"
#import "CAMEffectsGridView.h"
#import "CAMEffectsRenderer.h"
#import "CAMElapsedTimeView.h"
#import "CAMExpandableMenuButton.h"
#import "CAMFilterButton.h"
#import "CAMFlashButton.h"
#import "CAMFlipButton.h"
#import "CAMFramerateIndicatorView.h"
#import "CAMGLView.h"
#import "CAMHDRBadge.h"
#import "CAMHDRButton.h"
#import "CAMImageWell.h"
#import "CAMLegibilityViewHelper.h"
#import "CAMModeDial.h"
#import "CAMModeDialItem.h"
#import "CAMPadApplicationSpec.h"
#import "CAMPanoramaArrowView.h"
#import "CAMPanoramaLabel.h"
#import "CAMPanoramaLevelView.h"
#import "CAMPanoramaView.h"
#import "CAMPanoramaViewController.h"
#import "CAMPhoneApplicationSpec.h"
#import "CAMPreviewView.h"
#import "CAMPreviewViewController.h"
#import "CAMShutterButton.h"
#import "CAMShutterButtonSpec.h"
#import "CAMSlalomIndicatorView.h"
#import "CAMStillImageCaptureResponse.h"
#import "CAMTimerButton.h"
#import "CAMTopBar.h"
#import "CAMTorchPattern.h"
#import "CAMTorchPatternController.h"
#import "CAMTriStateButton.h"
#import "CAMUserPreferences.h"
#import "CAMVideoPreviewView.h"
#import "CAMViewfinderView.h"
#import "CAMViewfinderViewController.h"
#import "CAMZoomSlider.h"
#import "CUCaptureController.h"
#import "CUShutterButton.h"
#import "DCIMImageWellUtilities.h"
#import "NSValue+CameraUI.h"
#import "PanoramaViewDelegate.h"
#import "PLCameraButton.h"
#import "PLCameraButtonBar.h"
#import "PLCameraController.h"
#import "PLCameraEffectsRenderer.h"
#import "PLCameraFlashButton.h"
#import "PLCameraLevelView.h"
#import "PLCameraOptionsButton.h"
#import "PLCameraPanoramaBrokenArrowView.h"
#import "PLCameraPanoramaTextLabel.h"
#import "PLCameraPanoramaView.h"
#import "PLCameraSettingsGroupView.h"
#import "PLCameraSettingsView.h"
#import "PLCameraVideoStillCaptureButton.h"
#import "PLCameraView.h"
#import "PLCameraZoomSlider.h"
#import "PLCropOverlayBottomBar.h"
#import "PLEffectFilterManager.h"
#import "PLEffectSelectionViewController.h"
#import "PLEffectsFullsizeView.h"
#import "PLEffectsGridView.h"
#import "PLGLView.h"
#import "PLImageAdjustmentView.h"
#import "PLIOSurfaceData.h"
#import "PLPreviewOverlayView.h"
#import "PLReorientingButton.h"
#import "PLUICameraViewController.h"
#import "PLVideoPreviewView.h"
#import "UIView+CameraApp.h"

View File

@@ -0,0 +1,6 @@
NS_CLASS_AVAILABLE_IOS(8_0)
@interface DCIMImageWellUtilities : NSObject
+ (UIImage *)cameraPreviewWellImage;
@end

View File

@@ -0,0 +1,8 @@
#import "CAMCaptureModeWithOptions.h"
NS_CLASS_AVAILABLE_IOS(9_0)
@interface NSValue (CameraUI)
+ (NSValue *)valueWithModeWithOptions:(CAMCaptureModeWithOptions)options;
@end

View File

@@ -0,0 +1,3 @@
NS_CLASS_DEPRECATED_IOS(5_0, 6_1)
@interface PLCameraButton : UIButton
@end

View File

@@ -0,0 +1,8 @@
#import "PLCameraButton.h"
NS_CLASS_DEPRECATED_IOS(5_0, 6_1)
@interface PLCameraButtonBar : UIToolbar
@property (retain, nonatomic) PLCameraButton *cameraButton;
- (UIView *)_backgroundView;
- (void)_setVisibility:(BOOL)visible;
@end

View File

@@ -0,0 +1,56 @@
#import "PLCameraView.h"
#import "PLCameraEffectsRenderer.h"
#import <AVFoundation/AVFoundation.h>
NS_CLASS_DEPRECATED_IOS(5_0, 7_1)
@interface PLCameraController : NSObject
@property (assign, nonatomic)AVCaptureDevice *currentDevice;
@property (assign, nonatomic) AVCaptureOutput *currentOutput;
@property (retain, nonatomic) AVCaptureVideoPreviewLayer *previewLayer;
@property (readonly, assign, nonatomic) AVCaptureSession *currentSession;
@property (assign, nonatomic) NSInteger cameraDevice;
@property (assign, nonatomic) NSInteger cameraMode;
@property (assign, nonatomic) NSInteger flashMode;
@property (readonly, assign, nonatomic) NSInteger cameraOrientation;
@property (assign, nonatomic, getter=isHDREnabled) BOOL HDREnabled;
@property (retain, nonatomic) PLCameraEffectsRenderer *effectsRenderer NS_AVAILABLE_IOS(7_0);
@property (assign, nonatomic) CGFloat videoZoomFactor;
@property (getter=_isPreviewPaused, setter = _setPreviewPaused:) BOOL _previewPaused;
@property BOOL performingTimedCapture NS_AVAILABLE_IOS(7_0);
+ (BOOL)isStillImageMode:(NSInteger)mode;
- (BOOL)_isSessionReady;
- (BOOL)_isVideoMode:(NSInteger)mode;
- (BOOL)_lockCurrentDeviceForConfiguration;
- (BOOL)canCaptureVideo;
- (BOOL)flashWillFire;
- (BOOL)hasFrontCamera;
- (BOOL)hasRearCamera;
- (BOOL)isCameraApp;
- (BOOL)isCapturingVideo;
- (BOOL)isChangingModes;
- (BOOL)isFocusLockSupported;
- (BOOL)isReady;
- (CGFloat)maximumZoomFactorForDevice:(AVCaptureDevice *)device;
- (double)mogulFrameRate;
- (NSMutableArray<NSNumber *> *)supportedCameraModes;
- (PLCameraView *)delegate;
- (NSUInteger)_activeFilterIndex;
- (NSUInteger)effectFilterIndexForMode:(NSInteger)mode;
- (void)_lockFocus:(BOOL)focus lockExposure:(BOOL)exposure lockWhiteBalance:(BOOL)whiteBalance;
- (void)_setFlashMode:(NSInteger)mode force:(BOOL)force;
- (void)_suggestedHDRChanged;
- (void)_unlockCurrentDeviceForConfiguration;
- (void)pausePreview;
- (void)resumePreview;
- (void)setFaceDetectionEnabled:(BOOL)enabled;
- (void)setFocusDisabled:(BOOL)disabled;
@end

View File

@@ -0,0 +1,5 @@
NS_CLASS_DEPRECATED_IOS(7_0, 7_1)
@interface PLCameraEffectsRenderer : NSObject
@property (assign, nonatomic, getter=isShowingGrid) BOOL showGrid;
- (void)setShowGrid:(BOOL)show animated:(BOOL)animated;
@end

View File

@@ -0,0 +1,14 @@
#import "PLReorientingButton.h"
NS_CLASS_DEPRECATED_IOS(5_0, 6_1)
@interface PLCameraFlashButton : PLReorientingButton
@property (assign, nonatomic, getter=isAutoHidden) BOOL autoHidden;
@property NSInteger flashMode;
- (void)_expandAnimated:(BOOL)animated;
- (void)_collapseAndSetMode:(NSInteger)mode animated:(BOOL)animated;
- (UIView *)delegate;
@end

View File

@@ -0,0 +1,3 @@
NS_CLASS_DEPRECATED_IOS(5_0, 7_1)
@interface PLCameraLevelView : UIView
@end

View File

@@ -0,0 +1,5 @@
#import "PLReorientingButton.h"
NS_CLASS_DEPRECATED_IOS(5_0, 6_1)
@interface PLCameraOptionsButton : PLReorientingButton
@end

View File

@@ -0,0 +1,3 @@
NS_CLASS_DEPRECATED_IOS(5_0, 7_1)
@interface PLCameraPanoramaBrokenArrowView : UIView
@end

View File

@@ -0,0 +1,3 @@
NS_CLASS_DEPRECATED_IOS(5_0, 7_1)
@interface PLCameraPanoramaTextLabel : UILabel
@end

View File

@@ -0,0 +1,5 @@
#import "PanoramaViewDelegate.h"
NS_CLASS_DEPRECATED_IOS(5_0, 7_1)
@interface PLCameraPanoramaView : UIView <panoramaViewDelegate>
@end

View File

@@ -0,0 +1,6 @@
NS_CLASS_DEPRECATED_IOS(5_0, 6_1)
@interface PLCameraSettingsGroupView : UIView
@property (retain, nonatomic) UIView *accessorySwitch;
- (void)setType:(NSInteger)type;
- (void)setTitle:(NSString *)title;
@end

View File

@@ -0,0 +1,3 @@
NS_CLASS_DEPRECATED_IOS(5_0, 6_1)
@interface PLCameraSettingsView : UIView
@end

View File

@@ -0,0 +1,5 @@
#import "PLReorientingButton.h"
NS_CLASS_DEPRECATED_IOS(6_0, 6_1)
@interface PLCameraVideoStillCaptureButton : PLReorientingButton
@end

View File

@@ -0,0 +1,116 @@
#import "PLVideoPreviewView.h"
#import "CAMModeDial.h"
#import "CAMTopBar.h"
#import "CAMBottomBar.h"
#import "CAMFlashButton.h"
#import "CAMFlipButton.h"
#import "CAMFilterButton.h"
#import "CAMHDRButton.h"
#import "CAMElapsedTimeView.h"
#import "CAMHDRBadge.h"
#import "CAMAvalancheSession.h"
#import "CAMApplicationSpec.h"
#import "CAMPreviewView.h"
NS_CLASS_DEPRECATED_IOS(5_0, 7_1)
@interface PLCameraView : UIView
@property (retain, nonatomic) UIToolbar *bottomButtonBar;
@property NSInteger photoFlashMode;
@property (assign, nonatomic) NSInteger videoFlashMode;
@property (assign, nonatomic) NSInteger flashMode;
@property (assign, nonatomic) NSInteger lastSelectedPhotoFlashMode;
@property (readonly, assign, nonatomic) CAMModeDial *_modeDial NS_AVAILABLE_IOS(7_0);
@property (readonly, assign, nonatomic) CAMTopBar *_topBar NS_AVAILABLE_IOS(7_0);
@property (readonly, assign, nonatomic) CAMBottomBar *_bottomBar NS_AVAILABLE_IOS(7_0);
@property (readonly, assign, nonatomic) CAMFlashButton *_flashButton NS_AVAILABLE_IOS(7_0);
@property (readonly, assign, nonatomic) CAMFlipButton *_flipButton NS_AVAILABLE_IOS(7_0);
@property (readonly, assign, nonatomic) CAMFilterButton *_filterButton;
@property (readonly, assign, nonatomic) CAMHDRButton *_HDRButton NS_AVAILABLE_IOS(7_0);
@property (readonly, assign, nonatomic) CAMShutterButton *_shutterButton NS_AVAILABLE_IOS(7_0);
@property (readonly, assign, nonatomic) CAMShutterButton *_stillDuringVideoButton NS_AVAILABLE_IOS(7_0);
@property (readonly, assign, nonatomic) CAMElapsedTimeView *_elapsedTimeView NS_AVAILABLE_IOS(7_0);
@property (assign, nonatomic, getter=isTallScreen) BOOL tallScreen;
@property (readonly, assign, nonatomic) BOOL isCameraReady;
@property (assign, nonatomic) NSInteger cameraDevice;
@property (assign, nonatomic) NSInteger cameraMode;
@property (readonly, assign, nonatomic) CAMAvalancheSession *_avalancheSession NS_DEPRECATED_IOS(7_0, 8_4);
@property (assign, nonatomic) BOOL HDRIsOn;
@property (readonly, assign, nonatomic) CGRect unzoomedPreviewFrame;
@property (getter=_isFlipping, setter = _setFlipping:) BOOL _flipping;
@property (getter=_numFilterSelectionsBeforeCapture, setter = _setNumFilterSelectionsBeforeCapture:) NSUInteger _numFilterSelectionsBeforeCapture;
- (BOOL)_didEverMoveToWindow;
- (BOOL)_isCapturing;
- (BOOL)_isHidingBadgesForFilterUI;
- (BOOL)_isStillImageMode:(NSInteger)mode NS_AVAILABLE_IOS(7_0);
- (BOOL)_isStillImageMode:(NSInteger)mode;
- (BOOL)_isVideoMode:(NSInteger)mode NS_AVAILABLE_IOS(7_0);
- (BOOL)_performingTimedCapture NS_AVAILABLE_IOS(7_0);
- (BOOL)_shouldEnableFlashButton;
- (BOOL)_shouldEnableModeDial NS_AVAILABLE_IOS(7_0);
- (BOOL)_shouldHideFilterButtonForMode:(NSInteger)mode NS_AVAILABLE_IOS(7_0);
- (BOOL)_shouldHideFlashButtonForMode:(NSInteger)mode NS_AVAILABLE_IOS(7_0);
- (BOOL)_shouldHideHDRBadgeForMode:(NSInteger)mode;
- (BOOL)_shouldHideModeDialForMode:(NSInteger)mode NS_AVAILABLE_IOS(7_0);
- (BOOL)_shouldHideTopBarForMode:(NSInteger)mode NS_AVAILABLE_IOS(7_0);
- (BOOL)bottomBarShouldHideFilterButton:(id)arg1 NS_AVAILABLE_IOS(7_0);
- (BOOL)hasInFlightCaptures;
- (BOOL)HDRIsOn;
- (CAMApplicationSpec *)spec NS_AVAILABLE_IOS(7_0);
- (CAMHDRBadge *)_HDRBadge NS_AVAILABLE_IOS(7_0);
- (CGRect)_bottomBarFrame;
- (NSInteger)_currentFlashMode;
- (NSInteger)_glyphOrientationForCameraOrientation:(NSInteger)cameraOrientation;
- (NSInteger)_photoFlashMode;
- (NSString *)modeDial:(CAMModeDial *)modeDial titleForItemAtIndex:(NSUInteger)index NS_AVAILABLE_IOS(7_0);
- (PLVideoPreviewView *)videoPreviewView;
- (void)_addZoomAnimationDisplayLinkWithSelector:(SEL)selector;
- (void)_beginZooming;
- (void)_captureStillDuringVideo;
- (void)_checkDiskSpaceAfterCapture;
- (void)_clearFocusViews;
- (void)_createHDRBadgeIfNecessary;
- (void)_createZoomSliderIfNecessary;
- (void)_disableBottomBarForContinuousCapture;
- (void)_endZooming;
- (void)_handleVolumeUpEvents:(NSUInteger)events;
- (void)_layoutTopBarForOrientation:(NSInteger)orientation NS_AVAILABLE_IOS(7_0);
- (void)_loadZoomSliderResources;
- (void)_rotateCameraControlsAndInterface;
- (void)_setBottomBarEnabled:(BOOL)enabled;
- (void)_setBottomBarEnabled:(BOOL)enabled;
- (void)_setFlashMode:(NSInteger)mode;
- (void)_setOverlayControlsEnabled:(BOOL)enabled;
- (void)_setSettingsButtonAlpha:(CGFloat)alpha duration:(NSTimeInterval)duration NS_DEPRECATED_IOS(5_0, 6_1);
- (void)_setShouldShowFocus:(BOOL)focus;
- (void)_setShouldShowFocus:(BOOL)show;
- (void)_setSwipeToModeSwitchEnabled:(BOOL)enabled;
- (void)_setZoomFactor:(CGFloat)factor;
- (void)_shutterButtonClicked;
- (void)_switchFromCameraModeAtIndex:(NSUInteger)fromIndex toCameraModeAtIndex:(NSUInteger)toIndex;
- (void)_updateHDRBadge;
- (void)_updatePreviewWellImage:(UIImage *)image;
- (void)_updateTopBarStyleForDeviceOrientation:(NSInteger)orientation NS_AVAILABLE_IOS(7_0);
- (void)cameraShutterReleased:(id)arg1;
- (void)closeIrisWithDidFinishSelector:(SEL)closeIrisWith withDuration:(NSTimeInterval)duration;
- (void)flashButtonDidChangeFlashMode:(id)arg1;
- (void)flashButtonModeDidChange:(NSInteger)mode;
- (void)hideStaticClosedIris;
- (void)openIrisWithDidFinishSelector:(SEL)openIrisWith withDuration:(NSTimeInterval)duration;
- (void)pausePreview;
- (void)resumePreview;
- (void)setCameraButtonsEnabled:(BOOL)enabled;
- (void)showZoomSlider;
- (void)takePicture;
- (void)takePictureOpenIrisAnimationFinished;
@end

View File

@@ -0,0 +1,6 @@
NS_CLASS_DEPRECATED_IOS(5_0, 7_1)
@interface PLCameraZoomSlider : UISlider
- (void)makeInvisible;
- (void)makeVisible;
- (void)makeVisibleAnimated:(BOOL)animated;
@end

View File

@@ -0,0 +1,4 @@
NS_CLASS_DEPRECATED_IOS(5_0, 7_1)
@interface PLCropOverlayBottomBar : UIToolbar
- (void)_setVisibility:(BOOL)visible;
@end

View File

@@ -0,0 +1,15 @@
#import <CoreImage/CoreImage.h>
NS_CLASS_DEPRECATED_IOS(7_0, 7_1)
@interface PLEffectFilterManager : NSObject
+ (instancetype)sharedInstance;
- (NSUInteger)blackAndWhiteFilterStartIndex;
- (NSUInteger)filterCount;
- (CIFilter *)filterForIndex:(NSUInteger)index;
- (void)_addEffectNamed:(NSString *)name aggdName:(NSString *)aggdName filter:(CIFilter *)filter;
@end

View File

@@ -0,0 +1,4 @@
NS_CLASS_DEPRECATED_IOS(7_0, 7_1)
@interface PLEffectSelectionViewController : UIViewController
- (void)_setSelectedIndexPath:(NSIndexPath *)indexPath;
@end

View File

@@ -0,0 +1,5 @@
#import "PLGLView.h"
NS_CLASS_DEPRECATED_IOS(7_0, 7_1)
@interface PLEffectsFullsizeView : PLGLView
@end

View File

@@ -0,0 +1,11 @@
#import "PLGLView.h"
NS_CLASS_DEPRECATED_IOS(7_0, 7_1)
@interface PLEffectsGridView : PLGLView
- (NSUInteger)_cellCount;
- (NSUInteger)_filterIndexForGridIndex:(NSUInteger)index;
- (BOOL)isBlackAndWhite;
- (BOOL)isSquare;
- (CGRect)rectForFilterIndex:(NSUInteger)index;
- (CGRect)_squareCropFromRect:(CGRect)rect;
@end

View File

@@ -0,0 +1,6 @@
NS_CLASS_DEPRECATED_IOS(7_0, 7_1)
@interface PLGLView : UIView
@property CGSize fixedSize;
- (CGFloat)drawableHeight;
- (CGFloat)drawableWidth;
@end

View File

@@ -0,0 +1,3 @@
NS_CLASS_DEPRECATED_IOS(6_0, 7_1)
@interface PLIOSurfaceData : NSData
@end

View File

@@ -0,0 +1,4 @@
NS_CLASS_DEPRECATED_IOS(6_0, 7_1)
@interface PLImageAdjustmentView : UIView
@property (retain) UIImage *editedImage;
@end

View File

@@ -0,0 +1,2 @@
@interface PLPreviewOverlayView : UIView
@end

View File

@@ -0,0 +1,5 @@
NS_CLASS_DEPRECATED_IOS(5_0, 6_1)
@interface PLReorientingButton : UIButton
@property (assign, nonatomic) CGFloat endCapRadius;
- (void)setButtonOrientation:(NSInteger)orientation animated:(BOOL)animated;
@end

View File

@@ -0,0 +1,6 @@
#import "PLCameraView.h"
NS_CLASS_DEPRECATED_IOS(5_0, 7_1)
@interface PLUICameraViewController : UIViewController
- (PLCameraView *)_cameraView;
@end

View File

@@ -0,0 +1,3 @@
NS_CLASS_DEPRECATED_IOS(5_0, 7_1)
@interface PLVideoPreviewView : UIView
@end

View File

@@ -0,0 +1,4 @@
@protocol panoramaViewDelegate
- (void)setCaptureDirection:(NSInteger)direction;
- (void)_arrowWasTapped:(id)arg1;
@end

View File

@@ -0,0 +1,10 @@
NS_CLASS_AVAILABLE_IOS(8_0)
@interface UIView (CameraUI)
- (void)cam_setHidden:(BOOL)hidden animated:(BOOL)animated;
- (void)cam_ensureSubview:(UIView *)view;
@end
NS_CLASS_AVAILABLE_IOS(8_0)
@interface UIView (PhotoLibrary)
- (void)pl_setHidden:(BOOL)hidden animated:(BOOL)animated;
@end

View File

@@ -0,0 +1,148 @@
#ifndef _PS_CAMGESTALT
#define _PS_CAMGESTALT
// All capability keys with "?" as a comment prefix requires use with MGGetBoolAnswer(key)
// Otherwise, use MGGetSInt32Answer(key, defaultValue)
// ? has front-facing or rear-facing camera
#define kBackCameraSupportedKey "rear-facing-camera"
#define kFrontCameraSupportedKey "front-facing-camera"
// ? supports flash on front/rear camera
#define kBackFlashSupportedKey "camera-flash"
// deobfuscated: camera-front-flash
#define kFrontFlashSupportedKey "fJZs6N8SqTS4RuQVh3szxA"
// ? supports video recording
#define kVideoSupportedKey "video-camera"
// ? supports taking stills during video recording
#define kStillDuringVideoSupportedKey "video-stills"
// ? supports HDR on front/rear camera
#define kBackHDRSupportedKey "RearFacingCameraHDRCapability"
#define kFrontHDRSupportedKey "FrontFacingCameraHDRCapability"
// ? supports setting HDR mode as on on front/rear camera
// deobfuscated: RearFacingCameraHDROnCapability
#define kBackHDROnSupportedKey "LkWb+FyA1+ef2UD1Fx+kAw"
// deobfuscated: FrontFacingCameraHDROnCapability
#define kFrontHDROnSupportedKey "HnHX0gXt8RvhMQzIVMM7hw"
// ? supports auto HDR mode on front/rear camera
#define kBackAutoHDRSupportedKey "RearFacingCameraAutoHDRCapability"
#define kFrontAutoHDRSupportedKey "FrontFacingCameraAutoHDRCapability"
// ? supports live camera effect
#define kLiveFilterSupportedKey "CameraLiveEffectsCapability"
// ? supports burst mode on front/rear camera
#define kBackBurstSupportedKey "RearFacingCameraBurstCapability"
#define kFrontBurstSupportedKey "FrontFacingCameraBurstCapability"
// interval value for each burst photo captured on front/rear camera
// deobfuscated: RearFacingCameraStillDurationForBurst
#define kBackCaptureIntervalKey "gq0j1GmcIcaD4DjJoo9pfg"
// deobfuscated: FrontFacingCameraStillDurationForBurst
#define kFrontCaptureIntervalKey "TDM8SEI14n2KE9PGHO0a4A"
// ? supports iris mode on rear camera
// deobfuscated: SupportsIrisCapture
#define kIrisSupportedKey "pLzf7OiX5nWAPUMj7BfI4Q"
// ? supports slo-mo capture on front/rear camera
#define kBackSlomoSupportedKey "RearFacingCameraHFRCapability"
#define kFrontSlomoSupportedKey "FrontFacingCameraHFRCapability"
// ? supports 1080p60 on rear camera
#define kBack60FPSVideoSupportedKey "RearFacingCamera60fpsVideoCaptureCapability"
// maximum 4k FPS supported on front/rear camera
// deobfuscated: RearFacingCameraVideoCapture4kMaxFPS
#define kBack4kMaxFPSKey "po7g0ATDzGoVI1DO8ISmuw"
// deobfuscated: FrontFacingCameraVideoCapture4kMaxFPS
#define kFront4KMaxFPSKey "cux58RcuSiBhpxWnT3pE4A" // iOS 10+
// maximum 1080p FPS supported on front/rear camera
// deobfuscated: RearFacingCameraVideoCapture1080pMaxFPS
#define kBack1080pMaxFPSKey "jBGZJ71pRJrqD8VZ6Tk2VQ" // iOS 10+
// deobfuscated: FrontFacingCameraVideoCapture1080pMaxFPS
#define kFront1080pMaxFPSKey "3yzXj0lJhQi+r3kgQlwiOg" // iOS 10+
// maximum 720p FPS supported on front/rear camera
// deobfuscated: RearFacingCameraVideoCapture720pMaxFPS
#define kBack720pMaxFPSKey "0/7QNywWU4IqDcyvTv9UYQ"
// deobfuscated: FrontFacingCameraVideoCapture720pMaxFPS
#define kFront720pMaxFPSKey "0AFeHRmliNJ4pSlVb8ltZA" // iOS 10+
// maximum slo-mo 720p FPS supported on rear camera
// deobfuscated: RearFacingCameraHFRVideoCapture720pMaxFPS
#define kBackSlomo720pMaxFPSKey "XellXEQUbOIgUPoTrIj5nA"
// maximum slo-mo 1080p FPS supported on rear camera
// deobfuscated: RearFacingCameraHFRVideoCapture1080pMaxFPS
#define kBackSlomo1080pMaxFPSKey "jKFTzVOYcfTfNBh+yDrprw"
// ? supports HEVC encoding
// deobfuscated: HEVCEncodingCapability
#define kHEVCEncodingSupportedKey "g/MkWm2Ac6+TLNBgtBGxsg" // iOS 11+
// maximum video zoom factor on front/rear camera
#define kBackVideoMaximumZoomFactorKey "RearFacingCameraMaxVideoZoomFactor"
#define kFrontVideoMaximumZoomFactorKey "FrontFacingCameraMaxVideoZoomFactor"
// ? supports telephoto on rear camera
// deobfuscated: RearFacingTelephotoCameraCapability
#define kBackTelephotoSupportedKey "YzrS+WPEMqyh/FBv/n/jvA" // iOS 11+
// ? supports dual on rear camera, is used for portrait mode
// deobfuscated: DeviceHasAggregateCamera
#define kBackDualSupportedKey "0/VAyl58TL5U/mAQEJNRQw" // iOS 11+
// maximum len zoom factor for photo/video on dual rear camera
// deobfuscated: AggregateDevicePhotoZoomFactor
#define kBackDualPhotoMaximumZoomFactorKey "JLP/IinyzetEPztvoNUNKg" // iOS 11+
// deobfuscated: AggregateDeviceVideoZoomFactor
#define kBackDualVideoMaximumZoomFactorKey "IweaHIDpz+rknAcb3+xg9g" // iOS 11+
// ? has front pearl camera (might require use with MGIsQuestionValid())
// is used for portrait mode
// deobfuscated: PearlCameraCapability
// counterpart: 8S7ydMJ4DlCUF38/hI/fJA
#define kFrontPearlSupportedKey "BfEIy3W3t0Wxf7Hf7LEsAw" // iOS 11+
// ? supports portrait effects
// deobfuscated: DeviceSupportsPortraitLightEffectFilters
#define kPortraitEffectsSupportedKey "hewg+QX1h57eGJGphdCong" // iOS 11+
// ? supports forcing shutter sound on
#define kShutterSoundRequiredKey "RegionalBehaviorShutterClick"
// ? supports using lock button as shutter button
// deobfuscated: IsPwrOpposedVol
#define kLockButtonAppropriateForShutterKey "euampscYbKXqj/bSaHD0QA" // iOS 11+
// ? supports pipelined still image processing
// deobfuscated: PipelinedStillImageProcessingCapability
#define kPipelinedStillImageProcessingSupportedKey "XIcF5FOyQlt/H79oFw9ciA" // iOS 11+
// ? supports modern HDR mode
// suspected to be the key to check if the device is introduced as of 2017
// deobfuscated: CameraHDR2Capability
#define kModernHDRSupportedKey "cWWKdUn+rIclZ60ZGAVhBw" // iOS 12+
// ? supports auto low light video capture
#define kAutoLowLightVideoSupportedKey "DeviceSupportsAutoLowLightVideo" // iOS 12+
// ? supports recording stereo audio
#define kStereoAudioRecordingSupportedKey "DeviceSupportsStereoAudioRecording" // iOS 12+
// ? supports studio light portrait preview
#define kStudioLightPortraitPreviewKey "DeviceSupportsStudioLightPortraitPreview" // iOS 12+
// ? supports single camera portrait mode
// deobfuscated: DeviceSupportsSingleCameraPortrait
#define kSSingleCameraPortraitKey "FymLPtOEy6FdE7TmKeoTdg" // iOS 12+
// ? supports capturing on finger touch down
#define kCameraCaptureOnTouchDownSupportedKey "DeviceSupportsCameraCaptureOnTouchDown" // iOS 12+
#endif

View File

@@ -0,0 +1,17 @@
#ifndef _PS_CAMMACRO
#define _PS_CAMMACRO
#import <dlfcn.h>
#import "Misc.h"
#define CAMERAUI "/System/Library/PrivateFrameworks/CameraUI.framework/CameraUI"
#define openCamera10() dlopen(realPath2(@CAMERAUI), RTLD_NOW)
#define openCamera9() openCamera10()
#define CAMERAKIT "/System/Library/PrivateFrameworks/CameraKit.framework/CameraKit"
#define openCamera8() dlopen(realPath2(@CAMERAKIT), RTLD_NOW)
#define PHOTOLIBRARY "/System/Library/PrivateFrameworks/PhotoLibrary.framework/PhotoLibrary"
#define openCamera7() dlopen(realPath2(@PHOTOLIBRARY), RTLD_NOW)
#define openCamera6() openCamera7()
#define openCamera5() openCamera7()
#endif

Some files were not shown because too many files have changed in this diff Show More