rFlex / SCRecorder

iOS camera engine with Vine-like tap to record, animatable filters, slow motion, segments editing
Apache License 2.0
3.06k stars 583 forks source link

above iOS9 have filters like "CIZoomBlur" "CICMYKHalftone",but iOS8 didn't;resetDefault to some animated filters #371

Open akerdi opened 7 years ago

akerdi commented 7 years ago

I use SCSwipeableFilterView to handle layout a mutableComposition ,layout that just fine.But the filters added to it ,could be nil.

` [cmykHalftone addAnimationForParameterKey:@"inputSharpness" startValue:@0.64 endValue:@0.8 startTime:0 duration:4];

    [cmykHalftone addAnimationForParameterKey:@"inputUCR" startValue:@0.6 endValue:@0.85 startTime:0 duration:4];

    [cmykHalftone addAnimationForParameterKey:@"inputGCR" startValue:@0.3 endValue:@0.8 startTime:0 duration:4];

    [cmykHalftone addAnimationForParameterKey:@"inputWidth" startValue:@30 endValue:@80 startTime:0 duration:4];`

and I invalid it by doing below,but since didn't work.

` [cmykHalftone addAnimationForParameterKey:@"inputSharpness" startValue:@0 endValue:@0 startTime:4 duration:duradion-4];

[cmykHalftone addAnimationForParameterKey:@"inputUCG" startValue:@0 endValue:@0 startTime:4 duration:duradion-4];

[cmykHalftone addAnimationForParameterKey:@"inputGCR" startValue:@0 endValue:@0 startTime:4 duration:duradion-4];

[cmykHalftone addAnimationForParameterKey:@"inputWidth" startValue:@0 endValue:@0 startTime:4 duration:duradion-4];`

sincerely

akerdi commented 7 years ago

i keep cmykHalftone filter running in a "while < asset.duration"loop,and perfectly answer my third question.ga ga