values: remove {min,max}[yuv] calc out of the main loop.