美文网首页
iOS gpuimage 使用GPUImageLookupFil

iOS gpuimage 使用GPUImageLookupFil

作者: 木_风 | 来源:发表于2017-04-22 18:18 被阅读158次

self.filterLookup= [[GPUImageLookupFilteralloc]init];

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

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

[self.lookupImageSourceuseNextFrameForImageCapture];

[self.lookupImageSourceprocessImage];


然后不要在viewwillappear上写。

相关文章

网友评论

      本文标题:iOS gpuimage 使用GPUImageLookupFil

      本文链接:https://www.haomeiwen.com/subject/ardtwttx.html