i Picked a video(250KB) from the Gallery
And apply filter with multiple Textures
case CS_LOMOFI_FILTER: {
filter = [[IFLomofiFilter alloc] init];
sourcePicture1 = [[GPUImagePicture alloc] initWithImage:[UIImageimageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"lomoMap" ofType:@"png"]]];
[sourcePicture1 processImage];
[sourcePicture1 addTarget:filter atTextureLocation:1];
sourcePicture2 = [[GPUImagePicture alloc] initWithImage:[UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"vignetteMap" ofType:@"png"]]];
[sourcePicture2 processImage];
[sourcePicture2 addTarget:filter atTextureLocation:2];
break;
}
After * if ([self.delegate respondsToSelector:@selector(didCompletePlayingMovie)]) {
[self.delegate didCompletePlayingMovie];
} in GPUImageMovie * App Crashed
Following Error
[GPUImageFramebuffer release]: message sent to deallocated instance 0x7aeaa460
But if apply single texture App works fine (No crash)
\ case CS_INKWELL_FILTER: {
filter = [[IFInkwellFilter alloc] init];
sourcePicture1 = [[GPUImagePicture alloc] initWithImage:[UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"inkwellMap" ofType:@"png"]]];
[sourcePicture1 processImage];
[sourcePicture1 addTarget:filter atTextureLocation:1];
break;
}”**
i Picked a video(250KB) from the Gallery And apply filter with multiple Textures case CS_LOMOFI_FILTER: { filter = [[IFLomofiFilter alloc] init]; sourcePicture1 = [[GPUImagePicture alloc] initWithImage:[UIImageimageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"lomoMap" ofType:@"png"]]]; [sourcePicture1 processImage]; [sourcePicture1 addTarget:filter atTextureLocation:1]; sourcePicture2 = [[GPUImagePicture alloc] initWithImage:[UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"vignetteMap" ofType:@"png"]]]; [sourcePicture2 processImage]; [sourcePicture2 addTarget:filter atTextureLocation:2]; break; }
After * if ([self.delegate respondsToSelector:@selector(didCompletePlayingMovie)]) { [self.delegate didCompletePlayingMovie]; } in GPUImageMovie * App Crashed
Following Error [GPUImageFramebuffer release]: message sent to deallocated instance 0x7aeaa460
But if apply single texture App works fine (No crash) \ case CS_INKWELL_FILTER: { filter = [[IFInkwellFilter alloc] init]; sourcePicture1 = [[GPUImagePicture alloc] initWithImage:[UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"inkwellMap" ofType:@"png"]]]; [sourcePicture1 processImage]; [sourcePicture1 addTarget:filter atTextureLocation:1]; break; }”**