mirror of
https://github.com/SoPat712/YTLitePlus.git
synced 2026-02-10 00:45:09 -05:00
added files via upload
This commit is contained in:
1
Tweaks/PSHeader/.gitignore
vendored
Normal file
1
Tweaks/PSHeader/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.DS_Store
|
||||
@@ -0,0 +1,7 @@
|
||||
#import <AVFoundation/AVFoundation.h>
|
||||
|
||||
@interface AVCaptureDeviceFormat (CameraUI)
|
||||
|
||||
- (BOOL)cam_supportsVideoConfiguration:(NSInteger)videoConfiguration;
|
||||
|
||||
@end
|
||||
@@ -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
|
||||
|
||||
12
Tweaks/PSHeader/CameraApp/CAMApplicationSpec.h
Normal file
12
Tweaks/PSHeader/CameraApp/CAMApplicationSpec.h
Normal 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
|
||||
5
Tweaks/PSHeader/CameraApp/CAMApplicationViewController.h
Normal file
5
Tweaks/PSHeader/CameraApp/CAMApplicationViewController.h
Normal file
@@ -0,0 +1,5 @@
|
||||
#import "CAMCameraViewController.h"
|
||||
|
||||
NS_CLASS_AVAILABLE_IOS(8_0)
|
||||
@interface CAMApplicationViewController : CAMCameraViewController
|
||||
@end
|
||||
8
Tweaks/PSHeader/CameraApp/CAMAvalancheCaptureService.h
Normal file
8
Tweaks/PSHeader/CameraApp/CAMAvalancheCaptureService.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#import "CAMAvalancheSession.h"
|
||||
|
||||
NS_DEPRECATED_IOS(8_0, 8_4)
|
||||
@interface CAMAvalancheCaptureService : NSObject
|
||||
|
||||
- (CAMAvalancheSession *)_activeAvalancheSession;
|
||||
|
||||
@end
|
||||
6
Tweaks/PSHeader/CameraApp/CAMAvalancheSession.h
Normal file
6
Tweaks/PSHeader/CameraApp/CAMAvalancheSession.h
Normal file
@@ -0,0 +1,6 @@
|
||||
NS_DEPRECATED_IOS(7_0, 8_4)
|
||||
@interface CAMAvalancheSession : NSObject
|
||||
|
||||
@property (readonly, assign, nonatomic) NSUInteger numberOfPhotos;
|
||||
|
||||
@end
|
||||
44
Tweaks/PSHeader/CameraApp/CAMBottomBar.h
Normal file
44
Tweaks/PSHeader/CameraApp/CAMBottomBar.h
Normal 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
|
||||
9
Tweaks/PSHeader/CameraApp/CAMButtonLabel.h
Normal file
9
Tweaks/PSHeader/CameraApp/CAMButtonLabel.h
Normal file
@@ -0,0 +1,9 @@
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
API_AVAILABLE(ios(7.0))
|
||||
@interface CAMButtonLabel : UILabel
|
||||
|
||||
@property BOOL useLegibilityView;
|
||||
@property BOOL wantsLegibilityShadow;
|
||||
|
||||
@end
|
||||
8
Tweaks/PSHeader/CameraApp/CAMCameraSpec.h
Normal file
8
Tweaks/PSHeader/CameraApp/CAMCameraSpec.h
Normal file
@@ -0,0 +1,8 @@
|
||||
NS_CLASS_AVAILABLE_IOS(7_0)
|
||||
@interface CAMCameraSpec : NSObject
|
||||
|
||||
+ (instancetype)specForCurrentPlatform;
|
||||
+ (instancetype)specForPhone;
|
||||
+ (instancetype)specForPad;
|
||||
|
||||
@end
|
||||
120
Tweaks/PSHeader/CameraApp/CAMCameraView.h
Normal file
120
Tweaks/PSHeader/CameraApp/CAMCameraView.h
Normal 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
|
||||
5
Tweaks/PSHeader/CameraApp/CAMCameraViewController.h
Normal file
5
Tweaks/PSHeader/CameraApp/CAMCameraViewController.h
Normal file
@@ -0,0 +1,5 @@
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
NS_CLASS_AVAILABLE_IOS(8_0)
|
||||
@interface CAMCameraViewController : UIViewController
|
||||
@end
|
||||
16
Tweaks/PSHeader/CameraApp/CAMCaptureCapabilities.h
Normal file
16
Tweaks/PSHeader/CameraApp/CAMCaptureCapabilities.h
Normal 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
|
||||
10
Tweaks/PSHeader/CameraApp/CAMCaptureConfiguration.h
Normal file
10
Tweaks/PSHeader/CameraApp/CAMCaptureConfiguration.h
Normal 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
|
||||
63
Tweaks/PSHeader/CameraApp/CAMCaptureController.h
Normal file
63
Tweaks/PSHeader/CameraApp/CAMCaptureController.h
Normal 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
|
||||
15
Tweaks/PSHeader/CameraApp/CAMCaptureEngine.h
Normal file
15
Tweaks/PSHeader/CameraApp/CAMCaptureEngine.h
Normal 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
|
||||
18
Tweaks/PSHeader/CameraApp/CAMCaptureGraphConfiguration.h
Normal file
18
Tweaks/PSHeader/CameraApp/CAMCaptureGraphConfiguration.h
Normal 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
|
||||
6
Tweaks/PSHeader/CameraApp/CAMCaptureModeWithOptions.h
Normal file
6
Tweaks/PSHeader/CameraApp/CAMCaptureModeWithOptions.h
Normal file
@@ -0,0 +1,6 @@
|
||||
typedef struct {
|
||||
NSInteger mode;
|
||||
NSInteger videoConfiguration;
|
||||
NSInteger previewConfiguration;
|
||||
NSInteger audioConfiguration;
|
||||
} CAMCaptureModeWithOptions;
|
||||
5
Tweaks/PSHeader/CameraApp/CAMCaptureMovieFileOutput.h
Normal file
5
Tweaks/PSHeader/CameraApp/CAMCaptureMovieFileOutput.h
Normal file
@@ -0,0 +1,5 @@
|
||||
#import <AVFoundation/AVFoundation.h>
|
||||
|
||||
API_AVAILABLE(ios(9.0))
|
||||
@interface CAMCaptureMovieFileOutput : AVCaptureMovieFileOutput
|
||||
@end
|
||||
8
Tweaks/PSHeader/CameraApp/CAMCaptureStillImageOutput.h
Normal file
8
Tweaks/PSHeader/CameraApp/CAMCaptureStillImageOutput.h
Normal 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
|
||||
@@ -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
|
||||
4
Tweaks/PSHeader/CameraApp/CAMControlStatusIndicator.h
Normal file
4
Tweaks/PSHeader/CameraApp/CAMControlStatusIndicator.h
Normal file
@@ -0,0 +1,4 @@
|
||||
#import <UIKit/UIControl.h>
|
||||
|
||||
@interface CAMControlStatusIndicator : UIControl
|
||||
@end
|
||||
17
Tweaks/PSHeader/CameraApp/CAMEffectFilterManager.h
Normal file
17
Tweaks/PSHeader/CameraApp/CAMEffectFilterManager.h
Normal 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
|
||||
@@ -0,0 +1,4 @@
|
||||
NS_DEPRECATED_IOS(7_0, 8_4)
|
||||
@interface CAMEffectSelectionViewController : UIViewController
|
||||
- (void)_setSelectedIndexPath:(NSIndexPath *)indexPath;
|
||||
@end
|
||||
6
Tweaks/PSHeader/CameraApp/CAMEffectsFullsizeView.h
Normal file
6
Tweaks/PSHeader/CameraApp/CAMEffectsFullsizeView.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#import "CAMGLView.h"
|
||||
|
||||
NS_CLASS_AVAILABLE_IOS(8_0)
|
||||
@interface CAMEffectsFullsizeView : CAMGLView
|
||||
@property NSInteger filterType;
|
||||
@end
|
||||
11
Tweaks/PSHeader/CameraApp/CAMEffectsGridView.h
Normal file
11
Tweaks/PSHeader/CameraApp/CAMEffectsGridView.h
Normal 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
|
||||
11
Tweaks/PSHeader/CameraApp/CAMEffectsRenderer.h
Normal file
11
Tweaks/PSHeader/CameraApp/CAMEffectsRenderer.h
Normal 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
|
||||
17
Tweaks/PSHeader/CameraApp/CAMElapsedTimeView.h
Normal file
17
Tweaks/PSHeader/CameraApp/CAMElapsedTimeView.h
Normal 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
|
||||
9
Tweaks/PSHeader/CameraApp/CAMExpandableMenuButton.h
Normal file
9
Tweaks/PSHeader/CameraApp/CAMExpandableMenuButton.h
Normal 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
|
||||
19
Tweaks/PSHeader/CameraApp/CAMFilterButton.h
Normal file
19
Tweaks/PSHeader/CameraApp/CAMFilterButton.h
Normal 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
|
||||
31
Tweaks/PSHeader/CameraApp/CAMFlashButton.h
Normal file
31
Tweaks/PSHeader/CameraApp/CAMFlashButton.h
Normal 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
|
||||
8
Tweaks/PSHeader/CameraApp/CAMFlipButton.h
Normal file
8
Tweaks/PSHeader/CameraApp/CAMFlipButton.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
NS_CLASS_AVAILABLE_IOS(7_0)
|
||||
@interface CAMFlipButton : UIButton
|
||||
|
||||
- (UIImage *)_flipImage;
|
||||
|
||||
@end
|
||||
18
Tweaks/PSHeader/CameraApp/CAMFramerateIndicatorView.h
Normal file
18
Tweaks/PSHeader/CameraApp/CAMFramerateIndicatorView.h
Normal 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
|
||||
9
Tweaks/PSHeader/CameraApp/CAMGLView.h
Normal file
9
Tweaks/PSHeader/CameraApp/CAMGLView.h
Normal file
@@ -0,0 +1,9 @@
|
||||
NS_CLASS_AVAILABLE_IOS(8_0)
|
||||
@interface CAMGLView : UIView
|
||||
|
||||
@property CGSize fixedSize;
|
||||
|
||||
- (CGFloat)drawableHeight;
|
||||
- (CGFloat)drawableWidth;
|
||||
|
||||
@end
|
||||
4
Tweaks/PSHeader/CameraApp/CAMHDRBadge.h
Normal file
4
Tweaks/PSHeader/CameraApp/CAMHDRBadge.h
Normal file
@@ -0,0 +1,4 @@
|
||||
NS_CLASS_AVAILABLE_IOS(7_0)
|
||||
@interface CAMHDRBadge : UIButton
|
||||
@end
|
||||
|
||||
19
Tweaks/PSHeader/CameraApp/CAMHDRButton.h
Normal file
19
Tweaks/PSHeader/CameraApp/CAMHDRButton.h
Normal 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
|
||||
5
Tweaks/PSHeader/CameraApp/CAMImageWell.h
Normal file
5
Tweaks/PSHeader/CameraApp/CAMImageWell.h
Normal file
@@ -0,0 +1,5 @@
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
NS_CLASS_AVAILABLE_IOS(7_0)
|
||||
@interface CAMImageWell : UIView
|
||||
@end
|
||||
4
Tweaks/PSHeader/CameraApp/CAMLegibilityViewHelper.h
Normal file
4
Tweaks/PSHeader/CameraApp/CAMLegibilityViewHelper.h
Normal file
@@ -0,0 +1,4 @@
|
||||
NS_CLASS_AVAILABLE_IOS(8_0)
|
||||
@interface CAMLegibilityViewHelper : NSObject
|
||||
+ (UIImage *)_imageFromLabel:(UILabel *)label sizeToFit:(BOOL)fit;
|
||||
@end
|
||||
15
Tweaks/PSHeader/CameraApp/CAMModeDial.h
Normal file
15
Tweaks/PSHeader/CameraApp/CAMModeDial.h
Normal 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
|
||||
6
Tweaks/PSHeader/CameraApp/CAMModeDialItem.h
Normal file
6
Tweaks/PSHeader/CameraApp/CAMModeDialItem.h
Normal file
@@ -0,0 +1,6 @@
|
||||
NS_CLASS_AVAILABLE_IOS(7_0)
|
||||
@interface CAMModeDialItem : UIView
|
||||
@property (retain, nonatomic) NSString *title;
|
||||
- (BOOL)isSelected;
|
||||
- (CAShapeLayer *)_scalableTextLayer;
|
||||
@end
|
||||
5
Tweaks/PSHeader/CameraApp/CAMPadApplicationSpec.h
Normal file
5
Tweaks/PSHeader/CameraApp/CAMPadApplicationSpec.h
Normal file
@@ -0,0 +1,5 @@
|
||||
NS_CLASS_AVAILABLE_IOS(7_0)
|
||||
#import "CAMApplicationSpec.h"
|
||||
|
||||
@interface CAMPadApplicationSpec : CAMApplicationSpec
|
||||
@end
|
||||
3
Tweaks/PSHeader/CameraApp/CAMPanoramaArrowView.h
Normal file
3
Tweaks/PSHeader/CameraApp/CAMPanoramaArrowView.h
Normal file
@@ -0,0 +1,3 @@
|
||||
NS_CLASS_AVAILABLE_IOS(8_0)
|
||||
@interface CAMPanoramaArrowView : UIView
|
||||
@end
|
||||
3
Tweaks/PSHeader/CameraApp/CAMPanoramaLabel.h
Normal file
3
Tweaks/PSHeader/CameraApp/CAMPanoramaLabel.h
Normal file
@@ -0,0 +1,3 @@
|
||||
NS_CLASS_AVAILABLE_IOS(8_0)
|
||||
@interface CAMPanoramaLabel : UILabel
|
||||
@end
|
||||
3
Tweaks/PSHeader/CameraApp/CAMPanoramaLevelView.h
Normal file
3
Tweaks/PSHeader/CameraApp/CAMPanoramaLevelView.h
Normal file
@@ -0,0 +1,3 @@
|
||||
NS_CLASS_AVAILABLE_IOS(8_0)
|
||||
@interface CAMPanoramaLevelView : UIView
|
||||
@end
|
||||
4
Tweaks/PSHeader/CameraApp/CAMPanoramaView.h
Normal file
4
Tweaks/PSHeader/CameraApp/CAMPanoramaView.h
Normal file
@@ -0,0 +1,4 @@
|
||||
#import "PanoramaViewDelegate.h"
|
||||
|
||||
@interface CAMPanoramaView : UIView <panoramaViewDelegate>
|
||||
@end
|
||||
4
Tweaks/PSHeader/CameraApp/CAMPanoramaViewController.h
Normal file
4
Tweaks/PSHeader/CameraApp/CAMPanoramaViewController.h
Normal file
@@ -0,0 +1,4 @@
|
||||
NS_CLASS_AVAILABLE_IOS(9_0)
|
||||
@interface CAMPanoramaViewController : UIViewController
|
||||
- (void)_handleDirectionChange:(id)arg1;
|
||||
@end
|
||||
5
Tweaks/PSHeader/CameraApp/CAMPhoneApplicationSpec.h
Normal file
5
Tweaks/PSHeader/CameraApp/CAMPhoneApplicationSpec.h
Normal file
@@ -0,0 +1,5 @@
|
||||
#import "CAMApplicationSpec.h"
|
||||
|
||||
NS_CLASS_AVAILABLE_IOS(7_0)
|
||||
@interface CAMPhoneApplicationSpec : CAMApplicationSpec
|
||||
@end
|
||||
12
Tweaks/PSHeader/CameraApp/CAMPreviewView.h
Normal file
12
Tweaks/PSHeader/CameraApp/CAMPreviewView.h
Normal 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
|
||||
12
Tweaks/PSHeader/CameraApp/CAMPreviewViewController.h
Normal file
12
Tweaks/PSHeader/CameraApp/CAMPreviewViewController.h
Normal 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
|
||||
21
Tweaks/PSHeader/CameraApp/CAMShutterButton.h
Normal file
21
Tweaks/PSHeader/CameraApp/CAMShutterButton.h
Normal 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
|
||||
6
Tweaks/PSHeader/CameraApp/CAMShutterButtonSpec.h
Normal file
6
Tweaks/PSHeader/CameraApp/CAMShutterButtonSpec.h
Normal file
@@ -0,0 +1,6 @@
|
||||
typedef struct CAMShutterButtonSpec {
|
||||
CGFloat outerRingDiameter;
|
||||
CGFloat outerRingStrokeWidth;
|
||||
CGFloat stopSquareSideLength;
|
||||
CGFloat stopSquareCornerRadius;
|
||||
} CAMShutterButtonSpec;
|
||||
4
Tweaks/PSHeader/CameraApp/CAMSlalomIndicatorView.h
Normal file
4
Tweaks/PSHeader/CameraApp/CAMSlalomIndicatorView.h
Normal file
@@ -0,0 +1,4 @@
|
||||
NS_CLASS_AVAILABLE_IOS(7_0)
|
||||
@interface CAMSlalomIndicatorView : UIView
|
||||
- (void)setFramesPerSecond:(NSInteger)sec;
|
||||
@end
|
||||
4
Tweaks/PSHeader/CameraApp/CAMStillImageCaptureResponse.h
Normal file
4
Tweaks/PSHeader/CameraApp/CAMStillImageCaptureResponse.h
Normal file
@@ -0,0 +1,4 @@
|
||||
NS_CLASS_AVAILABLE_IOS(8_0)
|
||||
@interface CAMStillImageCaptureResponse : NSObject
|
||||
- (UIImage *)thumbnailImage;
|
||||
@end
|
||||
12
Tweaks/PSHeader/CameraApp/CAMTimerButton.h
Normal file
12
Tweaks/PSHeader/CameraApp/CAMTimerButton.h
Normal 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
|
||||
43
Tweaks/PSHeader/CameraApp/CAMTopBar.h
Normal file
43
Tweaks/PSHeader/CameraApp/CAMTopBar.h
Normal 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
|
||||
4
Tweaks/PSHeader/CameraApp/CAMTorchPattern.h
Normal file
4
Tweaks/PSHeader/CameraApp/CAMTorchPattern.h
Normal file
@@ -0,0 +1,4 @@
|
||||
NS_CLASS_AVAILABLE_IOS(8_0)
|
||||
@interface CAMTorchPattern : NSObject
|
||||
- (id)initWithType:(NSInteger)type;
|
||||
@end
|
||||
5
Tweaks/PSHeader/CameraApp/CAMTorchPatternController.h
Normal file
5
Tweaks/PSHeader/CameraApp/CAMTorchPatternController.h
Normal file
@@ -0,0 +1,5 @@
|
||||
NS_CLASS_AVAILABLE_IOS(8_0)
|
||||
@interface CAMTorchPatternController : NSObject
|
||||
- (void)blink;
|
||||
- (void)doubleBlink;
|
||||
@end
|
||||
4
Tweaks/PSHeader/CameraApp/CAMTriStateButton.h
Normal file
4
Tweaks/PSHeader/CameraApp/CAMTriStateButton.h
Normal file
@@ -0,0 +1,4 @@
|
||||
NS_CLASS_AVAILABLE_IOS(7_1)
|
||||
@interface CAMTriStateButton : UIControl
|
||||
@property (assign, nonatomic) NSInteger flashMode;
|
||||
@end
|
||||
4
Tweaks/PSHeader/CameraApp/CAMUserPreferences.h
Normal file
4
Tweaks/PSHeader/CameraApp/CAMUserPreferences.h
Normal file
@@ -0,0 +1,4 @@
|
||||
@interface CAMUserPreferences : NSObject
|
||||
+ (instancetype)preferences;
|
||||
- (NSInteger)videoConfiguration;
|
||||
@end
|
||||
@@ -0,0 +1,4 @@
|
||||
#import "CAMControlStatusIndicator.h"
|
||||
|
||||
@interface CAMVideoConfigurationStatusIndicator : CAMControlStatusIndicator
|
||||
@end
|
||||
3
Tweaks/PSHeader/CameraApp/CAMVideoPreviewView.h
Normal file
3
Tweaks/PSHeader/CameraApp/CAMVideoPreviewView.h
Normal file
@@ -0,0 +1,3 @@
|
||||
NS_CLASS_AVAILABLE_IOS(8_0)
|
||||
@interface CAMVideoPreviewView : UIView
|
||||
@end
|
||||
15
Tweaks/PSHeader/CameraApp/CAMViewfinderView.h
Normal file
15
Tweaks/PSHeader/CameraApp/CAMViewfinderView.h
Normal 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
|
||||
82
Tweaks/PSHeader/CameraApp/CAMViewfinderViewController.h
Normal file
82
Tweaks/PSHeader/CameraApp/CAMViewfinderViewController.h
Normal 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
|
||||
28
Tweaks/PSHeader/CameraApp/CAMZoomSlider.h
Normal file
28
Tweaks/PSHeader/CameraApp/CAMZoomSlider.h
Normal 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
|
||||
12
Tweaks/PSHeader/CameraApp/CUCaptureController.h
Normal file
12
Tweaks/PSHeader/CameraApp/CUCaptureController.h
Normal 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
|
||||
24
Tweaks/PSHeader/CameraApp/CUShutterButton.h
Normal file
24
Tweaks/PSHeader/CameraApp/CUShutterButton.h
Normal 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
|
||||
94
Tweaks/PSHeader/CameraApp/CameraApp.h
Normal file
94
Tweaks/PSHeader/CameraApp/CameraApp.h
Normal 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"
|
||||
6
Tweaks/PSHeader/CameraApp/DCIMImageWellUtilities.h
Normal file
6
Tweaks/PSHeader/CameraApp/DCIMImageWellUtilities.h
Normal file
@@ -0,0 +1,6 @@
|
||||
NS_CLASS_AVAILABLE_IOS(8_0)
|
||||
@interface DCIMImageWellUtilities : NSObject
|
||||
|
||||
+ (UIImage *)cameraPreviewWellImage;
|
||||
|
||||
@end
|
||||
8
Tweaks/PSHeader/CameraApp/NSValue+CameraUI.h
Normal file
8
Tweaks/PSHeader/CameraApp/NSValue+CameraUI.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#import "CAMCaptureModeWithOptions.h"
|
||||
|
||||
NS_CLASS_AVAILABLE_IOS(9_0)
|
||||
@interface NSValue (CameraUI)
|
||||
|
||||
+ (NSValue *)valueWithModeWithOptions:(CAMCaptureModeWithOptions)options;
|
||||
|
||||
@end
|
||||
3
Tweaks/PSHeader/CameraApp/PLCameraButton.h
Normal file
3
Tweaks/PSHeader/CameraApp/PLCameraButton.h
Normal file
@@ -0,0 +1,3 @@
|
||||
NS_CLASS_DEPRECATED_IOS(5_0, 6_1)
|
||||
@interface PLCameraButton : UIButton
|
||||
@end
|
||||
8
Tweaks/PSHeader/CameraApp/PLCameraButtonBar.h
Normal file
8
Tweaks/PSHeader/CameraApp/PLCameraButtonBar.h
Normal 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
|
||||
56
Tweaks/PSHeader/CameraApp/PLCameraController.h
Normal file
56
Tweaks/PSHeader/CameraApp/PLCameraController.h
Normal 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
|
||||
5
Tweaks/PSHeader/CameraApp/PLCameraEffectsRenderer.h
Normal file
5
Tweaks/PSHeader/CameraApp/PLCameraEffectsRenderer.h
Normal 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
|
||||
14
Tweaks/PSHeader/CameraApp/PLCameraFlashButton.h
Normal file
14
Tweaks/PSHeader/CameraApp/PLCameraFlashButton.h
Normal 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
|
||||
3
Tweaks/PSHeader/CameraApp/PLCameraLevelView.h
Normal file
3
Tweaks/PSHeader/CameraApp/PLCameraLevelView.h
Normal file
@@ -0,0 +1,3 @@
|
||||
NS_CLASS_DEPRECATED_IOS(5_0, 7_1)
|
||||
@interface PLCameraLevelView : UIView
|
||||
@end
|
||||
5
Tweaks/PSHeader/CameraApp/PLCameraOptionsButton.h
Normal file
5
Tweaks/PSHeader/CameraApp/PLCameraOptionsButton.h
Normal file
@@ -0,0 +1,5 @@
|
||||
#import "PLReorientingButton.h"
|
||||
|
||||
NS_CLASS_DEPRECATED_IOS(5_0, 6_1)
|
||||
@interface PLCameraOptionsButton : PLReorientingButton
|
||||
@end
|
||||
@@ -0,0 +1,3 @@
|
||||
NS_CLASS_DEPRECATED_IOS(5_0, 7_1)
|
||||
@interface PLCameraPanoramaBrokenArrowView : UIView
|
||||
@end
|
||||
3
Tweaks/PSHeader/CameraApp/PLCameraPanoramaTextLabel.h
Normal file
3
Tweaks/PSHeader/CameraApp/PLCameraPanoramaTextLabel.h
Normal file
@@ -0,0 +1,3 @@
|
||||
NS_CLASS_DEPRECATED_IOS(5_0, 7_1)
|
||||
@interface PLCameraPanoramaTextLabel : UILabel
|
||||
@end
|
||||
5
Tweaks/PSHeader/CameraApp/PLCameraPanoramaView.h
Normal file
5
Tweaks/PSHeader/CameraApp/PLCameraPanoramaView.h
Normal file
@@ -0,0 +1,5 @@
|
||||
#import "PanoramaViewDelegate.h"
|
||||
|
||||
NS_CLASS_DEPRECATED_IOS(5_0, 7_1)
|
||||
@interface PLCameraPanoramaView : UIView <panoramaViewDelegate>
|
||||
@end
|
||||
6
Tweaks/PSHeader/CameraApp/PLCameraSettingsGroupView.h
Normal file
6
Tweaks/PSHeader/CameraApp/PLCameraSettingsGroupView.h
Normal 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
|
||||
3
Tweaks/PSHeader/CameraApp/PLCameraSettingsView.h
Normal file
3
Tweaks/PSHeader/CameraApp/PLCameraSettingsView.h
Normal file
@@ -0,0 +1,3 @@
|
||||
NS_CLASS_DEPRECATED_IOS(5_0, 6_1)
|
||||
@interface PLCameraSettingsView : UIView
|
||||
@end
|
||||
@@ -0,0 +1,5 @@
|
||||
#import "PLReorientingButton.h"
|
||||
|
||||
NS_CLASS_DEPRECATED_IOS(6_0, 6_1)
|
||||
@interface PLCameraVideoStillCaptureButton : PLReorientingButton
|
||||
@end
|
||||
116
Tweaks/PSHeader/CameraApp/PLCameraView.h
Normal file
116
Tweaks/PSHeader/CameraApp/PLCameraView.h
Normal 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
|
||||
6
Tweaks/PSHeader/CameraApp/PLCameraZoomSlider.h
Normal file
6
Tweaks/PSHeader/CameraApp/PLCameraZoomSlider.h
Normal 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
|
||||
4
Tweaks/PSHeader/CameraApp/PLCropOverlayBottomBar.h
Normal file
4
Tweaks/PSHeader/CameraApp/PLCropOverlayBottomBar.h
Normal file
@@ -0,0 +1,4 @@
|
||||
NS_CLASS_DEPRECATED_IOS(5_0, 7_1)
|
||||
@interface PLCropOverlayBottomBar : UIToolbar
|
||||
- (void)_setVisibility:(BOOL)visible;
|
||||
@end
|
||||
15
Tweaks/PSHeader/CameraApp/PLEffectFilterManager.h
Normal file
15
Tweaks/PSHeader/CameraApp/PLEffectFilterManager.h
Normal 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
|
||||
@@ -0,0 +1,4 @@
|
||||
NS_CLASS_DEPRECATED_IOS(7_0, 7_1)
|
||||
@interface PLEffectSelectionViewController : UIViewController
|
||||
- (void)_setSelectedIndexPath:(NSIndexPath *)indexPath;
|
||||
@end
|
||||
5
Tweaks/PSHeader/CameraApp/PLEffectsFullsizeView.h
Normal file
5
Tweaks/PSHeader/CameraApp/PLEffectsFullsizeView.h
Normal file
@@ -0,0 +1,5 @@
|
||||
#import "PLGLView.h"
|
||||
|
||||
NS_CLASS_DEPRECATED_IOS(7_0, 7_1)
|
||||
@interface PLEffectsFullsizeView : PLGLView
|
||||
@end
|
||||
11
Tweaks/PSHeader/CameraApp/PLEffectsGridView.h
Normal file
11
Tweaks/PSHeader/CameraApp/PLEffectsGridView.h
Normal 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
|
||||
6
Tweaks/PSHeader/CameraApp/PLGLView.h
Normal file
6
Tweaks/PSHeader/CameraApp/PLGLView.h
Normal file
@@ -0,0 +1,6 @@
|
||||
NS_CLASS_DEPRECATED_IOS(7_0, 7_1)
|
||||
@interface PLGLView : UIView
|
||||
@property CGSize fixedSize;
|
||||
- (CGFloat)drawableHeight;
|
||||
- (CGFloat)drawableWidth;
|
||||
@end
|
||||
3
Tweaks/PSHeader/CameraApp/PLIOSurfaceData.h
Normal file
3
Tweaks/PSHeader/CameraApp/PLIOSurfaceData.h
Normal file
@@ -0,0 +1,3 @@
|
||||
NS_CLASS_DEPRECATED_IOS(6_0, 7_1)
|
||||
@interface PLIOSurfaceData : NSData
|
||||
@end
|
||||
4
Tweaks/PSHeader/CameraApp/PLImageAdjustmentView.h
Normal file
4
Tweaks/PSHeader/CameraApp/PLImageAdjustmentView.h
Normal file
@@ -0,0 +1,4 @@
|
||||
NS_CLASS_DEPRECATED_IOS(6_0, 7_1)
|
||||
@interface PLImageAdjustmentView : UIView
|
||||
@property (retain) UIImage *editedImage;
|
||||
@end
|
||||
2
Tweaks/PSHeader/CameraApp/PLPreviewOverlayView.h
Normal file
2
Tweaks/PSHeader/CameraApp/PLPreviewOverlayView.h
Normal file
@@ -0,0 +1,2 @@
|
||||
@interface PLPreviewOverlayView : UIView
|
||||
@end
|
||||
5
Tweaks/PSHeader/CameraApp/PLReorientingButton.h
Normal file
5
Tweaks/PSHeader/CameraApp/PLReorientingButton.h
Normal 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
|
||||
6
Tweaks/PSHeader/CameraApp/PLUICameraViewController.h
Normal file
6
Tweaks/PSHeader/CameraApp/PLUICameraViewController.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#import "PLCameraView.h"
|
||||
|
||||
NS_CLASS_DEPRECATED_IOS(5_0, 7_1)
|
||||
@interface PLUICameraViewController : UIViewController
|
||||
- (PLCameraView *)_cameraView;
|
||||
@end
|
||||
3
Tweaks/PSHeader/CameraApp/PLVideoPreviewView.h
Normal file
3
Tweaks/PSHeader/CameraApp/PLVideoPreviewView.h
Normal file
@@ -0,0 +1,3 @@
|
||||
NS_CLASS_DEPRECATED_IOS(5_0, 7_1)
|
||||
@interface PLVideoPreviewView : UIView
|
||||
@end
|
||||
4
Tweaks/PSHeader/CameraApp/PanoramaViewDelegate.h
Normal file
4
Tweaks/PSHeader/CameraApp/PanoramaViewDelegate.h
Normal file
@@ -0,0 +1,4 @@
|
||||
@protocol panoramaViewDelegate
|
||||
- (void)setCaptureDirection:(NSInteger)direction;
|
||||
- (void)_arrowWasTapped:(id)arg1;
|
||||
@end
|
||||
10
Tweaks/PSHeader/CameraApp/UIView+CameraApp.h
Normal file
10
Tweaks/PSHeader/CameraApp/UIView+CameraApp.h
Normal 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
|
||||
148
Tweaks/PSHeader/CameraGestaltKeys.h
Normal file
148
Tweaks/PSHeader/CameraGestaltKeys.h
Normal 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
|
||||
17
Tweaks/PSHeader/CameraMacros.h
Normal file
17
Tweaks/PSHeader/CameraMacros.h
Normal 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
|
||||
1
Tweaks/PSHeader/CoreImage/CoreImage.h
Normal file
1
Tweaks/PSHeader/CoreImage/CoreImage.h
Normal file
@@ -0,0 +1 @@
|
||||
#import "PrivateFilters.h"
|
||||
112
Tweaks/PSHeader/CoreImage/PrivateFilters.h
Normal file
112
Tweaks/PSHeader/CoreImage/PrivateFilters.h
Normal file
@@ -0,0 +1,112 @@
|
||||
#import <CoreImage/CoreImage.h>
|
||||
|
||||
@interface CIColorPosterize : CIFilter
|
||||
@property (retain, nonatomic) NSNumber *inputLevels;
|
||||
@end
|
||||
|
||||
@interface CIColorMonochrome : CIFilter
|
||||
@property (retain, nonatomic) NSNumber *inputIntensity;
|
||||
@property (retain, nonatomic) CIColor *inputColor;
|
||||
@end
|
||||
|
||||
@interface CIFalseColor : CIFilter
|
||||
@property (retain, nonatomic) CIColor *inputColor0;
|
||||
@property (retain, nonatomic) CIColor *inputColor1;
|
||||
@end
|
||||
|
||||
@interface CISepiaTone : CIFilter
|
||||
@property (retain, nonatomic) NSNumber *inputIntensity;
|
||||
@end
|
||||
|
||||
@interface CIVibrance : CIFilter
|
||||
@property (retain, nonatomic) NSNumber *inputAmount;
|
||||
@end
|
||||
|
||||
@interface CIBloom : CIFilter
|
||||
@property (retain, nonatomic) NSNumber *inputIntensity;
|
||||
@property (retain, nonatomic) NSNumber *inputRadius;
|
||||
@end
|
||||
|
||||
@interface CIGloom : CIFilter
|
||||
@property (retain, nonatomic) NSNumber *inputIntensity;
|
||||
@property (retain, nonatomic) NSNumber *inputRadius;
|
||||
@end
|
||||
|
||||
@interface CIGaussianBlur : CIFilter
|
||||
@property (retain, nonatomic) NSNumber *inputRadius;
|
||||
@end
|
||||
|
||||
@interface CIThermal : CIFilter
|
||||
@end
|
||||
|
||||
@interface CIXRay : CIFilter
|
||||
@end
|
||||
|
||||
@interface CIPixellate : CIFilter
|
||||
@property (retain, nonatomic) CIVector *inputCenter;
|
||||
@property (retain, nonatomic) NSNumber *inputScale;
|
||||
@end
|
||||
|
||||
@interface CIStretch : CIFilter
|
||||
@property (retain, nonatomic) CIVector *inputPoint;
|
||||
@property (retain, nonatomic) CIVector *inputSize;
|
||||
@end
|
||||
|
||||
@interface CITwirlDistortion : CIFilter
|
||||
@property (retain, nonatomic) CIVector *inputCenter;
|
||||
@property (retain, nonatomic) NSNumber *inputRadius;
|
||||
@property (retain, nonatomic) NSNumber *inputAngle;
|
||||
@end
|
||||
|
||||
@interface CIHoleDistortion : CIFilter
|
||||
@property (retain, nonatomic) CIVector *inputCenter;
|
||||
@property (retain, nonatomic) NSNumber *inputRadius;
|
||||
@end
|
||||
|
||||
@interface CIPinchDistortion : CIFilter
|
||||
@property (retain, nonatomic) NSNumber *inputScale;
|
||||
@property (retain, nonatomic) CIVector *inputCenter;
|
||||
@property (retain, nonatomic) NSNumber *inputRadius;
|
||||
@end
|
||||
|
||||
@interface CIMirror : CIFilter
|
||||
@property (retain, nonatomic) NSNumber *inputAngle;
|
||||
@property (retain, nonatomic) CIVector *inputPoint;
|
||||
@end
|
||||
|
||||
@interface CIWrapMirror : CIFilter
|
||||
@end
|
||||
|
||||
@interface CISharpenLuminance : CIFilter
|
||||
@property (retain, nonatomic) NSNumber *inputSharpness;
|
||||
@end
|
||||
|
||||
@interface CITriangleKaleidoscope : CIFilter
|
||||
@property (retain, nonatomic) NSNumber *inputDecay;
|
||||
@property (retain, nonatomic) NSNumber *inputSize;
|
||||
@property (retain, nonatomic) NSNumber *inputAngle;
|
||||
@property (retain, nonatomic) CIVector *inputPoint;
|
||||
@end
|
||||
|
||||
@interface CILightTunnel : CIFilter
|
||||
@property (retain, nonatomic) CIVector *inputCenter;
|
||||
@property (retain, nonatomic) NSNumber *inputRotation;
|
||||
@property (retain, nonatomic) NSNumber *inputRadius;
|
||||
@end
|
||||
|
||||
@interface CICircleSplashDistortion : CIFilter
|
||||
@property (retain, nonatomic) CIVector *inputCenter;
|
||||
@property (retain, nonatomic) NSNumber *inputRadius;
|
||||
@end
|
||||
|
||||
@interface CICircularScreen : CIFilter
|
||||
@property (retain, nonatomic) CIVector *inputCenter;
|
||||
@property (retain, nonatomic) NSNumber *inputWidth;
|
||||
@property (retain, nonatomic) NSNumber *inputSharpness;
|
||||
@end
|
||||
|
||||
@interface CILineScreen : CIFilter
|
||||
@property (retain, nonatomic) NSNumber *inputAngle;
|
||||
@property (retain, nonatomic) NSNumber *inputWidth;
|
||||
@property (retain, nonatomic) NSNumber *inputSharpness;
|
||||
@end
|
||||
28
Tweaks/PSHeader/Misc.h
Normal file
28
Tweaks/PSHeader/Misc.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#ifndef _PS_MISC
|
||||
#define _PS_MISC
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <rootless.h>
|
||||
#import "PAC.h"
|
||||
|
||||
#if TARGET_OS_SIMULATOR
|
||||
|
||||
#import <UIKit/UIFunctions.h>
|
||||
|
||||
#define realPath(path) [UISystemRootDirectory() stringByAppendingPathComponent:path]
|
||||
#define realPath2(path) [realPath(path) UTF8String]
|
||||
#define realPrefPath(domain) [NSString stringWithFormat:@"%@/Library/Preferences/%@.plist", @(getenv("SIMULATOR_SHARED_RESOURCES_DIRECTORY")), domain]
|
||||
#else
|
||||
#define realPath(path) (path)
|
||||
#define realPath2(path) ([path UTF8String])
|
||||
#define realPrefPath(domain) [NSString stringWithFormat:@"/var/mobile/Library/Preferences/%@.plist", domain]
|
||||
#endif
|
||||
|
||||
#define fileExist(path) [[NSFileManager defaultManager] fileExistsAtPath:path]
|
||||
#define CFStringEqual(s1, s2) (CFStringCompare(s1, s2, kCFCompareCaseInsensitive) == kCFCompareEqualTo)
|
||||
#define NSStringEqual(str1, str2) ([str1 isEqualToString:str2])
|
||||
|
||||
#define _PSFindSymbolCallable(image, name) make_sym_callable(MSFindSymbol(image, name))
|
||||
#define _PSFindSymbolReadable(image, name) make_sym_readable(MSFindSymbol(image, name))
|
||||
|
||||
#endif
|
||||
59
Tweaks/PSHeader/MockMac.h
Normal file
59
Tweaks/PSHeader/MockMac.h
Normal file
@@ -0,0 +1,59 @@
|
||||
#if TARGET_OS_OSX
|
||||
|
||||
typedef NSInteger UIImageOrientation;
|
||||
|
||||
@protocol UITextInputTraits
|
||||
@end
|
||||
|
||||
@protocol UITableViewDataSource
|
||||
@end
|
||||
|
||||
@protocol UITableViewDelegate
|
||||
@end
|
||||
|
||||
@protocol UIScrollViewDelegate
|
||||
@end
|
||||
|
||||
@interface UIViewController : NSObject
|
||||
@end
|
||||
|
||||
@interface UIResponder : NSObject
|
||||
@end
|
||||
|
||||
@interface UIColor : NSObject
|
||||
@end
|
||||
|
||||
@interface UIView : UIResponder
|
||||
@end
|
||||
|
||||
@interface UITableView : UIView
|
||||
@end
|
||||
|
||||
@interface UISlider : UIView
|
||||
@end
|
||||
|
||||
@interface UILabel : UIView
|
||||
@end
|
||||
|
||||
@interface UIButton : UIView
|
||||
@end
|
||||
|
||||
@interface UIToolbar : NSObject
|
||||
@end
|
||||
|
||||
@interface UIImage : UIView
|
||||
@end
|
||||
|
||||
@interface UIImageView : UIView
|
||||
@end
|
||||
|
||||
@interface UICollectionView : UIView
|
||||
@end
|
||||
|
||||
@interface UICollectionViewCell : UIView
|
||||
@end
|
||||
|
||||
@interface UIPageControl : NSObject
|
||||
@end
|
||||
|
||||
#endif
|
||||
36
Tweaks/PSHeader/PAC.h
Normal file
36
Tweaks/PSHeader/PAC.h
Normal file
@@ -0,0 +1,36 @@
|
||||
#ifndef PTRAUTH_HELPERS_H
|
||||
#define PTRAUTH_HELPERS_H
|
||||
// Helpers for PAC archs.
|
||||
// https://gist.github.com/summertriangle-dev/6b0449ce561f756ac82a4bc3de7af30a
|
||||
|
||||
// If the compiler understands __arm64e__, assume it's paired with an SDK that has
|
||||
// ptrauth.h. Otherwise, it'll probably error if we try to include it so don't.
|
||||
#if __arm64e__
|
||||
#include <ptrauth.h>
|
||||
#endif
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunused-function"
|
||||
|
||||
// Given a pointer to instructions, sign it so you can call it like a normal fptr.
|
||||
static void *make_sym_callable(void *ptr) {
|
||||
#if __arm64e__
|
||||
if (ptr == NULL)
|
||||
return NULL;
|
||||
ptr = ptrauth_sign_unauthenticated(ptrauth_strip(ptr, ptrauth_key_function_pointer), ptrauth_key_function_pointer, 0);
|
||||
#endif
|
||||
return ptr;
|
||||
}
|
||||
|
||||
// Given a function pointer, strip the PAC so you can read the instructions.
|
||||
static void *make_sym_readable(void *ptr) {
|
||||
#if __arm64e__
|
||||
if (ptr == NULL)
|
||||
return NULL;
|
||||
ptr = ptrauth_strip(ptr, ptrauth_key_function_pointer);
|
||||
#endif
|
||||
return ptr;
|
||||
}
|
||||
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
110
Tweaks/PSHeader/PS.h
Normal file
110
Tweaks/PSHeader/PS.h
Normal file
@@ -0,0 +1,110 @@
|
||||
#ifndef _PS
|
||||
#define _PS
|
||||
|
||||
#import "iOSVersions.h"
|
||||
#import "Misc.h"
|
||||
|
||||
#define PS_DONATE_URL @"https://poomsmart.github.io/repo/"
|
||||
#define PS_TWITTER_URL @"https://twitter.com/PoomSmart"
|
||||
|
||||
#ifdef CHECK_TARGET
|
||||
|
||||
#import <HBLog.h>
|
||||
|
||||
typedef NS_ENUM(NSUInteger, TargetType) {
|
||||
TargetTypeApps = 1 << 0,
|
||||
TargetTypeGenericExtensions = 1 << 1,
|
||||
TargetTypeKeyboardExtensions = 1 << 2
|
||||
};
|
||||
|
||||
FOUNDATION_EXPORT char ***_NSGetArgv();
|
||||
|
||||
static BOOL _isTarget(NSUInteger type, NSArray <NSString *> *whitelist, NSArray <NSString *> *blacklist) {
|
||||
char *executablePathC = **_NSGetArgv();
|
||||
NSString *executablePath = [NSString stringWithUTF8String:executablePathC];
|
||||
if (executablePath) {
|
||||
#ifdef __DEBUG__
|
||||
HBLogDebug(@"Executable path: %@", executablePath);
|
||||
#endif
|
||||
BOOL isExtension = [executablePath rangeOfString:@"appex"].location != NSNotFound;
|
||||
if (type & TargetTypeGenericExtensions && isExtension) {
|
||||
HBLogDebug(@"Injected: extension");
|
||||
return YES;
|
||||
}
|
||||
NSString *processName = [executablePath lastPathComponent];
|
||||
#ifdef CHECK_BLACKLIST
|
||||
if (blacklist.count) {
|
||||
BOOL disallow = [blacklist containsObject:processName];
|
||||
NSString *bundleIdentifier = NSBundle.mainBundle.bundleIdentifier;
|
||||
if (!disallow && bundleIdentifier)
|
||||
disallow = [blacklist containsObject:bundleIdentifier];
|
||||
if (disallow)
|
||||
return NO;
|
||||
}
|
||||
#endif
|
||||
#ifdef CHECK_WHITELIST
|
||||
if (whitelist.count) {
|
||||
BOOL allow = [whitelist containsObject:processName];
|
||||
NSString *bundleIdentifier = NSBundle.mainBundle.bundleIdentifier;
|
||||
if (!allow && bundleIdentifier)
|
||||
allow = [whitelist containsObject:bundleIdentifier];
|
||||
if (allow) {
|
||||
HBLogDebug(@"Injected: whitelist");
|
||||
return YES;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
BOOL isSpringBoard = NSStringEqual(processName, @"SpringBoard");
|
||||
BOOL isExtensionOrApp = [executablePath rangeOfString:@"/Application"].location != NSNotFound;
|
||||
BOOL isUILike = isSpringBoard || isExtensionOrApp;
|
||||
if (type & TargetTypeApps && isUILike && !isExtension) {
|
||||
HBLogDebug(@"Injected: app");
|
||||
return YES;
|
||||
}
|
||||
if (type & TargetTypeKeyboardExtensions && isExtension) {
|
||||
id val = NSBundle.mainBundle.infoDictionary[@"NSExtension"][@"NSExtensionPointIdentifier"];
|
||||
BOOL isKeyboardExtension = val ? NSStringEqual(val, @"com.apple.keyboard-service") : NO;
|
||||
if (isKeyboardExtension)
|
||||
HBLogDebug(@"Injected: keyboard extension");
|
||||
return isKeyboardExtension;
|
||||
}
|
||||
}
|
||||
return NO;
|
||||
}
|
||||
|
||||
#define isTarget(type) _isTarget(type, nil, nil)
|
||||
|
||||
#ifdef CHECK_TARGET_GUI
|
||||
|
||||
static void *observer = NULL;
|
||||
static void lateLoad(void);
|
||||
|
||||
static void appLoaded(CFNotificationCenterRef center, void *observer, CFStringRef name, const void *object, CFDictionaryRef userInfo) {
|
||||
lateLoad();
|
||||
}
|
||||
|
||||
static void appLoadedCallback() {
|
||||
CFNotificationCenterAddObserver(CFNotificationCenterGetLocalCenter(), &observer, appLoaded, (CFStringRef)UIApplicationDidFinishLaunchingNotification, NULL, CFNotificationSuspensionBehaviorCoalesce);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef KILL_PROCESS
|
||||
|
||||
#include <spawn.h>
|
||||
|
||||
void killProcess(const char *name) {
|
||||
pid_t pid;
|
||||
int status;
|
||||
const char *args[] = {
|
||||
"killall", "-9", name, NULL
|
||||
};
|
||||
posix_spawn(&pid, "/usr/bin/killall", NULL, NULL, (char *const *)args, NULL);
|
||||
waitpid(pid, &status, WEXITED);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
16
Tweaks/PSHeader/PhotoLibrary/PFVideoAdjustments.h
Normal file
16
Tweaks/PSHeader/PhotoLibrary/PFVideoAdjustments.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#import <CoreMedia/CoreMedia.h>
|
||||
|
||||
NS_CLASS_AVAILABLE_IOS(7_0)
|
||||
@interface PFVideoAdjustments : NSObject
|
||||
|
||||
+ (CMTimeRange)defaultSlowMotionTimeRangeForDuration:(CMTime)duration;
|
||||
+ (float)defaultSlowMotionRateForNominalFrameRate:(float)framerate;
|
||||
|
||||
@property CMTimeRange slowMotionTimeRange;
|
||||
|
||||
- (id)initWithURL:(NSURL *)url;
|
||||
- (id)initWithSlowMotionTimeRange:(CMTimeRange)range rate:(float)rate;
|
||||
|
||||
- (BOOL)isRecognizedFormat;
|
||||
|
||||
@end
|
||||
5
Tweaks/PSHeader/PhotoLibrary/PHAsset.h
Normal file
5
Tweaks/PSHeader/PhotoLibrary/PHAsset.h
Normal file
@@ -0,0 +1,5 @@
|
||||
#import "PLManagedAsset.h"
|
||||
|
||||
@interface PHAsset : NSObject
|
||||
- (PLManagedAsset *)pl_managedAsset;
|
||||
@end
|
||||
6
Tweaks/PSHeader/PhotoLibrary/PLCIFilterUtilties.h
Normal file
6
Tweaks/PSHeader/PhotoLibrary/PLCIFilterUtilties.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#import <CoreImage/CoreImage.h>
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@interface PLCIFilterUtilties : NSObject
|
||||
+ (CIImage *)outputImageFromFilters:(NSArray *)filters inputImage:(CIImage *)inputImage orientation:(UIImageOrientation)orientation copyFiltersFirst:(BOOL)copyFirst;
|
||||
@end
|
||||
19
Tweaks/PSHeader/PhotoLibrary/PLEditPhotoController.h
Normal file
19
Tweaks/PSHeader/PhotoLibrary/PLEditPhotoController.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#import <CoreImage/CoreImage.h>
|
||||
|
||||
NS_CLASS_AVAILABLE_IOS(5_0)
|
||||
@interface PLEditPhotoController : UIViewController <UIActionSheetDelegate>
|
||||
|
||||
@property (readonly) CGRect normalizedCropRect;
|
||||
|
||||
- (UINavigationItem *)navigationItem;
|
||||
- (CIImage *)_newCIImageFromUIImage:(UIImage *)image;
|
||||
- (NSArray *)_currentNonGeometryFiltersWithEffectFilters:(NSArray *)filters;
|
||||
- (NSArray *)_cropAndStraightenFiltersForImageSize:(CGSize)size forceSquareCrop:(BOOL)crop forceUseGeometry:(BOOL)geometry;
|
||||
|
||||
- (void)_setControlsEnabled:(BOOL)enabled animated:(BOOL)animated;
|
||||
- (void)_presentSavingHUD;
|
||||
- (void)_dismissSavingHUD;
|
||||
- (void)save:(UIBarButtonItem *)item;
|
||||
- (void)cancel:(UIBarButtonItem *)item;
|
||||
- (void)saveAdjustments;
|
||||
@end
|
||||
12
Tweaks/PSHeader/PhotoLibrary/PLManagedAsset.h
Normal file
12
Tweaks/PSHeader/PhotoLibrary/PLManagedAsset.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#import "_PLManagedAsset.h"
|
||||
|
||||
@interface PLManagedAsset : _PLManagedAsset
|
||||
@property (readonly, nonatomic) NSString *pathForImageFile;
|
||||
@property (readonly, nonatomic) NSString *pathForOriginalFile;
|
||||
@property (readonly, nonatomic) NSString *pathForAdjustmentFile;
|
||||
@property short kindSubtype;
|
||||
@property short savedAssetType;
|
||||
@property BOOL hasAdjustments;
|
||||
- (BOOL)isMogul NS_AVAILABLE_IOS(7_0);
|
||||
- (BOOL)isVideo;
|
||||
@end
|
||||
12
Tweaks/PSHeader/PhotoLibrary/PLPhotoBrowserController.h
Normal file
12
Tweaks/PSHeader/PhotoLibrary/PLPhotoBrowserController.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#import "PLVideoView.h"
|
||||
#import "PLManagedAsset.h"
|
||||
|
||||
NS_CLASS_AVAILABLE_IOS(5_0)
|
||||
@interface PLPhotoBrowserController : UIViewController <UIActionSheetDelegate>
|
||||
@property (assign, nonatomic) BOOL isCameraApp;
|
||||
@property (readonly, assign, nonatomic) PLVideoView *currentVideoView;
|
||||
- (PLManagedAsset *)currentAsset;
|
||||
- (UINavigationBar *)navigationBar;
|
||||
- (BOOL)isEditingVideo;
|
||||
- (id)_toolbarButtonForIdentifier:(NSString *)identifier;
|
||||
@end
|
||||
11
Tweaks/PSHeader/PhotoLibrary/PLPhotoEffect.h
Normal file
11
Tweaks/PSHeader/PhotoLibrary/PLPhotoEffect.h
Normal file
@@ -0,0 +1,11 @@
|
||||
NS_CLASS_AVAILABLE_IOS(8_0)
|
||||
@interface PLPhotoEffect : NSObject
|
||||
+ (NSArray<PLPhotoEffect *> *)allEffects;
|
||||
+ (instancetype)_effectWithIdentifier:(NSString *)identifier CIFilterName:(NSString *)filterName displayName:(NSString *)displayName;
|
||||
+ (instancetype)_effectWithIdentifier:(NSString *)identifier;
|
||||
+ (instancetype)_effectWithCIFilterName:(NSString *)identifier;
|
||||
+ (NSUInteger)indexOfEffectWithIdentifier:(NSString *)identifier;
|
||||
- (NSString *)displayName;
|
||||
- (NSString *)filterIdentifier;
|
||||
- (NSString *)CIFilterName;
|
||||
@end
|
||||
6
Tweaks/PSHeader/PhotoLibrary/PLProgressHUD.h
Normal file
6
Tweaks/PSHeader/PhotoLibrary/PLProgressHUD.h
Normal file
@@ -0,0 +1,6 @@
|
||||
@interface PLProgressHUD : UIView
|
||||
- (void)done;
|
||||
- (void)showInView:(UIView *)view;
|
||||
- (void)hide;
|
||||
- (void)setText:(NSString *)text;
|
||||
@end
|
||||
11
Tweaks/PSHeader/PhotoLibrary/PLPublisingAgent.h
Normal file
11
Tweaks/PSHeader/PhotoLibrary/PLPublisingAgent.h
Normal file
@@ -0,0 +1,11 @@
|
||||
#import "PLManagedAsset.h"
|
||||
|
||||
@interface PLPublishingAgent : NSObject
|
||||
@property BOOL enableHDUpload;
|
||||
@property BOOL mediaIsHDVideo;
|
||||
@property NSInteger remakerMode;
|
||||
@property NSInteger selectedOption;
|
||||
+ (instancetype)publishingAgentForBundleNamed:(NSString *)name toPublishMedia:(PLManagedAsset *)media;
|
||||
- (NSInteger)_remakerModeForSelectedOption;
|
||||
- (void)_transcodeVideo:(PLManagedAsset *)asset;
|
||||
@end
|
||||
14
Tweaks/PSHeader/PhotoLibrary/PLVideoView.h
Normal file
14
Tweaks/PSHeader/PhotoLibrary/PLVideoView.h
Normal file
@@ -0,0 +1,14 @@
|
||||
#import "PLManagedAsset.h"
|
||||
|
||||
@interface PLVideoView : UIView
|
||||
|
||||
@property (readonly) PLManagedAsset *videoCameraImage;
|
||||
|
||||
- (BOOL)isPlaying;
|
||||
- (BOOL)canEdit;
|
||||
- (BOOL)_canAccessVideo;
|
||||
- (BOOL)_mediaIsPlayable;
|
||||
- (BOOL)_mediaIsVideo;
|
||||
- (BOOL)_shouldShowSlalomEditor NS_AVAILABLE_IOS(7_0);
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,4 @@
|
||||
NS_CLASS_AVAILABLE_IOS(8_0)
|
||||
@interface PUAbstractAlbumListViewController : UIViewController
|
||||
- (UIBarButtonItem *)_internalButtonItem;
|
||||
@end
|
||||
@@ -0,0 +1,3 @@
|
||||
NS_CLASS_AVAILABLE_IOS(8_0)
|
||||
@interface PUAvalancheReviewControllerPhoneSpec : NSObject
|
||||
@end
|
||||
20
Tweaks/PSHeader/PhotoLibrary/PUPhotoBrowserController.h
Normal file
20
Tweaks/PSHeader/PhotoLibrary/PUPhotoBrowserController.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#import "PUPhotoEditViewController.h"
|
||||
#import "PLVideoView.h"
|
||||
#import "PLManagedAsset.h"
|
||||
|
||||
NS_CLASS_AVAILABLE_IOS(8_0)
|
||||
@interface PUPhotoBrowserController : UIViewController <UIActionSheetDelegate>
|
||||
|
||||
@property (assign, nonatomic) BOOL isCameraApp;
|
||||
@property (readonly, assign, nonatomic) PLVideoView *currentVideoView;
|
||||
|
||||
- (PLManagedAsset *)currentAsset;
|
||||
- (UINavigationBar *)navigationBar;
|
||||
|
||||
- (BOOL)isEditingVideo;
|
||||
|
||||
- (id)_toolbarButtonForIdentifier:(NSString *)identifier;
|
||||
|
||||
- (void)photoEditController:(PUPhotoEditViewController *)controller didFinishWithSavedChanges:(BOOL)change;
|
||||
|
||||
@end
|
||||
4
Tweaks/PSHeader/PhotoLibrary/PUPhotoEditProtoSettings.h
Normal file
4
Tweaks/PSHeader/PhotoLibrary/PUPhotoEditProtoSettings.h
Normal file
@@ -0,0 +1,4 @@
|
||||
NS_CLASS_AVAILABLE_IOS(8_0)
|
||||
@interface PUPhotoEditProtoSettings : NSObject
|
||||
@property BOOL useOldPhotosEditor2;
|
||||
@end
|
||||
5
Tweaks/PSHeader/PhotoLibrary/PUPhotoEditViewController.h
Normal file
5
Tweaks/PSHeader/PhotoLibrary/PUPhotoEditViewController.h
Normal file
@@ -0,0 +1,5 @@
|
||||
NS_CLASS_AVAILABLE_IOS(8_0)
|
||||
@interface PUPhotoEditViewController : NSObject
|
||||
- (UIViewController *)delegate;
|
||||
- (void)_handleDoneButton:(id)arg1;
|
||||
@end
|
||||
6
Tweaks/PSHeader/PhotoLibrary/PURootSettings.h
Normal file
6
Tweaks/PSHeader/PhotoLibrary/PURootSettings.h
Normal file
@@ -0,0 +1,6 @@
|
||||
NS_CLASS_AVAILABLE_IOS(7_0)
|
||||
@interface PURootSettings : NSObject
|
||||
|
||||
+ (void)presentSettingsController;
|
||||
|
||||
@end
|
||||
8
Tweaks/PSHeader/PhotoLibrary/PUVideoEditViewController.h
Normal file
8
Tweaks/PSHeader/PhotoLibrary/PUVideoEditViewController.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#import "PHAsset.h"
|
||||
|
||||
NS_CLASS_AVAILABLE_IOS(8_0)
|
||||
@interface PUVideoEditViewController : UIViewController <UIActionSheetDelegate>
|
||||
- (PHAsset *)_videoAsset;
|
||||
- (void)_handleMainActionButton:(id)arg1;
|
||||
- (void)_handleSaveButton:(id)arg1;
|
||||
@end
|
||||
18
Tweaks/PSHeader/PhotoLibrary/PhotoLibrary.h
Normal file
18
Tweaks/PSHeader/PhotoLibrary/PhotoLibrary.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#import "_PLManagedAsset.h"
|
||||
#import "PFVideoAdjustments.h"
|
||||
#import "PHAsset.h"
|
||||
#import "PLCIFilterUtilties.h"
|
||||
#import "PLEditPhotoController.h"
|
||||
#import "PLManagedAsset.h"
|
||||
#import "PLPhotoBrowserController.h"
|
||||
#import "PLPhotoEffect.h"
|
||||
#import "PLProgressHUD.h"
|
||||
#import "PLPublisingAgent.h"
|
||||
#import "PLVideoView.h"
|
||||
#import "PUAbstractAlbumListViewController.h"
|
||||
#import "PUAvalancheReviewControllerPhoneSpec.h"
|
||||
#import "PUPhotoBrowserController.h"
|
||||
#import "PUPhotoEditProtoSettings.h"
|
||||
#import "PUPhotoEditViewController.h"
|
||||
#import "PURootSettings.h"
|
||||
#import "PUVideoEditViewController.h"
|
||||
3
Tweaks/PSHeader/PhotoLibrary/_PLManagedAsset.h
Normal file
3
Tweaks/PSHeader/PhotoLibrary/_PLManagedAsset.h
Normal file
@@ -0,0 +1,3 @@
|
||||
@interface _PLManagedAsset : NSObject
|
||||
- (NSInteger)orientationValue;
|
||||
@end
|
||||
14
Tweaks/PSHeader/README.md
Normal file
14
Tweaks/PSHeader/README.md
Normal file
@@ -0,0 +1,14 @@
|
||||
PoomSmart's headers
|
||||
===========
|
||||
|
||||
A collection of headers used by most of PoomSmart's tweaks.
|
||||
|
||||
Setup
|
||||
======
|
||||
|
||||
Make a folder named `PSHeader` containing all headers outside of your project folder. Also create `PS.h` header file that contains this line `#import "PSHeader/PS.h"`.
|
||||
|
||||
Usage
|
||||
======
|
||||
|
||||
In your tweak source code, `#import "../PS.h"`
|
||||
8
Tweaks/PSHeader/generateHeaders.sh
Executable file
8
Tweaks/PSHeader/generateHeaders.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
for d in $(find . -type d ! -name .git -depth 1); do
|
||||
D=${d/\.\//}
|
||||
cd ${D}
|
||||
find . -type f -name '*.h' ! -name ${D}.h | sed 's/\.\///g' | sed '/^ *$/d;s/.*/#import "&"/' > ${D}.h
|
||||
cd ..
|
||||
done
|
||||
9
Tweaks/PSHeader/iOSVersions.h
Normal file
9
Tweaks/PSHeader/iOSVersions.h
Normal file
@@ -0,0 +1,9 @@
|
||||
#ifndef _PS_IOSVER
|
||||
#define _PS_IOSVER
|
||||
|
||||
#import <CoreFoundation/CoreFoundation.h>
|
||||
#import <version.h>
|
||||
|
||||
#define IS_IOS_BETWEEN_EEX(start, end) (kCFCoreFoundationVersionNumber >= kCFCoreFoundationVersionNumber_ ## start && kCFCoreFoundationVersionNumber < kCFCoreFoundationVersionNumber_ ## end)
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user