1. A system on chip (SoC) comprising: a processor configured to, perform a self-learning using a position of at least one page miss and difference between addresses related to the at least one page miss in a frame, the at least one page miss indicating a mismatch between image data expected to be in an image buffer and image data actually in the image buffer, generate address generation rules using a result of the self-learning, and pre-fetch an original image from a memory device to the image buffer based on the address generation rules, and generate a rotated image using an image pre-fetched to the image buffer.