swscale: move two macros that are only used once into caller.