主权项 |
1. A device for rotating images, the device comprising:
an image memory configured to store an image, wherein the image is sequenced into a plurality of tiles, and each of the plurality of tiles is sequenced into a plurality of lines; a first line segment buffer configured to read, from the image memory, a first line of a first the of the plurality of tiles, wherein a size of the first tile comprises a number of lines, a number of pixels per line, and a number of bits per pixel, and wherein a size of the first line segment buffer is equal to the number of pixels per line multiplied by the number of bits per pixel; a second line segment buffer configured to read, from the image memory, a second line of the first the of the plurality of tiles, wherein the first and second lines are different; a rotation logic module configured to sequentially read the first line from the first line segment buffer and the second line from the second line segment buffer and to separately rotate the first and second lines based on an orientation selection; and a first write buffer configured to simultaneously receive the rotated first and second lines from the rotation logic module for aggregation as a rotated tile, and to determine an address in the image memory for the rotated tile, wherein the first write buffer is configured to write the rotated the to the image memory at the address. |