A non-transitory computer-readable storage medium storing a program for causing a computer to execute a method, the method comprising:
- having an image for which a dividing pattern is expressed by a hierarchical structure for each predetermined area, input thereto, and generating, based on the input image, for the predetermined area, a hierarchy map in which a value indicative of a block size is associated with each of a plurality of blocks in the predetermined area;
- and
- determining a dividing pattern of the image based on the generated hierarchy map.