Image rotation realization method and apparatus
A technology of image rotation and implementation method, which is applied in the field of image processing, can solve the problems of large data volume, slow response speed, increase of chip area, etc., and achieve the effect of improving processing speed and efficiency, reducing hardware cost investment, and timely processing
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0065] Embodiment 1 of the present invention provides a method for implementing image rotation, the process of which is as follows figure 1 As shown, the principle is as figure 2 As shown, the method includes the following steps:
[0066] Step S101: Determine the reading sequence of image data according to the source storage format and source data format of the image to be rotated, and the rotation angle of the image.
[0067] like figure 2 As shown, the image rotation is realized by combining three hardware modules of direct memory access (DMA), rotator (Rotator), and random storage memory controller (RAM Controller). For example, when selecting the rotation angle of the screen or moving the display screen, the image display angle will be rotated, etc.
[0068] The DMA determines the reading sequence of the image data according to the angle to be rotated, the storage format of the image source, and the data format of the image source. Wherein, the angle to be rotated ma...
Embodiment 2
[0076] Embodiment 2 of the present invention provides a specific implementation process of a method for implementing image rotation, which is described in detail for the case of 180-degree rotation. The process is as follows image 3 As shown, the method includes the following steps:
[0077] Step S201: According to the source storage format and source data format of the image to be rotated, and the image rotation angle of 180 degrees, reverse the address sequence of the rotation unit during memory access.
[0078] This step is handled by DMA. When rotating 180 degrees, in fact, it is only necessary to reverse the order of each pixel according to the original storage format and data format. However, since memory reading generally does not only read one pixel at a time, it is necessary to rotate Address order inversion processing is performed in units of units.
[0079] Step S202: Send the rotation unit whose address sequence is reversed to the rotator.
[0080] Step S203: R...
Embodiment 3
[0099] Embodiment 3 of the present invention provides a specific implementation process of an image rotation implementation method, the process of which is as follows Figure 6 As shown, the method includes the following steps:
[0100] Step S301: According to the source storage format and source data format of the image to be rotated, and the rotation angle of the image is 90 degrees or 270 degrees, the address sequence of the rotation unit during memory access is converted according to the rotation angle.
[0101] This step is handled by DMA. Wherein, the transformation directions of 90 degrees and 270 degrees are different. When rotating at 90 degrees and 270 degrees, in fact, it is only necessary to transform the order of each pixel according to the original storage format and data format. Since memory reading generally does not only read one pixel at a time, it is necessary to The conversion processing of the address order is performed in units of rotation units.
[01...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com