A non-transitory computer-readable recording medium embodying a computer program, allowing a computer to implement a function of generating hierarchical moving data configured by hierarchizing in order of resolutions a plurality of series of images that are representations of image frames constituting one moving image in different resolutions in order to generate a display image while switching a layer to be used to another layer in accordance with a resolution required in an image processing device that displays an image, the computer program comprising:
- a module configured to read moving image data comprising a series of image frames depicted with one resolution from a storage device;
- a module configured to generate image data of respective layers for each image frame by reducing each image frame into a plurality of sizes;
- a module configured to include, in image data of at least one layer, data on a difference image representing a subtraction from an enlarged image of an image on a different layer, the image being a representation of a same image frame with a resolution lower than that of the one layer, so as to generate hierarchical moving image data;
- and
- a module configured to compress and encode the hierarchical moving image data and configured to store the compressed and encoded hierarchical moving image data in the storage device.