When writing image data which is stored in a cache memory and includes
data of a plurality of virtual sub-pixels for each of a plurality of
pixels, into a main memory, an image data processing method applies
predetermined compression processing to the image data. When reading out
the image data stored in the main memory from the main memory and writing
the read image data into the cache memory, the image data processing
method applies predetermined decompression processing to the read image
data.