Pads any side with a solid color, an averaged edge-color band, replicated edge pixels, or a blurred and dimmed pillarbox backdrop. The original region stays bit-identical in every mode and the second output masks exactly the new padding, ready for outpainting.