A method and an apparatus for rotating images on a computer system is disclosed. The system includes a processor for accessing an image frame buffer using a set of CPU addresses, a memory for storing the frame buffer, a controller for directing the pixel data of the frame buffer to a display device using a set of controller addresses. The two sets of addresses are not necessarily the same. In fact, numerous advantages could be had from manipulating those two sets of addresses resulting in image rotation operations for the display device.
|
0. 17. A method for rotating images 90 degrees clockwise comprising the steps of:
establishing new row addresses of a controller address set as the column addresses for a processor address set, and establishing new column addresses of the controller address set as the row addresses for the processor address set; and setting each of the new column addresses of the controller address set as the difference between its current value and the maximum value of the new column addresses of the controller address set.
0. 16. A method for rotating images 90 degrees counter clockwise comprising the steps of:
establishing new row addresses of a controller address set as the column addresses for a processor address set, and establishing new column addresses of the controller address set as the row addresses for the processor address set; and setting each of the new row addresses of the controller address set as the difference between its current value and the maximum value of the new row addresses of the controller address set.
0. 15. A method of rotating an image, the image comprising a plurality of pixels, each pixel having a row address r and a column address C, the method comprising:
receiving a request for a pixel of the image, the pixel having a row address r and a column address C; providing a new pixel having a new row address x and a new column address y wherein: a) in response to the image being rotated clockwise, x is column address C of the requested pixel, and y is the difference between row address r of the requested pixel and a maximum row address; b) in response to the image being rotated counterclockwise, x is the difference between column address C of the requested pixel and a maximum column address, and y is row address r of the requested pixel; and repeating the receiving and providing steps for each pixel of the image.
0. 14. A system for rotating an image comprising:
a processor to request a pixel of the image, the pixel having a row address r and a column address C; a graphics controller to retrieve a new pixel instead of the requested pixel from a frame buffer, the new pixel having a row address x and a column address y, wherein: a) in response to the image being rotated clockwise, x is column address C of the requested pixel, and y is the difference between row address r of the requested pixel and a maximum row address; b) in response to the image being rotated counterclockwise, x is the difference between column address C of the requested pixel and a maximum column address, and y is row address r of the requested pixel; and wherein the graphics controller instructs a display to display the new pixel at row address x and column address y.
0. 9. A graphics controller for rotating an image comprising:
an interface to receive a request for a pixel of the image from a processor, the pixel having a row address r and a column address C; an interface to retrieve a new pixel instead of the requested pixel from a frame buffer, the new pixel having a row address x and a column address y, wherein: a) in response to the image being rotated clockwise, x is column address C of the requested pixel, and y is the difference between row address r of the requested pixel and a maximum row address; b) in response to the image being rotated counterclockwise, x is the difference between column address C of the requested pixel and a maximum column address, and y is row address r of the requested pixel; and an interface to output the new pixel to a display for display at row address x and column address y.
1. A computer display system including a processor and a display system, the display system having a memory, said display system comprising:
a display means for displaying image information to be arranged in a plurality of horizontal lines of pixel data; a frame buffer containing the for storing pixel data of an image information, the frame buffer being stored in the memory in a manner that data of each of the plurality of horizontal lines including pixel data for the display means being stored in the memory resulting in the frame buffer occupying in a contiguous block in the a memory, and , the frame buffer further being accessible by the a processor using a processor address set of row and column addresses; a controller means for establishing for determining new row addresses of a controller address set as the column addresses of the processor address set, and establishing new column address of the controller address set as the row addresses of the processor address set; the controller means being coupled to the display means for transferring adapted to transfer the pixel data of the frame buffer to the a display means using the new controller address set, the controller means setting each of the new row addresses of the controller address set as the difference between its current value and a maximum value of the new row addresses of the controller address set and providing the pixel data of the frame buffer to the display means while referencing both the new row addresses and the new column addresses of the controller address set in an ascending order.
0. 12. An apparatus for manipulating a processor's addressing of an image from a frame buffer so that the image is rotated 90 degrees clockwise without requiring the processor to spend its cycles on address transformation operations, the apparatus comprising:
a display interface; a frame buffer interface; a controller to establish new row addresses of a controller address set as the column addresses of a processor address set, and to establish new column addresses of the controller address set as the row addresses of the processor address set; the controller being coupled to the display interface and the frame buffer interface to transfer the pixel data of a frame buffer to a display using the new controller address set, the controller to set each of the new column addresses of the controller address set as the difference between its current value and the maximum value of the new column addresses of the controller address set and to provide pixel data of the frame buffer to the display while referencing both the new row addresses and the new column addresses of the controller address set in ascending order.
0. 10. An apparatus for manipulating a processor's addressing of an image from a frame buffer so that the image is rotated 90 degrees counter clockwise without requiring the processor to spend its cycles on address transformation operations, the apparatus comprising:
a display interface; a frame buffer interface; a controller to establish new row addresses of a controller address set as the column addresses of a processor address set, and to establish new column addresses of the controller address set as the row addresses of the processor address set; the controller being coupled to the display interface and the frame buffer interface to transfer the pixel data of a frame buffer to a display using the new controller address set, the controller to set each of the new row addresses of the controller address set as the difference between its current value and the maximum value of the new row addresses of the controller address set and to provide pixel data of the frame buffer to the display while referencing both the new row addresses and the new column addresses of the controller address set in ascending order.
5. A method for rotating images for a computer system, the computer system including a processor, and a display system, the display system having and a memory, said method comprising the steps of:
displaying image information on display means arranged in a plurality of horizontal lines of pixel data; storing pixel data of an image in a frame buffer in the memory, the frame buffer containing the image information , the frame buffer being stored in the memory in a manner such that data of each of the plurality of horizontal lines including pixel data for the display means are stored in the memory resulting in the frame buffer occupying a contiguous block in the memory and the frame buffer further being accessible by the processor using a processor address set of row and column addresses; establishing determining new row addresses of a controller address set as the column addresses of the processor address set, and establishing new column addresses of the controller address set as the row addresses of the processor address set; transferring the pixel data of from the frame buffer to the display means using the new controller address set, the transferring step setting each of the new row addresses of the controller address set as the difference between its current value and a maximum value of the new row addresses of the controller address set and providing the pixel data of from the frame buffer to the display means while referencing both the subtracted-from-maximum new row addresses and the new column addresses of the controller address set in an ascending order.
2. The computer display system of
3. The computer system of
a frame buffer for storing pixel data of an image in a contiguous block in a memory, the frame buffer being accessible by a processor using a processor address set of row and column addresses; a controller for determining new row addresses of a controller address set as the column addresses of the processor address set, and new column addresses of the controller address set as the row addresses of the processor address set; the controller adapted to transfer the pixel data of the frame buffer to a display using the new controller address set, the controller means sets setting each of the new column addresses of the controller address set as the difference between its current value and a maximum value of the new column addresses of the controller address set and provides the pixel data of the frame buffer to the display means while referencing both the new row addresses and the new column addresses of the controller address set in an ascending order.
4. The computer display system of
6. The method of
7. The method of
storing pixel data of an image in a frame buffer, the frame buffer being stored in a contiguous block in the memory and the frame buffer being accessible by the processor using a processor address set of row and column addresses; determining new row addresses of a controller address set as the column addresses of the processor address set, and new column addresses of the controller address set as the row addresses of the processor address set; transferring the pixel data from the frame buffer to the display using the new controller address set, the transferring step setting each of the new column addresses of the controller address set as the difference between its current value and a maximum value of the new column addresses of the controller address set and providing the pixel data of from the frame buffer to the display means while referencing both the new row addresses and the subtracted-from-maximum new column addresses of the control address set in an ascending order.
8. The method of
0. 11. The frame buffer interface of
0. 13. The frame buffer interface of
|
This invention relates generally to a processor-controlled system such as a computer system and, more particularly, but not exclusively, to an electrical arrangement in the system for managing video information for rotating computer display images.
Among the many image resolutions for computer displays in the market today, a common resolution for computer displays is 640×480. Such resolution for a display refers to a display having an overall screen measuring 640 pixels wide by 480 lines high. In fact, any displays having this horizontal format (i.e., its width being greater than its height) would provide ease and convenience for certain computer operations including showing TV images, operating drawing programs and performing spreadsheet calculations. Nevertheless, displays with a vertical format (i.e., its height being greater than its width) are better suited for certain other operations such as word processing, program coding and Internet access. One may suggest a computer display having a square viewing area (i.e., equal height and width) for satisfying both requirements, but practically speaking, the most common computer displays today are rectangular, and that forces an user to choose either a horizontally or a vertically formatted display at the time of purchase.
It would be ideal if a display device could rotate between the horizontal format and the vertical format depending on user needs and preference. While this rotation feature is useful for operating numerous computer applications, it is especially advantageous for pen-based and hand-held computers where the user's ability to comfortably operate the computer is greatly affected by the orientation and position in which the computer is held.
One known implementation discloses a computer system having a display device which can be physically rotated along its sides 90 degrees in either of two directions. Such a system can then cause the display device to display its image contents correctly adjusted for the newly-rotated display orientation. Unfortunately, typical image orientation adjustments for the rotated display monitor have significant performance penalty associated with their necessary calculation-intensive axis transformations.
It would be desirable and therefore an object for the present invention to provide a method and apparatus for rotating computer display images 90 degrees on a display device with little or no transformation calculations. It is another object for the present invention to provide the image rotation for the display device in both clockwise and counter-clockwise directions to support both left-handed and right-handed users. Yet another object for the present invention is to implement such rotation feature without significant system performance penalty.
Additional objects and advantages of the present invention will be set forth in the description which follows, and in part, will be obvious from the description or may be learned by practice of the invention. To achieve the foregoing objects, and in accordance with the purpose of the invention as embodied and broadly described herein, briefly, there is provided an apparatus including a memory system containing an image frame buffer for an associated display device, this memory system being coupled to a CPU and also being coupled to the display device via its video display controller. The image frame buffer can be manipulated by the CPU and retrieved by the video display controller for use by the display device. One aspect of the invention discloses an implementation wherein the CPU addresses the image frame buffer in a manner advantageous for CPU manipulation and the video display controller addresses the same image frame buffer in another manner advantageous for frame buffer retrieval by the video display controller. Such retrieval includes image presentations on the display device in a vertical format as well as in a horizontal format depending on user selection. During image rotation, one preferred but not limiting aspect of the invention provides the memory system, under the control of the video display controller, physically storing the image frame buffer in memory locations which are different from the locations as addressed by the CPU. Although typical display image rotation can be accomplished entirely in software, another aspect of the present invention provides an implementation that is operable entirely in hardware.
The present invention also may take advantage of the fact that the image frame buffer in the memory system is typically defined as a series of bytes storing the image information for the first horizontal line of the display device, followed by a fixed gap of unused bytes, and followed by another series of bytes for the next horizontal line of the display device, then another gap of unused bytes, and so on. For a display device measuring h pixels wide, by v pixels high, this makes an image frame buffer of v lines, each line containing the number of bytes needed to store the image data for h pixels plus a fixed number of unused gap bytes. The image frame buffer implemented as described provides further advantages for image rotation, if two other conditions are met: 1. A "defined frame buffer" (which contains the portion of the frame buffer used for the actual display data) starts at a page boundary address where all the address bits needed to describe offsets within the defined frame buffer are 0 (for a 1 megabyte buffer, for example, this means the least significant 20 bits of the lowest defined buffer address should be 0, a condition met by an hexadecimal address ending in 00000); and 2. The sum of the number of image data bytes per display line plus the number of gap bytes per line is a power of 2 (such as 210=1024 bytes).
The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention:
Reference will now be made in detail to preferred embodiments of the invention. While the invention will be described in conjunction with the preferred embodiments, it should be understood that they are not intended to limit the invention to these embodiments. On the contrary, the invention is intended to cover alternatives, modifications, and equivalents, which may be included within the spirit and scope of the invention as defined by the appended claims.
Throughout this detailed description numerous details are set forth in order to provide a thorough understanding of the present invention, for example, multiple references are made to specific computer display resolutions and data word bit-widths of communication lines. These specific values are exemplary only. To one skilled in the art, however, it will be appreciated that the present invention may be practiced without such specific details and that a wide range of display resolutions and data-word-bit-width values can be used within the scope of the present invention. In other instances, well-known methods, procedures, control structures and gate level circuits have not been shown in detail in order not to obscure the present invention.
With today's device technology, the development of specialized integrated circuits and programmable logic generally do not require the rendering of fully detailed circuit diagrams. The definition of logic functionality allows computer design techniques to design the desired logic and circuits. Additionally, microcontrollers are known to operate based on a desired flow diagram rendered into software that is compatible with a selected microcontroller. Accordingly, portions of the present invention will be described primarily in terms of functionality to be implemented by a microcontroller and other associated electronic components. This functionality will be described and those of ordinary skill in the art, once given the following descriptions of the various functions to be carried out by the present invention will be able to implement the necessary microcontroller structure and logic for various logic devices or custom designed integrated circuits in suitable technologies without undue experimentation.
In operation, an image frame buffer (not shown) to be displayed on the display device 180 is stored into the frame buffer memory 170 by the CPU 155. The graphics video display controller 175 may or may not interfere with the CPU 155 addressing of the image frame buffer inside the frame buffer memory 170. Presumably, such CPU addressing is advantageous for its operations. When the image shown on the display device 180 is to be rotated, however, the graphics controller 175, at that time, will interfere and manipulate the CPU 155 addressing of the image frame buffer without requiring the CPU 155 to spend its cycles on address transformation operations. Furthermore, the configuration of the frame buffer memory 170, graphics controller 175, and CPU 155 as shown in
As discussed earlier in the Summary of the Invention that the concept of a "defined frame buffer" would provide certain efficiency advantages for image rotation.
A frame buffer addressing scheme used by the CPU 155 in accordance with the defined frame buffer concept is illustrated in FIG. 3A. The term "CPU address" refers to an address issued by the microprocessor (CPU) 155 or another device when the executing software accesses the frame buffer. The graphics controller 175 accesses the frame buffer for image display and refresh using its own addresses (which may or may not be the same as the CPU addresses).
The graphics video display controller 175 can alter any CPU 155 addresses received before actually writing or reading any images physically stored in the frame buffer memory 170. As long as the same alteration is applied to both reading and writing operations, the software will never know that the images are actually physically stored in a different format. In one preferred embodiment for image rotation, the graphics video display controller 175 creates a new, rotated frame buffer memory address by exchanging the CPU Column address bits with the CPU Row address bits as shown in FIG. 4. The CPU Byte address bits retain their original position as the least-significant bits. If this address transformation is used on both reads and writes by the CPU 155, then to the software, it will continue to "see" (address) any re-oriented image frame buffer stored in the frame buffer memory 170 as in its original, and in this case, in its vertical, format. For refreshing the display images, however, the graphics controller 175 can read the image frame buffer as it is actually stored in its rotated format in the frame buffer memory 170. For example, one preferred aspect of the invention physically stores the image frame buffer as shown in
Applying the above transformations to one embodiment, the defined frame buffer shown in
Rotated Row address bits=CPU Column address bits
Rotated Column address bits=CPU Row address bits
Rotated Byte address bits=CPU Byte address bits
This basic transformation has rotated software's vertical format to a horizontal format, by simply exchanging the CPU columns for the CPU rows (lines). A closer look at the rotation reveals that it has been rotated 90°C counter-clockwise, but it is reversed vertically; in other words, it looks like a mirror image of the original vertical frame buffer, and rotated counter-clockwise. It does not provide the corresponding 90°C image rotation desired when a display device or a hand-held computer is physically rotated either clockwise or counter-clockwise. Nevertheless, such desired rotated images could still be obtained in a number of ways.
In another preferred embodiment, a correct, counter-clockwise 90°C image rotation for the image as shown in
Similarly, a clockwise 90°C image rotation is obtained if the graphics controller 175 access the "rotated" columns in the frame buffer memory 170 as shown in
It is not always convenient or possible to sequentially access the rows or columns of a frame buffer in reverse order. For example, the graphics controller's DMA engine may be designed only for incremental display refresh operations. In response to this limitation, an implementation for a 90°C counter-clockwise rotation requires subtracting each rotated row address from the maximum rotated row address (H*8/w)-1 in the defined frame buffer as shown in FIG. 5. This subtraction operation is simply accomplished by merely inverting each bit of the rotated row address. The entire sequence of operations for this 90°C counter-clockwise image rotation, i.e., an exchange of CPU row and column addresses. Therefore, in this preferred embodiment, the CPU address transformation implementation is illustrated in FIG. 8A and the transformed image and stored in the frame buffer memory 170 is shown in FIG. 9A.
In either implementation, appropriate rotated images will be displayed when the graphics controller 175 retrieves data from the frame buffer memory 170 and refreshes the displayed images in a normal or incremental manner.
A variation to the above embodiment in which each row or column address is subtracted from the maximum rotated row or column address in the display portion of the defined frame buffer can be described as follows:
For 90°C Counter-clockwise Image Rotation:
Rotated Row Address=Highest Display Column Address-CPU Column Address (note: Highest Display Column Address=[h*b/w]-1)
Rotated Column Address=CPU Row Address
Rotated Byte Address=CPU Byte Address
For 90°C Clockwise Image Rotation:
Rotated Row Address=CPU Column Address
Rotated Column Address=Highest Display Row Address-CPU Row Address (note: Highest Display Row Address=v-1)
Rotated Byte=CPU Byte
This implementation is computationally more intensive than earlier embodiments; but it is perhaps conceptually more straightforward than the earlier embodiments. And it does allow the rotated row be sequentially accessed from the frame buffer memory 170 in the same order (starting with rotated row and column address 0) for both clockwise and counter-clockwise rotation.
The foregoing descriptions of specific embodiments of the present invention have been presented for purposes of illustration and description. They are not intended to be exhaustive or to limit the invention to the precise forms disclosed, and obviously many modifications and variations are possible in light of the above teachings. The embodiments were chosen and described in order to best explain the principles of the invention and its practical application, to thereby enable others skilled in the art to best utilize the invention and various embodiments with various modifications as are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the claims appended hereto and their equivalents.
Bailey, Robert L., Howard, Brian D.
Patent | Priority | Assignee | Title |
7800634, | Aug 18 2004 | Samsung Electronics Co., Ltd; SAMSUNG ELECTRONICS CO , LTD | Method of rotating image, computer, and recording media |
7876977, | Feb 15 2006 | Synaptics Incorporated | Image processor and method of image rotation |
7995867, | Feb 15 2006 | Synaptics Incorporated | Image processor and method of image rotation |
8619313, | Oct 28 2005 | HEWLETT-PACKARD DEVELOPMENT COMPANY, L P | Scanning device with plural image capture zones on a platen |
9087337, | Oct 03 2008 | GOOGLE LLC | Displaying vertical content on small display devices |
RE44855, | Oct 08 1998 | Apple Inc. | Multi-functional cellular telephone |
RE45559, | Oct 28 1997 | Apple Inc. | Portable computers |
RE46548, | Oct 28 1997 | Apple Inc. | Portable computers |
Patent | Priority | Assignee | Title |
4952920, | Jan 20 1987 | Kabushiki Kaisha Toshiba | Display apparatus having horizontal/vertical conversion display functions |
4995089, | Jan 08 1990 | Nexpress Solutions LLC | Method and apparatus for providing font rotation |
5533185, | Nov 27 1991 | SAMSUNG ELECTRONICS CO , LTD | Pixel modification unit for use as a functional unit in a superscalar microprocessor |
5598181, | Sep 26 1994 | Xerox Corporation | Method and apparatus for rotating a digital image ninety degrees using a small auxiliary buffer |
5634088, | Nov 01 1995 | Xerox Corporation | Method and apparatus for rotation of high addressability bitmap images |
5734875, | Feb 05 1996 | Seiko Epson Corporation | Hardware that rotates an image for portrait-oriented display |
5966116, | Apr 04 1995 | Advanced Micro Devices, Inc. | Method and logic system for the rotation of raster-scan display images |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Dec 29 2000 | Apple Computer, Inc. | (assignment on the face of the patent) | / | |||
Jan 09 2007 | Apple Computer, Inc | Apple Inc | CHANGE OF NAME SEE DOCUMENT FOR DETAILS | 020638 | /0127 |
Date | Maintenance Fee Events |
Jun 05 2006 | M1552: Payment of Maintenance Fee, 8th Year, Large Entity. |
Jun 03 2010 | M1553: Payment of Maintenance Fee, 12th Year, Large Entity. |
Date | Maintenance Schedule |
Mar 23 2007 | 4 years fee payment window open |
Sep 23 2007 | 6 months grace period start (w surcharge) |
Mar 23 2008 | patent expiry (for year 4) |
Mar 23 2010 | 2 years to revive unintentionally abandoned end. (for year 4) |
Mar 23 2011 | 8 years fee payment window open |
Sep 23 2011 | 6 months grace period start (w surcharge) |
Mar 23 2012 | patent expiry (for year 8) |
Mar 23 2014 | 2 years to revive unintentionally abandoned end. (for year 8) |
Mar 23 2015 | 12 years fee payment window open |
Sep 23 2015 | 6 months grace period start (w surcharge) |
Mar 23 2016 | patent expiry (for year 12) |
Mar 23 2018 | 2 years to revive unintentionally abandoned end. (for year 12) |