This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Mac | |
.DS_Store | |
# Xcode | |
build/* | |
*.pbxuser | |
!default.pbxuser | |
*.mode1v3 | |
!default.mode1v3 | |
*.mode2v3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
double photoSize = 640; | |
GPUImageCropFilter *cropFilter = [[GPUImageCropFilter alloc] initWithCropRegion:CGRectMake(0, 0.125f, 1.0f, 0.75f)]; | |
[firstFilter forceProcessingAtSize:CGSizeMake(photoSize, photoSize)]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)setEnableAllBtn:(BOOL)enable{ | |
for (UIButton *btn in [self.view subviews]) { | |
if ([btn isKindOfClass:[UIButton class]]) { | |
[btn setEnabled:enable]; | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (GPUImageFilterGroup *)createFilterGroup:(NSArray *)filters{ | |
GPUImageFilterGroup *filterGroup = [[GPUImageFilterGroup alloc] init]; | |
GPUImageFilter *beforeFilter = nil; | |
for (GPUImageFilter *filter in filters) { | |
[filterGroup addTarget:filter]; | |
if (!beforeFilter){ // beforeフィルターが設定されてない時は一番最初 | |
beforeFilter = filter; | |
continue; | |
} | |
[beforeFilter addTarget:filter]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Availability.h> | |
#ifndef __IPHONE_5_0 | |
#warning "This project uses features only available in iOS SDK 5.0 and later." | |
#endif | |
#ifdef __OBJC__ | |
#import <UIKit/UIKit.h> | |
#import <Foundation/Foundation.h> | |
#define LOG(A, ...) NSLog(@"LOG: %s:%d:%@", __PRETTY_FUNCTION__,__LINE__,[NSString stringWithFormat:A, ## __VA_ARGS__]); |
NewerOlder