Patent ID: 8482571

Claim:
An information processing apparatus, comprising: a first processing unit capable of processing an image; a second processing unit capable of processing the image in parallel for each unit dividing the image; a first memory used for processing of the image by the first processing unit; a second memory used for processing of the image by the second processing unit; and a controller section configured to control to select one of the first processing unit, the second processing unit, and both of them as a subject or subjects processing the image, to divide, in a case where both the first processing unit and the second processing unit are selected, the image into a first region and a second region, and to assign processing of an image of the first region and processing of an image of the second region, which are obtained, by the division, to the first processing unit and the second processing unit, respectively, to cause the first processing unit and the second processing unit to perform the processing, to determine an area of the first region and an area of the second region such that a first processing time that it takes for the first processing unit to process the first region is equal to or approximately equal to a second processing time that it takes for the second processing unit to process the second region, to calculate predicted usage of the second memory assuming a case where processing of the image of the first region and processing of the image of the second region are assigned to the first processing unit and the second processing unit, respectively, to cause the first processing unit and the second processing unit to perform the processing, and to modify, in a case where the calculated predicted usage of the second memory reaches a threshold, the determined area of the first region and the determined area of the second region such that the predicted usage falls in a capacity of the second memory that the second processing unit is allowed to use.