app: crop input to output rect in channel ops
In gimp_gegl_apply_{border,grow,shrink,flood}(), which are used by the corresponding channel functions, pass crop_input = TRUE to gimp_gegl_apply_operation(), to clip the input to the output rect. These operations process the entire input in one go, regardless of the requested output region; however, the channel functions calculate the output region according to the known channel bounds, hence clipping the input to these bounds doesn't affect discard any information, while avoiding unnecessary work. In particular, this makes the corresponding operations on small selections in big images much faster.
Showing
Please register or sign in to comment