GPUImage3 icon indicating copy to clipboard operation
GPUImage3 copied to clipboard

"Warning: tried to add target beyond target\'s input capacity"

Open YuStephen opened this issue 5 years ago • 5 comments

Hey BradLarson, i use UICollectionView, and make config in 'didSelectItemAt' func like code blow

let color = colors[indexPath.item]  
filter.red = Float(color.red!)
filter.green = Float(color.green!)
filter.blue = Float(color.blue!)
picture --> filter --> renderView
picture.processImage()

then it'll show "Warning: tried to add target beyond target's input capacity" how to solve it?

YuStephen avatar Oct 26 '18 08:10 YuStephen

EDIT: For avoid freezing RenderView and this creepy message - please check all places where you set the filter to any ImageSource. In my case I tried to set filter twice.

Also, some filters like FalseColor does not work as required - and you can not remove all targets and sources and reuse it -> create new one FalseColor() every time

+1

I have the same issue when try to change filters on the app and before RenderView will freeze - I receive this warning

ps: "if you want to solve it then say to everybody you cannot and share it" (ç)

w-i-n-s avatar Nov 21 '18 20:11 w-i-n-s

@w-i-n-s you mean reset the filter? create a new filter again?

YuStephen avatar Nov 22 '18 05:11 YuStephen

@YuStephen

you mean reset the filter? create a new filter again? I meant the creation of the new one

w-i-n-s avatar Nov 22 '18 07:11 w-i-n-s

Is there any update in this?

bkunarola avatar Jul 29 '19 11:07 bkunarola

You need to clear SourceContainer in destination ImageConsumer (e.g. in renderView or filter), before attach some input a second time

camera --> filter --> renderView
renderView.sources.removeAtIndex(0)
camera --> renderView

artsector avatar Dec 22 '19 11:12 artsector