iOS gpuimage 使用GPUImageLookupFil

2017-04-22  本文已影响158人  木_风

self.filterLookup= [[GPUImageLookupFilteralloc]init];

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

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

[self.lookupImageSourceuseNextFrameForImageCapture];

[self.lookupImageSourceprocessImage];


然后不要在viewwillappear上写。

上一篇 下一篇

猜你喜欢

热点阅读