Comments (4)
I think I found the problem, the method you called "initWithACV" should not pass the curve file name with extension.
so i repalced this code
-(void) setFilter:(int) index {
switch (index) {
case 1:{
filter = [[GPUImageContrastFilter alloc] init];
[(GPUImageContrastFilter *) filter setContrast:1.75];
} break;
case 2: {
filter = [[GPUImageToneCurveFilter alloc] initWithACV:@"crossprocess.acv"];
} break;
case 3: {
filter = [[GPUImageToneCurveFilter alloc] initWithACV:@"02.acv"];
} break;
case 4: {
filter = [[GrayscaleContrastFilter alloc] init];
} break;
case 5: {
filter = [[GPUImageToneCurveFilter alloc] initWithACV:@"17.acv"];
} break;
case 6: {
filter = [[GPUImageToneCurveFilter alloc] initWithACV:@"aqua.acv"];
} break;
case 7: {
filter = [[GPUImageToneCurveFilter alloc] initWithACV:@"yellow-red.acv"];
} break;
case 8: {
filter = [[GPUImageToneCurveFilter alloc] initWithACV:@"06.acv"];
} break;
case 9: {
filter = [[GPUImageToneCurveFilter alloc] initWithACV:@"purple-green.acv"];
} break;
default:
filter = [[GPUImageRGBFilter alloc] init];
break;
}
}
###############
REPLACED WITH THIS ONE.
-(void) setFilter:(int) index {
switch (index) {
case 1:{
filter = [[GPUImageContrastFilter alloc] init];
[(GPUImageContrastFilter *) filter setContrast:1.75];
} break;
case 2: {
filter = [[GPUImageToneCurveFilter alloc] initWithACV:@"crossprocess"];
} break;
case 3: {
filter = [[GPUImageToneCurveFilter alloc] initWithACV:@"02"];
} break;
case 4: {
filter = [[GrayscaleContrastFilter alloc] init];
} break;
case 5: {
filter = [[GPUImageToneCurveFilter alloc] initWithACV:@"17"];
} break;
case 6: {
filter = [[GPUImageToneCurveFilter alloc] initWithACV:@"aqua"];
} break;
case 7: {
filter = [[GPUImageToneCurveFilter alloc] initWithACV:@"yellow-red"];
} break;
case 8: {
filter = [[GPUImageToneCurveFilter alloc] initWithACV:@"06"];
} break;
case 9: {
filter = [[GPUImageToneCurveFilter alloc] initWithACV:@"purple-green"];
} break;
default:
filter = [[GPUImageRGBFilter alloc] init];
break;
}
}
Now its working fin.
from dlcimagepickercontroller.
Thanks. The code works with the GPUImage I've included, but I imagine this fixed the updates to the latest version.
from dlcimagepickercontroller.
Just updated the code. Thanks for the catch.
from dlcimagepickercontroller.
@dmitric: When i click the show picker button in the 1st view, the app crashes on iPhone simulator 4 & 5. Crashes on the real device(iPhone 4) as well.
from dlcimagepickercontroller.
Related Issues (20)
- gpuimage.h file not found HOT 1
- Having difficulties with using images
- wrong web link at CocoaPods HOT 2
- Video picker not implemented.
- ios7 crash HOT 2
- Pod DLCImagePickerController 0.0.1 contains old code (with deprecations) HOT 2
- "self.wantsFullScreenLayout" is deprecated in iOS7 HOT 1
- Base SDK 6.1 casues shifting on iPhone 5 + HOT 4
- GPUImage removes blurSize property HOT 1
- Making Instagram like tilt-shift effect blur view.
- blur effect error HOT 1
- ARC Semantic Issues + Install instructions? HOT 9
- I can compile DLCImagePicker project from my project, but can't compile the project itself HOT 14
- Usage example? HOT 1
- Filter Button Customisation HOT 2
- Adjust brightness using UISlider in Static Image.
- can not take a photo in iphone 4 with ios 7 HOT 4
- Memory Issue HOT 2
- croppedImage is gone
- No visible @interface for 'GPUImageOutput<GPUImageInput>' declares HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dlcimagepickercontroller.