iOS gpuimage 使用GPUImageLookupFilter 给视频添加滤镜的坑

self.filterLookup= [[GPUImageLookupFilteralloc]init];

self.lookupImageSource= [[GPUImagePicturealloc]initWithImage:[UIImageimageNamed:fitlername]];

[self.lookupImageSourceaddTarget:self.filterLookupatTextureLocation:1];

[self.lookupImageSourceuseNextFrameForImageCapture];

[self.lookupImageSourceprocessImage];


然后不要在viewwillappear上写。

你可能感兴趣的:(iOS gpuimage 使用GPUImageLookupFilter 给视频添加滤镜的坑)