Hi all, we are trying to apply several filters on one photo (for example, the user can apply different filter on the photo several times one by one - something like on Instagram, user select filters from sliding bar and see the preview). In our implementation we use one pipeline and for each filter we use addRootRenderer(), and when next filter should be applied we call pipeline.removeRootRenderer() from the previous filter. The problem is that memory usage increases for about 200MB each time we apply filter and after several filters the application crashes. Can you give us a solution how to overcame this problem, what we are doing wrong?
Hi all, we are trying to apply several filters on one photo (for example, the user can apply different filter on the photo several times one by one - something like on Instagram, user select filters from sliding bar and see the preview). In our implementation we use one pipeline and for each filter we use addRootRenderer(), and when next filter should be applied we call pipeline.removeRootRenderer() from the previous filter. The problem is that memory usage increases for about 200MB each time we apply filter and after several filters the application crashes. Can you give us a solution how to overcame this problem, what we are doing wrong?