Ios GPUImageNormalBlendFilter问题
我正在使用GPUImage Famewark,其中,当我将GPUImageNormalBlendFilter与静止摄影机一起使用时,图像在摄影机上不显示以录制视频,而当我使用其他混合(如叠加、添加等)时。。。图像显示完美的混合 我的代码如下:Ios GPUImageNormalBlendFilter问题,ios,gpuimage,gpuimagestillcamera,Ios,Gpuimage,Gpuimagestillcamera,我正在使用GPUImage Famewark,其中,当我将GPUImageNormalBlendFilter与静止摄影机一起使用时,图像在摄影机上不显示以录制视频,而当我使用其他混合(如叠加、添加等)时。。。图像显示完美的混合 我的代码如下: self.filter = [[GPUImageNormalBlendFilter alloc] init]; self.picture1 = [[GPUImagePicture alloc] initWithImage:[CommonFunct
self.filter = [[GPUImageNormalBlendFilter alloc] init];
self.picture1 = [[GPUImagePicture alloc] initWithImage:[CommonFunction GetImageFromApp:editImage] smoothlyScaleOutput:YES];
[picture1 addTarget:filter];
[picture1 processImage];
[stillCamera addTarget: filter];
[filter addTarget:self.filterView];
[stillCamera addTarget: filter];
[picture1 addTarget:filter];
[picture1 processImage];
[filter addTarget:self.filterView];
你能在这个问题上有继承权吗
谢谢我通过替换代码语句序列解决了这个问题,如下所示:
self.filter = [[GPUImageNormalBlendFilter alloc] init];
self.picture1 = [[GPUImagePicture alloc] initWithImage:[CommonFunction GetImageFromApp:editImage] smoothlyScaleOutput:YES];
[picture1 addTarget:filter];
[picture1 processImage];
[stillCamera addTarget: filter];
[filter addTarget:self.filterView];
[stillCamera addTarget: filter];
[picture1 addTarget:filter];
[picture1 processImage];
[filter addTarget:self.filterView];
谢谢