1. An information processing apparatus including a processor and at least one memory storing computer-executable instructions which, when executed by the processor, causes the apparatus to function as: an input unit that inputs image data and information associated with the image data, wherein the image data is image data for deriving distance information and the information associated with the image data is information specifying a procedure for deriving distance information, and wherein the input unit further inputs a parameter associated with the image data, the parameter being used when the derivation unit derives distance information; a selection unit that selects at least one from a plurality of procedures for deriving distance information on the basis of the information specifying a procedure; and a derivation unit that derives distance information from the image data using a procedure selected by the selection unit; a determination unit that determines whether a procedure corresponding to the information specifying a procedure is present or not; a distance output unit that outputs the derived distance information in association with the image data; and a processing unit that performs image processing on the image data based on the distance information derived by the derivation unit.