Refactoring of setup_integral_image for sharing
Refactoring of setup_integral_image for sharing

Refactor setup code and unify usage of setup_integral_image to allow
pulling the call out to a higher level.

xiph/rav1e,xiph/rav1e