Giter Club home page Giter Club logo

Comments (4)

adeelpervaiz avatar adeelpervaiz commented on July 22, 2024

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.

dmitric avatar dmitric commented on July 22, 2024

Thanks. The code works with the GPUImage I've included, but I imagine this fixed the updates to the latest version.

from dlcimagepickercontroller.

dmitric avatar dmitric commented on July 22, 2024

Just updated the code. Thanks for the catch.

from dlcimagepickercontroller.

ajitwl07 avatar ajitwl07 commented on July 22, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.