Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/backbone.js/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios GPUImageNormalBlendFilter问题_Ios_Gpuimage_Gpuimagestillcamera - Fatal编程技术网

Ios GPUImageNormalBlendFilter问题

Ios GPUImageNormalBlendFilter问题,ios,gpuimage,gpuimagestillcamera,Ios,Gpuimage,Gpuimagestillcamera,我正在使用GPUImage Famewark,其中,当我将GPUImageNormalBlendFilter与静止摄影机一起使用时,图像在摄影机上不显示以录制视频,而当我使用其他混合(如叠加、添加等)时。。。图像显示完美的混合 我的代码如下: self.filter = [[GPUImageNormalBlendFilter alloc] init]; self.picture1 = [[GPUImagePicture alloc] initWithImage:[CommonFunct

我正在使用GPUImage Famewark,其中,当我将GPUImageNormalBlendFilter与静止摄影机一起使用时,图像在摄影机上不显示以录制视频,而当我使用其他混合(如叠加、添加等)时。。。图像显示完美的混合

我的代码如下:

 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];
谢谢