WO2016079551A1 - System and method for displaying a rotated image in a display device - Google Patents

System and method for displaying a rotated image in a display device Download PDF

Info

Publication number
WO2016079551A1
WO2016079551A1 PCT/IB2008/003202 IB2008003202W WO2016079551A1 WO 2016079551 A1 WO2016079551 A1 WO 2016079551A1 IB 2008003202 W IB2008003202 W IB 2008003202W WO 2016079551 A1 WO2016079551 A1 WO 2016079551A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
memory
source
lines
display
Prior art date
Application number
PCT/IB2008/003202
Other languages
French (fr)
Inventor
R. Guruprasad
K.S. Krishna
M. Vijayalaxmi
K.M. Nataraja
Sunil R. Nyamagouda
Original Assignee
Lg Electronics Inc.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lg Electronics Inc. filed Critical Lg Electronics Inc.
Priority to PCT/IB2008/003202 priority Critical patent/WO2016079551A1/en
Publication of WO2016079551A1 publication Critical patent/WO2016079551A1/en

Links

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/36Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of a graphic pattern, e.g. using an all-points-addressable [APA] memory
    • G09G5/39Control of the bit-mapped memory
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/36Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of a graphic pattern, e.g. using an all-points-addressable [APA] memory
    • G09G5/39Control of the bit-mapped memory
    • G09G5/393Arrangements for updating the contents of the bit-mapped memory
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2340/00Aspects of display data processing
    • G09G2340/04Changes in size, position or resolution of an image
    • G09G2340/0492Change of orientation of the displayed image, e.g. upside-down, mirrored

Definitions

  • One or more embodiments described herein relate to the processing of images for presentation on a display device.
  • FIG. 1 is a diagram showing one way in which the orientation of a source image may be changed to produce a display image.
  • FIG 2. is a diagram showing one example of a system for changing the orientation of a source image to produce a display image.
  • FIG. 3 is a flow diagram showing steps included in one embodiment of a method for changing the orientation of a source image to produce a display image.
  • FIG. 4 is a diagram showing an arrangement of image lines in a source image whose orientation is to be changed.
  • FIG. 5 is a flow diagram showing steps included in one embodiment of a method for displaying an image in a display device.
  • FIG. 6 is a flow diagram showing one way in which a plurality of variables may be initialized for rotating a source image.
  • FIG. 7A-7C are flow diagrams showing steps included in an algorithm for rotating the source image at an angle of 0° or 180 °.
  • FIG. 8A-8C are flow diagrams showing steps included for rotating the source image at an angle of 90 ° or 270 °.
  • FIG. 9 shows another way in which the orientation of a source image may be changed to produce a display image.
  • FIG. 10 is a diagram showing another image and rotated image.
  • FIG. 11 is a flow diagram showing steps included in another embodiment of a method for displaying an image in a display device.
  • FIG. 12 is a flow diagram one way in which a plurality of variables for displaying a rotated image may be initialized.
  • FIGS. 13A-13B are flow diagrams showing steps included in an algorithm for rotating a source image at an angle of 0° or 180 °.
  • FIGS. 14A-14B are flow diagrams showing steps included in an algorithm for rotating a source image at angles of 90° or 270°.
  • FIG. 1 is a diagram showing a source image 102 and a rotated image 108.
  • the source image may include text, graphics, video, or other information capable of being viewed on a display device, which, for example, may be a television or monitor, the latter of which may be provided alone or within a processing device such as a notebook or desktop computer.
  • a display device More specific examples of the display device include but are not limited to a Liquid Crystal Display (LCD), Thin Film Transistor (TFT) LCD, a plasma display panel (PDP), and an electroluminescent display (organic or inorganic).
  • LCD Liquid Crystal Display
  • TFT Thin Film Transistor
  • PDP plasma display panel
  • electroluminescent display organic or inorganic
  • the source image is displayed in a predetermined orientation.
  • the length of a document image may be greater than its width and the vertical dimension of the display device.
  • the horizontal dimension of most display devices is greater than its vertical dimension, changing the orientation of the source image, for example, by rotating it 90°, prior to display, will allow a person to view all or a greater portion of the information contained in image.
  • One or more embodiments described herein provide a method for changing the orientation of a source image. Referring to FIG. 1 , this may be accomplished by translating the position of pixels in source image 102 to form rotated image 108. (The rotated image may be referred to as a display image since this is the image that is output for viewing on the display device.)
  • the source image may be stored in a source memory 10 or other storage device.
  • the orientation of the image may be changed by translating the pixels in the source image to different locations in a display memory 20.
  • the source and display memories may correspond to different sections of a common memory unit or, for example, may be located on different integrated circuit chips, in order to perform the orientation change, a processor 30 may be included to control the translation of pixels from the source memory to the display memory. The image in the display memory is then output for viewing on display device 40.
  • the source image may have multiple lines that are divided into a first section 104 and a second section 106 by a reference point.
  • the reference point is shown by dotted line 105.
  • the reference point may coincide with one of the lines in the source image or may be located between two image lines.
  • the location of the reference point is set so that each section includes the same number of image lines.
  • the sections may include different numbers of lines.
  • source image 102 is shown as including ten lines disposed within a border 101 and the reference point is between the fifth and sixth lines 107 and 108. Accordingly, the first and second sections each include five image lines. Dividing the source image in this manner produces five pairs of image lines, where each line in the first section has a mirrored counterpart in the second section. For example, line 1 10 in the first section corresponds to line 1 12 in the second section.
  • the source image may be rotated at any desired angle including but not limited to 90°, 180°, 270°, or 360°. For example, rotation of the source image by an angle of 270 ° may produce display image 108.
  • the image lines in the source image are translated in a random manner to form the display image. The manner in which the image lines are randomly translated from the source memory to the display memory is described in greater detail below.
  • an initial step includes determining the number of lines in the source image. (Block 120). This determination may be made based on a predetermined or stored setting that indicates, for example, a maximum number of lines in the source image or a maximum number of lines allocated in the display device for displaying any given image.
  • a plurality of random numbers is then generated in non-sequential order equal in number to the number of lines in the source image.
  • Block 130 For example, the source image shown in FIG. 1 has ten image lines. Thus, ten numbers may be randomly generated in the following non-sequential order: 2 0 4 1 3 6 8 5 9 7. (In this example, the random numbers range from 0 to N-1, where N equals the total number of lines in the source image.)
  • the non-sequential order is generated so that different pairs of adjacent random numbers in the list are separated by different incremental values.
  • adjacent random numbers 2 and 0 are separated by an incremental value of 2
  • adjacent random numbers 0 and 4 are separated by an incremental value of 4, and so on.
  • These different incremental values may be used as a basis for controlling memory pointers of the source and display memories to effect a random, non-sequential transfer of image lines from the source memory to the display memory in accordance with the embodiments described herein.
  • the random numbers in the list may be generated using known techniques.
  • the first-generated random number is selected and set to correspond to an image line of the same number in the source image.
  • the image lines in the source image are preferably numbered from 0 to N-l in sequential order.
  • this image line is transferred from the source memory to the display memory based on the change in orientation selected. (Block 150). For example, for a 270° rotation, the pixels in line 110 of the source image are transferred to memory locations in the display memory that correspond to the location of line 110 in display image 108.
  • the mirror counterpart of the transferred line in the source image is determined. (Block 160).
  • the mirror counterpart of the image line corresponding to random number 2 is line number 7 (corresponding to image line 112) relative to reference point 105.
  • image line 112 is transferred from the source memory to the display memory based on the selected orientation.
  • the pixels in line 112 of source image 102 are transferred to memory locations in the display memory that correspond to the location of line 112 shown in display image 108 in FIG. 1.
  • next number in the list of random numbers is then selected. (Block 180). In the listed generated above, this number is 0. Steps analogous to those in Blocks 150, 160, 170 and 180 are then repeated until the remaining lines in the source memory are transferred into the display memory. (If at any time the next random number to be selected in the list corresponds to a mirror counterpart line that has already been transferred, that number may be skipped in favor of selecting one or more additional numbers from the list in sequential order, until a number is reached that corresponds to an image line in the source memory that has not yet been transferred.) Once all the lines have been transferred, the now-rotated image is displayed on the display device in accordance with the selected change in orientation. (Block 190).
  • the image lines in the source image are transferred from the source memory to the display memory in random non-sequential order.
  • the image in the display memory is then shown on the display device in accordance with the locations of the image lines in the display memory.
  • a one-to-one correspondence may exist between the pixel locations in the display memory and the pixel locations in the image displayed on the screen of the display device.
  • each image line of the source image may be accomplished in various ways. For example, the pixels in each line may be transferred sequentially in accordance with the selected orientation. Alternatively, the pixels in each line may be transferred randomly, for example, in accordance with a random number list analogous to the one generated for transferring the source image lines. Other techniques for randomly or sequentially transferring the pixels in each image line may also be used.
  • a plurality of random numbers is generated in non-sequential order.
  • the number of random numbers is equal to only a portion (e.g., half) of the number of lines in the source image.
  • five numbers may be randomly generated in the following non-sequential order: 2 0 4 1 3.
  • Images lines in the source image, and their mirror image lines, are then selected for transfer based on this order.
  • FIG. 5 shows steps for changing the orientation of a source image for display on a display device in accordance with another embodiment. The method is initiated at step 202.
  • a plurality of random numbers is generated and each of the plurality of random numbers corresponds to a respective one of the lines in source image 602 shown in FIG. 9.
  • the source image comprises thirteen lines and therefore thirteen random numbers are generated.
  • Each of the thirteen random numbers corresponds to a respective one of the thirteen lines in source image 602.
  • Each of the plurality of lines will be assigned a number.
  • the random numbers are preferably generated from 0 to N-l . Accordingly, line 609 in FIG. 9 corresponds to number 2, line 611 corresponds to number 3, and so on.
  • a line corresponding to one of the random numbers and its mirror line are selected.
  • the mirror line may be determined relative to reference point 605. For example, if number 3 is generated as a first random number of the plurality of random numbers, then line 611 and mirror line 612 are selected.
  • the angle of rotation of the image is determined. This angle corresponds to the orientation of the image selected or otherwise designated for display in the display device. This angle may be based on information input by a user (e.g., a user selection or setting) or may be automatically determined, for example, as a result of a user rotating the screen of the display device. In this latter case, the display device may have a rotatable screen and a detector may be used to detect a rotated position of the screen as the angle of rotation. Once detected, the source image may be translated in accordance with the embodiments described herein and then output to the physically rotated display screen. [0041] At step 210, a start position of each of the plurality of lines selected is determined.
  • This start position may correspond to and control a pointer in the source memory.
  • the start position in the display device and thus the pointer of the display memory may be determined using the angle of rotation. For example, if the source image is to be rotated by 270°, the start position of the display image (which is the source image rotated at the angle of 270 °) will be determined according to a plurality of variables, which, for example, may be the ones described for the embodiments in FIG. 7A-7C and FIG. 8A-8C discussed in greater detail below.
  • each of the pixels in line of the source image is transferred from the source memory to the display memory. For example, if the random number 3 is selected, the pixels in line 610 are transferred to locations in the display memory that correspond to the designated angle of rotation. In accordance with one implementation, the pixels in each line of the source image are transferred to the display memory sequentially on a per image-line basis.
  • the pixels in line 612 are transferred to the display memory.
  • one or more variables may be updated. For example, a screen pointer variable may be updated each time a pixel is transferred from the source memory to the display memory. A corresponding update may be performed for a source memory pointer.
  • the resulting rotated image is displayed based on the plurality of variables that were updated. The method terminates at step 218.
  • FIG. 6 is a flow diagram showing steps that may included in one embodiment for initializing variables to be used in rotating the source image.
  • the variables to be initialized include a PIXEL_SIZE, a PH YS IC A L SCR EEN_ WIDTH , a PHYSICAL SCREEN HEIGHT, a PHYSICAL BYTE WIDTH, a MEM PTR, a SCR PTR, a LOGICAL SCREEN WIDTH and a LOGICAL SCREEN HEIGHT.
  • the method initiates at step 302, when a request for displaying the image 102 on the display screen is received by a driver program code.
  • the request for displaying the image 102 on the display screen can be sent by an application program, an operating system, or a user defined program interface.
  • the request for displaying the image 102 in rotated format is processed by the driver program code.
  • a size of each of the plurality of pixels of each of the plurality of lines of the source image may be determined and the size of each of the plurality of pixels is stored in the PIXEL_SIZE variable.
  • a pixel is a single point in the source image. The image is divided into a plurality of pixels arranged in rows (or the plurality of lines) and columns.
  • the size of each pixel can be selected by a user of the display screen, the application program, or the operation system. For example, the size of each pixel can be set to 1 byte per pixel (Palette Mode), 2 bytes per pixel ( High color Mode), 3 bytes per pixel ( True color Packaged Mode), or 4 bytes per pixel (True color aligned Mode).
  • the PHYSICAL SCREEN WIDTH variable is set equal to width in pixels of the source image in the source memory. For example, if each line comprises 10 pixels, then the PHYSICAL SCREEN WIDTH variable is set to 10.
  • the PHYSICAL SCREEN HEIGHT variable is set equal to a height in pixels of the source image in the source memory. For example, if each column of the source image comprises 10 pixels, the PHYSICAL SCREEN H EIGHT variable is set to 10. Furthermore, the P H Y S I C AL B YTE WIDTH variable is set equal to a product of the PHYSICAL SCREEN WIDTH variable and the PIXEL SIZE variable, for example if the PIXEL SIZE variable is set equal to 1 byte and the PHYSICAL SCREEN WIDTH variable is set to 10, the PHYSICAL BYTE WIDTH variable will be equal to 10 bytes. Also, at step 306, the ME JPTR variable is set equal to a base address to a bitmap in the source memory and the SCR PTR variable (the screen pointer variable) is set equal to a base address of the display memory.
  • step 308 it is determined whether the angle of rotation of the source image is equal to 0° or 180°. If the angle of rotation of the source image is 0° o 180°, then, at step 310, the LOGICAL SCREEN WIDTH variable is set equal to the PHYSICAL SCREEN WIDTH variable and the LOGICAL SCREEN H EIGHT variable is set equal to the PH YS IC AL S CREEN _HEIGHT variable. Control proceeds to step 314 after step 310.
  • step 308 if the angle of rotation of the source image is not 0° or 180°, then, at step 312, the LOGIC AL SCREEN WIDTH variable is set equal to the PHYSCIAL SCREEN H EIGHT variable and the LOGIC AL S CREEN HEIGHT variable is set equal to the PH YS IC AL S CREEN WIDTH variable. Control goes to 314 after the step 312.
  • FIGS. 7A-7C are flow diagrams showing steps included in an algorithm for rotating source image 602 at an angle of 0° or 180°. If the rotation angle is 0° or 180°, control goes to step 402.
  • a ROW RANDOM LIST array is initialized. This array includes integers from 0 to (PHYSICAL SCREEN HEIGHT - 1). For example, if the PHYSICAL SCREEN HEIGHT variable is equal to 10, the ROW RANDOM LIST array will comprise numbers from 0 to 9.
  • a plurality of random numbers is generated equal in number to the plurality of lines (rows) in the source image.
  • a count of the plurality of random numbers is equal to the PHYSCIAL SCREEN HEIGHT.
  • a ROW CNT variable is initialized. The ROW CNT variable is set equal to (PHYSICAL_SCREEN_HEIGHT)/2.
  • step 406 it is determined whether the angle of rotation of the figure is 0° or 180°. If the angle of rotation is 0°, control goes to step 408. Otherwise, control goes to step 412.
  • a FOR loop is initialized from 0 to the ROW CNT variable, and at step 410 a ROWJNDEX variable is initialized and set equal to a pixel in a row.
  • the ROWJNDEX variable can go up to PHYSICAL SCREEN HEIGHT - (a pixel in a row +1).
  • Step 410 may be used for traversing through each of the plurality of pixels of each of the plurality of lines of the source image. Control then goes to a step 416 for initializing variables XI, X2, and Y.
  • Coordinates (XI, Y) indicate a start position of a line of the plurality of lines of the source image, when the source image is rotated at the angle of 0°.
  • Coordinates (X2, Y) indicate an end position of the line of the plurality of lines of the source image, when the image is rotated at the angle of 0°.
  • XI is set equal to 0
  • X2 is set equal to P H Y S IC
  • Y is set equal to the pixel in row.
  • a NEW SRC variable is initialized and set equal to a sum of memory pointer MEM PTR and (product of the pixel in row, the PHYSIC AL SCREEN WIDTH variable and the PIXEL SIZE variable).
  • a FOR loop is initialized from 0 to ROW CNT variable.
  • the ROW_INDEX variable is initialized and set equal to a pixel in a row.
  • the ROW INDEX variable can go up to PHYSICAL SCREEN HEIGHT - (a pixel in a row +1).
  • Step 414 may be used for traversing through each of the plurality of pixels of each of the plurality of lines of the source image. Control then goes to a step 418 for initializing variables XI, X2, and Y. Coordinates (XI, Y) indicate a start position of a line of the plurality of lines of the source image 102, when the source image is to be rotated by 1 80".
  • the coordinates (X2, Y) indicates an end position of the line of the plurality of lines of the source image, when the image is rotated at the angle of 180°.
  • XI is set equal to PHYSICAL SCREEN WIDTH - 1
  • X2 is set equal to 0
  • Y is set equal to the PHYSICAL SCREEN HEIGHT- the pixel in row - 1.
  • a NEW SRC variable is initialized and set equal to a sum of the MEM_PTR and (product of the pixel in row, the PHYSICAL SCREEN WIDTH variable and the PIXEL SIZE variable).
  • the step 418 is performed for rotating the source image at the angle of 180°.
  • step 420 an ADDR variable is initialized and set equal to the SCR PTR variable.
  • the ADDR variable is set equal to the sum of a previous value in the ADDR variable and a product of the PIXEL SIZE variable and (sum of X I , product of Y and LOGICAL SCREEN WIDTH variable).
  • step 422 it is determined whether XI ⁇ X2, and if the XI is less than or equal to X2, then the control goes to step 426.
  • XI is less than X2
  • X1++ is less than or equal to X2
  • the value of *ADDR value stored at the ADDR variable
  • *NEW_SRC value stored at the NEW SCR variable
  • control goes to the step 428 and the method is terminated. If, at step 422, it is determined that X1>X2, control goes to step 424. At step 424 a while loop is executed. While XI is greater than or equal to X2, the value of XI is decremented, when the said condition is true, then the value stored at the ADDR + 2 variable is assigned a value stored at a the NEW_SCR +2 variable. Further the value stored at the ADDR + 1 variable is assigned a value stored at the NEW SCR + 1 variable, the value stored at the ADDR variable is assigned a value stored at the NEW SCR variable.
  • variable ADDR is set equal to a difference of a previous memory location pointed by the ADDR variable and the PIXEL SIZE variable.
  • the ADDR variable will be incremented 10 times, since the X2 variable will be set equal to PHYSICAL SCREEN WIDTH -1, the PHYSIC AL_SCREEN_WIDTH variable is set equal to the width in pixels of the image, the width in pixels of the image is equal to number of pixels in each of the plurality of lines.
  • FIG. 8A-8C are flow diagrams showing steps included in an algorithm for rotating a source image at an angle of 90° or 270°. If the angle of rotation of the source image is 90° or 270°, control goes to step 502.
  • the ROW RANDOM LIST array is initialized and comprises integers from 0 to (PHYSICAL SCREEN HEIGHT - 1). For example, if the PHYSICAL SCREEN HEIGHT variable is equal to 10, then the ROW RANDOM LIST array will comprise numbers from 0 to 9.
  • the plurality of random numbers is generated and the plurality of random numbers generated is equal to the plurality of lines (rows) in the source image.
  • Count of a plurality o random numbers is equal to the PHYSCIAL SCREEN HEIGHT. Further, at step 504, a ROW_CNT variable is initialized. The ROW CNT variable is set equal to (PHY S IC A L SC R E EN H EI GH T)/2. At step 506, it is determined whether the angle of rotation is 90° or 270°. If the angle of rotation is 90°, control goes to step 508. Otherwise, control goes to step 510.
  • a FOR loop is initialized from 0 to the ROW_CNT variable and, at step 410, a ROWJNDEX variable is initialized and set equal to a pixel in a row.
  • the ROW_INDEX variable can go up to PHYSICAL SCREEN HEIGHT - (a pixel in a row +1).
  • the step 510 is used for traversing through each of the plurality of pixels of each of the plurality of lines of the source image.
  • the control goes to a step 516, at step 516, a variable X, Yl, Y2 are initialized.
  • the coordinates (X, Yl) indicates a start position of a line of the plurality of lines of the source image 102, when the source image is rotated at the angle of 90°.
  • the coordinates (X, Y2) indicates an end position of the line of the plurality of lines of the source image, when the image is rotated at the angle of 90°.
  • X is set equal to the pixel in a row.
  • Yl is set equal to PHYSIC AL SCREEN WIDTH - 1, Y2 is set equal to 0.
  • the NEW_SRC variable is initialized and set equal to a sum of the MEM PTR and (product of the pixel in row, the PHYSICAL SCREENJWIDTH variable and the PIXEL SIZE variable).
  • a FOR loop is initialized from 0 to ROW CNT variable.
  • the ROW INDEX variable is initialized and set equal to a pixel in a row.
  • the ROW INDEX variable can go up to PHYSICAL SCREEN HEIGHT - (a pixel in a row +1).
  • the step 514 is used for traversing through each of the plurality of pixels of each o the plurality of lines of the image 102.
  • the control goes to a step 518, at step 518, a variable X, Yl, Y2 are initialized.
  • the coordinates (XI, Y) indicates a start position of a line of the plurality of lines of the source image, when the source image is rotated at the angle of 270°.
  • the coordinates (X, Y2) indicates an end position of the line of the plurality of lines of the source image, when the image is rotated at the angle of 270°.
  • X is set equal to PHYSICAL SCREEN HEIGHT - the pixel in a row - 1
  • Yl is set equal to 0
  • Y2 is set equal to the PHYSIC AL SCREEN WIDTH - 1.
  • the NEW_SRC variable is initialized and set equal to a sum of the MEM PTR and (product of the pixel in row, the PHYSICAL SCREEN WIDTH variable and the PIXEL SIZE variable).
  • the step 518 is performed for rotating the source image at the angle of 270°. When rotated at the angle of 270 °, the source image is oriented as shown with reference to display image 608.
  • step 520 control goes to step 520 and the ADDR variable is initialized and set equal to the SCR PTR variable.
  • the ADDR variable will be set equal to the sum of a previous value in the ADDR variable and a product of PIXEL SIZE and (sum of X, product of Yl and the LOGI C AL_S CREEN WIDTH variable).
  • a LINE_LEN variable is initialized and set equal to a product of DST LINELEN variable and the PIXEL SIZE variable.
  • step 526 When the control flows out of while loop in step 526, then control goes to step 528 and the method is terminated. If, at step 522, it is determined that Y1>Y2, then control goes to step 524. At step 524 a WHILE loop is executed. While Yl is greater than or equal to Y2, the value of Yl is decremented, when the said condition is true, then the value stored at the ADDR + 2 variable is assigned a value stored at a the NEW_SCR +2 variable. Further the value stored at the ADDR + 1 variable is assigned a value stored at the NEW SCR + 1 variable, the value stored at the ADDR variable is assigned a value stored at the NEW SCR variable.
  • variable ADDR is set equal to a difference of a previous memory location pointed by the ADDR variable and the LINEJLEN variable
  • Steps 520, 522, 524 and 526 are used for transferring each of the plurality of lines (rows) of the image to the display memory.
  • Each of the plurality of lines is transferred by transferring each of the plurality of pixels of each of the plurality of lines. Once each of the plurality of lines is transferred to the display device, then the image rotated at a particular angle is displayed at the display device, using the plurality of variables described above.
  • a method for transferring a source image from a source memory to a display memory of a display device in accordance with a selected or designated change in orientation.
  • the method may be implemented in a way that does not use predefined increment values for performing transferring image lines from the source to the display memory. Rather, the source image is transferred to the display memory in a random order based on a random number list that guides the image-line transfer.
  • the random order is designated using a random number list.
  • driver program code is substantially reduced which leads to a corresponding reduction in the time and complexity of implementing the driver program code.
  • the driver program code may change the orientation of the image in a plurality of modes, wherein different program code does not have to be used to implemented the orientation change in each mode. This advantageously leads to decreased usage of memory space in the display memory.
  • this image line may be the last image line transferred from the source memory to the display memory. This may be accomplished, for example, by determining the identity of the image line corresponding to the reference point and then skipping the random number corresponding to this image line. The image line in the source image corresponding to this skipped number may then be the last line transferred into the display memory.
  • all pixels in each line are preferably transferred before pixels in any subsequent line are transferred to the display memory.
  • the lines in the source image may be transferred to the display memory by controlling pointers of source and display memories. One or both of these pointers may be controlled based on different incremental values, which are used to control movement of the pointers when transferring different lines of the source image from the source memory to the display memory.
  • inventions described herein may implemented in the form of computer-implemented processes or software product.
  • a product may include computer program code containing instructions embodied in, for example, one or more floppy disks, CD-ROMs, hard drives, flash memories, network downloads, or any other computer-readable storage medium or computerized means of conveyance.
  • computer program code for example, stored in a storage medium, loaded into, and/or executed by a computer, or transmitted over some transmission medium, such as over electrical wiring or cabling, through fiber optics, or via electromagnetic radiation may be used.
  • the computer program code may be loaded into and executed by a computer, the computer becomes an apparatus for practicing the embodiments described herein.
  • the computer program code segments configure the microprocessor to create specific logic circuits.
  • FIG. 10 shows a source image 1 102 and a display image 1 104.
  • the source image is stored in a source memory and comprises a plurality of lines, e.g., lines 1106, 1 108, and 1 110. Each line comprises a plurality of pixels.
  • the image lines in the source memory are transferred to a display memory based on specified angle of rotation. The image in the display memory is then output to a display device.
  • Examples of the display device include but are not limited to a Liquid Crystal Display (LCD), a plasma display panel (PDF), electroluminescent display (organic or inorganic), Thin Film Transistor (TFT) LCD, a monitor, a laptop screen and like.
  • the image 1 102 can be rotated at any desired angle, for example, 0°, 90°, 180°, or 270°. When rotated at a 270° angle, the orientation of the source image is converted into the orientation of display image 1 104.
  • Each pixel in each of the plurality of lines of the source image is transferred sequentially to the display memory. For example, initially a line 1106 is transferred to the display memory and then the line 1 108 is transferred and thereafter the line 1 110 is transferred to the display memory.
  • Each of the plurality of lines is transferred pixel by pixel, for example if each of the plurality of lines comprises 10 pixels. Then, each of the 10 pixels is transferred one by one to the display memory.
  • a start position of each of the plurality of lines in the display device is determined by an angle of the rotation of the image 1 102.
  • a line 1 116 corresponds to the line 1106 and the start position of the line 1 1 16 is decided according to the angle of rotation
  • a line 1118 corresponds to the line 1 108 and the start position of the line 11 18 is determined according to the angle of rotation
  • a line 1 120 corresponds to the line 1 10 and the start position of the line 1120 is determined according to the angle of rotation.
  • FIG. 11 shows steps in included in a method for changing the orientation of a source image for display on a display device.
  • the source image is divided into a grid of a plurality of rows (the plurality of lines) and a plurality of columns, and each of the plurality of rows comprises a plurality of pixels.
  • a pixel of the plurality of pixels is a basic unit of programmable color in the image.
  • a size of the pixel of the plurality of pixels depends on a resolution of the display device. If the resolution of the display device is set to a maximum value, then the size of a pixel is equal to a physical size of a dot pitch of the display device. If, however, the resolution is set to a value less than the maximum value, then the size of the pixel will be larger than the physical size of the dot pitch or the pixel will use more than one dot on the display device.
  • each of the plurality of lines of the image to be displayed on the display device is selected sequentially, for example if the source image (e.g., 1102) rotated at the angle of rotation of 270 degree is to be displayed on the display device, then each of the plurality of lines of the image 102 is selected sequentially one by one, i. e. initially the line 1 106 is selected, then the line 1 108 is selected, thereafter the line 1 1 10 is selected and so on each of the plurality of lines of the image is selected.
  • the angle of rotation of the image is determined.
  • the angle of rotation specifies the orientation of the image in the display device.
  • a start position of each of the plurality of lines is determined, the start position in the display device is determined using the angle of rotation. For example initially the start position of the line 1106 is determined and the line 1116 in the rotated image 1104 corresponds to line 1 106 rotated at the angle of 270.
  • the start position of each of the plurality of lines of the image 1102 will determined according to a plurality of variables and the angle of rotation of the image 1102, which will be described in detail in conjunction with FIG. 13 and FIG. 14.
  • each of the plurality of pixels of each of the plurality of lines is transferred to the display memory from the source memory.
  • the plurality of pixels of the line 1 106 is transferred, then each of the plurality of pixels of the line 1108 is transferred, thereafter each of the plurality of pixels of the line 1110 is transferred and so on each of the plurality of pixels of each of the plurality of lines is transferred sequentially.
  • the plurality of variables is updated, for example a screen pointer variable is updated each time a pixel is transferred from the source memory to the display memory.
  • the image 1 102 is displayed on the display device oriented according to the angle of rotation using the plurality of variables. For example the rotated image 1104 will be displayed on the display device when the image 1102 is rotated at the angle of 270 degree. The displaying of the image will be described in detail in conjunction with FIG. 12, FIG. 13 and FIG. 14. The method terminates at step 1216.
  • FIG. 12 is a flow diagram illustrating one ways initialization of the plurality of variables may be performed for displaying the rotated image 1104 on the display device.
  • the plurality of variables to be initialized includes a PIXEL SIZE, a PHYSICAL SCREEN WIDTH, a PHYSICAL JSCREEN HEIGHT, a PHYSICAL BYTE WIDTH, a MEM PTR, a SCR PTR, a LOGIC AL SCREEN WIDTH and a LOGICAL SCREEN HEIGHT.
  • the method initiates at step 1302, when a request for displaying the image 1 102 on the display screen is received by a driver program code.
  • the request for displaying the image 1102 on the display screen can be send by an application program, an operating system, or a user defined program interface.
  • the request for displaying the image 1102 in rotated format is processed by the driver program code.
  • a size of each of the plurality of pixels of each of the plurality of lines of the image 1102 is determined and the size of each of the plurality of pixels is stored in the PIXEL SIZE variable.
  • the number of bits used to represent each pixel determines how many colors or shades of gray can be displayed. For example, in 8-bit color mode, 8 bits are assigned for each pixel of the plurality of pixels, thereby making it possible to display up to 8th power of 2 (256) different colors or shades of gray of the image 1102.
  • the size of the pixel can be selected by a user of the display device, the application program, or the operating system.
  • the size of each of the plurality of pixels can be set to one of a 1 byte per pixel (Palette Mode), 2 bytes per pixel ( High color Mode), 3 bytes per pixel ( True color Packaged Mode), or 4 bytes per pixel (True color aligned Mode).
  • the PHYSICAL SCREEN WIDTH variable is set equal to width in pixels of the image 1 102 in the source memory, for example if each line comprises 10 pixels, then the PHYSICAL SCREEN WIDTH variable is set to 10.
  • the PHYSICAL SCREEN HEIGHT variable is set equal to a height in pixels of the image 1 102 in the source memory, for example if each column of the image 1 102 comprises 10 pixels, then the PHYSICAL SCREEN HEIGHT variable is set to 10.
  • the PHYSICAL BYTE WIDTH variable is set equal to a product of the PHYSICAL SCREEN WIDTH variable and the PLXEL SIZE variable, for example if the PIXEL SIZE variable is set equal to 1 byte and the PHYSICAL SCREEN WIDTH variable is set to 10, then the PHYSICAL BYTE WIDTH variable will be equal to 10 bytes.
  • the MEM PTR variable is set equal to a base address to a bitmap in the source memory and the SCR PTR variable (the screen pointer variable) is set equal to a base address of the display memory of the display device.
  • step 1308 it is determined whether the angle of rotation of the image 1102 is equal to 0 degree or 90 degree or 180 degree or 270 degree. If the angle of rotation of the image 1102 is one of a 0 degree or a 180 degree, then control goes to step 1310 and at step 1310, the LOGICAL SCREEN WiDTH variable is set equal to the PHYSICAL SCREEN WIDTH variable and the LOGICAL SCREEN HEIGHT variable is set equal to the PHYSICAL SCREEN HEIGHT variable. The control goes to 1314 after the step 1310.
  • step 1308 if the angle of rotation of the image 1102 is one of a 90 degree or a 270 degree, then the control goes to step 1312 and at step 1312, the LOG I C A L SCRE EN W 1 DTH variable is set equal to the PH YS CIAL S CREEN HEIGHT variable and the LOGICAL SCREEN HEIGHT variable is set equal to the PH YS IC AL S CREEN WIDTH variable.
  • the control goes to 1314 after the step 1312. At 1314, it is determined whether the angle of the rotation of the image 1102 is 0 degree, 90 degree, 180 degree or 270 degree.
  • step 1402 If the angle of the rotation of the image is 0 degree or 180 degree, then the control goes to a step 1402, in a flow diagram which will be described in conjunction with FIG. 13. If the angle of the rotation of the image is 90 degree or 270 degree, then the control goes to a step 1502, in a flow diagram which will be described in conjunction with FIG. 14.
  • FIG. 13A and 13B are flow diagrams illustrating an algorithm for rotation of the image 1102 at the angle of a 0 degree or the angle of 180 degree. If the angle of the rotation of the image 1 102 is 0 degree or 180 degree, then control goes to step 1402. At step 1402, it is determined whether the angle of rotation is 0 degree or 180 degree. If the angle of rotation of the image 1102 is 0 degree, then control goes to step 1404, otherwise if the angle of rotation of the image is 180 degree, then control goes to step 1406.
  • step 1404 for loop is initialized for each of the plurality of pixels in a line (a pixel in row) of the plurality of lines, and at step 408, variables XI , X2, Y are initialized.
  • the coordinates (XI, Y) indicates a start position of a line of the plurality of lines of the image 1 102, when the image 1 102 is rotated at the angle of 0 degree.
  • the coordinates (X2, Y) indicates an end position of the line of the plurality of lines of the image 1102, when the image is rotated at the angle of 0 degree.
  • XI is set equal to 0
  • X2 is set equal to PHYSICAL SCREEN WIDTH - 1
  • Y is set equal to a pixel in row.
  • a NEW_SRC variable is initialized and set equal to a sum of the MEM PTR and (product of the pixel in row, the PH YS IC AL S CREEN WIDTH variable and the PIXEL_SIZE variable).
  • step 1406 for loop is initialized for each of the plurality o pixels in a line (a pixel in row) of the plurality of lines, and at step 1410, variables XI, X2, Y are initialized.
  • the coordinates (XI , Y) indicates a start position of a line of the plurality of lines of the image 1 102, when the image 1 102 is rotated at the angle of 180 degree.
  • the coordinates (X2, Y) indicates an end position of the line of the plurality of lines of the image 1 102, when the image is rotated at the angle of 180 degree.
  • XI is set equal to PHYSICAL SCREEN WIDTH - 1
  • X2 is set equal to
  • Y is set equal to the P II Y S I C
  • the NEW SRC variable is initialized and set equal to a sum of the MEM PTR and (product of the pixel in row, the PHYSICAL SCREEN WIDTH variable and the PIXEL SIZE variable).
  • the step 1410 is performed for rotating the image 1 102 at the angle of 180 degree.
  • step 1408 and the step 1410 the control goes to step 1412 and an ADDR variable is initialized and set equal to the SCR PTR variable.
  • the ADDR variable will be set equal to the sum of a previous value in the ADDR variable and a product of the PIXEL SIZE variable and (sum of XI, product of Y and LOG I C A L SCREEN WI DTH variable).
  • XI is less than X2
  • step 1416 When the control flows out of while loop in the step 1416, then the control goes to the step 1420 and the method is terminated. If at step 1414, it is determined that X1>X2, then control goes to step 1418. At step 1418 a while loop is executed. While XI is greater than or equal to X2, the value of XI is decremented, when the said condition is true, then the value stored at the ADDR + 2 variable is assigned a value stored at a the NEW_SCR +2 variable. Further the value stored at the ADDR + 1 variable is assigned a value stored at the NEW SCR + 1 variable and the value stored at the ADDR variable is assigned a value stored at the NEW SCR variable.
  • variable ADDR is set equal to a difference of a previous memory location pointed by the ADDR variable and the PIXELJSIZE variable.
  • the line 1106 is transferred to the display memory, and if each of the plurality of lines comprises 10 pixels, then the ADDR variable will be incremented 10 times, since the X2 variable will be set equal to PHYSICAL SCREEN WIDTH -1 , the PH YS I C AL SCREEN W I DTH variable is set equal to the width in pixels of the image, the width in pixels of the image is equal to number of pixels in each of the plurality of lines.
  • FIG. 14A and 14B are flow diagrams illustrating an algorithm for rotation of the image 1102 at the angle of a 90 degree or the angle of 270 degree. If the angle of the rotation of the image 1102 is 90 degree or 270 degree, then control goes to step 1502. At step 1502, it is determined whether the angle of rotation of the image 1102 is 90 degree or 270 degree. If the angle of rotation of the image 1 102 is 90 degree, then control goes to step 1504, otherwise if the angle of rotation of the image is 270 degree, then control goes to step 1506.
  • step 1504 for loop is initialized for each of the plurality of pixels in a line (a pixel in row) of the plurality of lines, and at step 1508, variables X, Yl, Y2 are initialized.
  • the coordinates (X, Yl) indicates a start position of a line of the plurality of lines of the image 1102 to be transferred to the display memory, when the image 1102 is rotated at the angle of rotation of 90 degree.
  • the coordinates (X, Y2) indicates an end position of the line of the plurality of lines of the image 1102, when the image is rotated at the angle of rotation of 90 degree.
  • X is set equal to the pixel in a row.
  • Yl is set equal to PHYS IC AL S CREEN WIDTH - 1, Y2 is set equal to 0.
  • the NEW_SRC variable is initialized and set equal to a sum of the MEM_PTR and (product of the pixel in row, the PHYSICAL SCREEN WIDTH variable and the PIXEL SIZE variable).
  • step 1506 determines that the angle of rotation of the image 1102 is 270 degree. If at step 1502, it is determined that the angle of rotation of the image 1102 is 270 degree, then at step 1506, for loop is initialized for each of the plurality of pixels in a line (a pixel in row) of the plurality of lines, and at step 1510, variables X, Yl, Y2 are initialized.
  • the coordinates (X, Yl) indicates a start position of the line of the plurality of lines of the image 1102, when the image 1102 is rotated at the angle of 270 degree.
  • the coordinates (X, Y2) indicates an end position of the line of the plurality of lines of the image 1102, when the image is rotated at the angle of 270 degree.
  • X is set equal to PHYSICAL SCREEN HEIGHT - the pixel in a row - 1
  • Yl is set equal to 0
  • Y2 is set equal to the PHYSICAL SCREEN WIDTH - 1 .
  • the NEW SRC variable is initialized and set equal to a sum of the MEM PTR and (product of the pixel in row, the PHYSICAL SCREEN WIDTH variable and the PIXEL SIZE variable).
  • the step 1510 is performed for rotating the image 1102 at the angle of rotation of 270 degree.
  • the image 1 102 when rotated at the angle of rotation of 270 degree, then the image 1102 is oriented as shown with reference to the rotated image 1104.
  • step 1508 and the step 1510 the control goes to step 1512 and the ADDR variable is initialized and set equal to the SCR PTR variable.
  • the ADDR variable will be set equal to the sum of a previous value in the ADDR variable and a product of PIXEL SIZE and (sum of X, product of Yl and the LOGICAL SCREEN WIDTH variable).
  • a LI E LEN variable is initialized and set equal to a product of DST LINELEN variable and the PIXEL_SIZE variable.
  • step 1518 When the control flows out of while loop in the step 1518, then the control goes to step 1520 and the method is terminated. If at step 1514, it is determined that Y1>Y2, then control goes to step 1516. At step 1516 a while loop is executed. While Yl is greater than or equal to Y2, the value of Yl is decremented, when the said condition is true, then the value stored at the ADDR + 2 variable is assigned a value stored at the NEW SCR +2 variable. Further the value stored at the ADDR + 1 variable is assigned a value stored at the NEW SCR + 1 variable, the value stored at the ADDR variable is assigned a value stored at the NEW_SCR variable.
  • the variable ADDR is set equal to a difference of a previous memory location pointed by the ADDR variable and the LINE LEN variable.
  • the control flows out of the while loop in step 1516 then the method is terminated at step 1520.
  • the step 1512, 1514, 1516 and 1518 are used for transferring each of the plurality of lines (rows) of the image 1102 sequentially pixel by pixel to the display memory from the source memory.
  • Each of the plurality of lines is transferred by transferring each of the plurality of pixels of each of the plurality of lines.
  • the image rotated at a particular angle is displayed at the display device, by updating the plurality of variables as described above.
  • a method and a computer program product for transferring the image from the source memory to the display memory of the display device do not use predefined increment values and transfers each of the plurality of lines sequentially to the display memory. Each of the plurality of lines is transferred pixel by pixel to the display memory.
  • the driver program code changes the orientation of the image in a plurality of modes, and does way with a need of having a different program code for each of the plurality of modes, therefore leading to a decreased usage of memory space in the display memory.
  • One or more of the foregoing embodiments may be implemented in the form of a computer-implemented process and apparatus.
  • the embodiments described herein may also be implemented in computer program code containing instructions embodied in tangible media, such as floppy diskettes, CD-ROMs, hard drives, or any other computer-readable storage medium, wherein, when the computer program code is loaded into and executed by a computer, the computer becomes an apparatus for practicing the embodiments described herein.
  • the embodiments can also be implemented in the form of computer program code, for example, whether stored in a storage medium, loaded into and/or executed by a computer, or transmitted over some transmission medium, such as over electrical wiring or cabling, through fiber optics, or via electromagnetic radiation, wherein, when the computer program code is loaded into and executed by a computer, the computer becomes an apparatus for practicing the embodiments herein.
  • the computer program code segments configure the microprocessor to create specific logic circuits.

Abstract

A method for controlling display of an image includes generating a list of non-sequential random numbers, each number corresponding to a respective one of a plurality of lines in a source image. The lines in the source image are then transferred in non-sequential order from a first memory to a second memory based on the random numbers in the list and orientation change information. The resulting image in the second memory is then displayed in the desired orientation.

Description

SYSTEM AND METHOD FOR DISPLAYING A ROTATED
IMAGE IN A DISPLAY DEVICE
[0001] This application claim priority to Provisional Application Nos. 60/969,825 filed September 4, 2007, 61/012,832 filed December 11, 2007 and 61/043,490 filed April 9, 2008 whose entire disclosures are incorporated herein by reference.
FIELD
[0002] One or more embodiments described herein relate to the processing of images for presentation on a display device.
BACKGROUND
[0003] When viewing an image on a display device, it may be desirable to rotate or change the orientation of the image to obtain a more pleasing viewing experience or for a variety of other reasons. While systems have been developed to rotate an image on a display, these systems have significant drawbacks. For example, different code is used to perform different degrees of image rotation. This substantially increases the cost and complexity of the application software for driving the display. Also, many systems have prolonged processing times and other inefficiencies which make them undesirable, especially from the standpoint of the user.
BRIEF DESCRIPTION OF THE DRAWINGS
[0004] The advantages and features of the embodiments described herein will become better understood with reference to the following detailed description and claims taken in conjunction with the accompanying drawings, wherein like elements are identified with like symbols, and in which:
[0005] FIG. 1 is a diagram showing one way in which the orientation of a source image may be changed to produce a display image.
[0006] FIG 2. is a diagram showing one example of a system for changing the orientation of a source image to produce a display image.
[0007] FIG. 3 is a flow diagram showing steps included in one embodiment of a method for changing the orientation of a source image to produce a display image.
[0008] FIG. 4 is a diagram showing an arrangement of image lines in a source image whose orientation is to be changed.
[0009] FIG. 5 is a flow diagram showing steps included in one embodiment of a method for displaying an image in a display device.
[0010] FIG. 6 is a flow diagram showing one way in which a plurality of variables may be initialized for rotating a source image.
[001 1] FIG. 7A-7C are flow diagrams showing steps included in an algorithm for rotating the source image at an angle of 0° or 180 °.
[0012] FIG. 8A-8C are flow diagrams showing steps included for rotating the source image at an angle of 90 ° or 270 °.
[0013] FIG. 9 shows another way in which the orientation of a source image may be changed to produce a display image.
[0014] FIG. 10 is a diagram showing another image and rotated image.
[0015] FIG. 11 is a flow diagram showing steps included in another embodiment of a method for displaying an image in a display device. [0016] FIG. 12 is a flow diagram one way in which a plurality of variables for displaying a rotated image may be initialized.
[0017] FIGS. 13A-13B are flow diagrams showing steps included in an algorithm for rotating a source image at an angle of 0° or 180 °.
[0018] FIGS. 14A-14B are flow diagrams showing steps included in an algorithm for rotating a source image at angles of 90° or 270°.
DETAILED DESCRIPTION
[0019] FIG. 1 is a diagram showing a source image 102 and a rotated image 108. The source image may include text, graphics, video, or other information capable of being viewed on a display device, which, for example, may be a television or monitor, the latter of which may be provided alone or within a processing device such as a notebook or desktop computer. More specific examples of the display device include but are not limited to a Liquid Crystal Display (LCD), Thin Film Transistor (TFT) LCD, a plasma display panel (PDP), and an electroluminescent display (organic or inorganic).
[0020] Under normal operating conditions, the source image is displayed in a predetermined orientation. However, under certain circumstances, it may be desirable to change the orientation of the source image. For example, the length of a document image may be greater than its width and the vertical dimension of the display device. As a result, only a portion of the document may be viewed on a screen at any given time. Because the horizontal dimension of most display devices is greater than its vertical dimension, changing the orientation of the source image, for example, by rotating it 90°, prior to display, will allow a person to view all or a greater portion of the information contained in image.
[0021] One or more embodiments described herein provide a method for changing the orientation of a source image. Referring to FIG. 1 , this may be accomplished by translating the position of pixels in source image 102 to form rotated image 108. (The rotated image may be referred to as a display image since this is the image that is output for viewing on the display device.)
[0022] As shown in FIG. 2, the source image may be stored in a source memory 10 or other storage device. The orientation of the image may be changed by translating the pixels in the source image to different locations in a display memory 20. The source and display memories may correspond to different sections of a common memory unit or, for example, may be located on different integrated circuit chips, in order to perform the orientation change, a processor 30 may be included to control the translation of pixels from the source memory to the display memory. The image in the display memory is then output for viewing on display device 40.
[0023] Referring again to FIG. 1, the source image may have multiple lines that are divided into a first section 104 and a second section 106 by a reference point. (For illustrative purposes, the reference point is shown by dotted line 105). The reference point may coincide with one of the lines in the source image or may be located between two image lines. In accordance with one embodiment, the location of the reference point is set so that each section includes the same number of image lines. In other embodiments, the sections may include different numbers of lines.
[0024] For illustrative purposes, source image 102 is shown as including ten lines disposed within a border 101 and the reference point is between the fifth and sixth lines 107 and 108. Accordingly, the first and second sections each include five image lines. Dividing the source image in this manner produces five pairs of image lines, where each line in the first section has a mirrored counterpart in the second section. For example, line 1 10 in the first section corresponds to line 1 12 in the second section. [0025] In order to generate the display image, the source image may be rotated at any desired angle including but not limited to 90°, 180°, 270°, or 360°. For example, rotation of the source image by an angle of 270 ° may produce display image 108. The image lines in the source image are translated in a random manner to form the display image. The manner in which the image lines are randomly translated from the source memory to the display memory is described in greater detail below.
[0026] Referring to FIG. 3, in accordance with one embodiment an initial step includes determining the number of lines in the source image. (Block 120). This determination may be made based on a predetermined or stored setting that indicates, for example, a maximum number of lines in the source image or a maximum number of lines allocated in the display device for displaying any given image.
[0027] A plurality of random numbers is then generated in non-sequential order equal in number to the number of lines in the source image. (Block 130). For example, the source image shown in FIG. 1 has ten image lines. Thus, ten numbers may be randomly generated in the following non-sequential order: 2 0 4 1 3 6 8 5 9 7. (In this example, the random numbers range from 0 to N-1, where N equals the total number of lines in the source image.)
[0028] Preferably, the non-sequential order is generated so that different pairs of adjacent random numbers in the list are separated by different incremental values. Thus, for example, adjacent random numbers 2 and 0 are separated by an incremental value of 2, adjacent random numbers 0 and 4 are separated by an incremental value of 4, and so on. These different incremental values may be used as a basis for controlling memory pointers of the source and display memories to effect a random, non-sequential transfer of image lines from the source memory to the display memory in accordance with the embodiments described herein. The random numbers in the list may be generated using known techniques.
[0029] Next, the first-generated random number is selected and set to correspond to an image line of the same number in the source image. (Block 140). As shown in FIG. 4, the image lines in the source image are preferably numbered from 0 to N-l in sequential order.
[0030] After the image line corresponding to the first-generated random number is selected, this image line is transferred from the source memory to the display memory based on the change in orientation selected. (Block 150). For example, for a 270° rotation, the pixels in line 110 of the source image are transferred to memory locations in the display memory that correspond to the location of line 110 in display image 108.
[0031] After this transfer takes place, the mirror counterpart of the transferred line in the source image is determined. (Block 160). Thus, for example, as shown in FIGS. 1 and 4, if the first- generated random number is 2 (corresponding to image line 110), the mirror counterpart of the image line corresponding to random number 2 is line number 7 (corresponding to image line 112) relative to reference point 105.
[0032] Once this determination is made, the image line in the source memory that corresponds to the mirror counterpart (image line 112) is transferred from the source memory to the display memory based on the selected orientation. (Block 170). Thus, the pixels in line 112 of source image 102 are transferred to memory locations in the display memory that correspond to the location of line 112 shown in display image 108 in FIG. 1.
[0033] The next number in the list of random numbers is then selected. (Block 180). In the listed generated above, this number is 0. Steps analogous to those in Blocks 150, 160, 170 and 180 are then repeated until the remaining lines in the source memory are transferred into the display memory. (If at any time the next random number to be selected in the list corresponds to a mirror counterpart line that has already been transferred, that number may be skipped in favor of selecting one or more additional numbers from the list in sequential order, until a number is reached that corresponds to an image line in the source memory that has not yet been transferred.) Once all the lines have been transferred, the now-rotated image is displayed on the display device in accordance with the selected change in orientation. (Block 190).
[0034] Thus, the image lines in the source image are transferred from the source memory to the display memory in random non-sequential order. The image in the display memory is then shown on the display device in accordance with the locations of the image lines in the display memory. A one-to-one correspondence may exist between the pixel locations in the display memory and the pixel locations in the image displayed on the screen of the display device.
[0035] The transfer of pixels in each image line of the source image may be accomplished in various ways. For example, the pixels in each line may be transferred sequentially in accordance with the selected orientation. Alternatively, the pixels in each line may be transferred randomly, for example, in accordance with a random number list analogous to the one generated for transferring the source image lines. Other techniques for randomly or sequentially transferring the pixels in each image line may also be used.
[0036] In accordance with another embodiment, a plurality of random numbers is generated in non-sequential order. However, unlike the embodiment in FIG. 3, the number of random numbers is equal to only a portion (e.g., half) of the number of lines in the source image. Thus, for example, for the source image shown in FIG. 1 , five numbers may be randomly generated in the following non-sequential order: 2 0 4 1 3. Images lines in the source image, and their mirror image lines, are then selected for transfer based on this order. [0037] FIG. 5 shows steps for changing the orientation of a source image for display on a display device in accordance with another embodiment. The method is initiated at step 202. At step 204, a plurality of random numbers is generated and each of the plurality of random numbers corresponds to a respective one of the lines in source image 602 shown in FIG. 9.
[0038] According to this exemplary embodiment, the source image comprises thirteen lines and therefore thirteen random numbers are generated. Each of the thirteen random numbers corresponds to a respective one of the thirteen lines in source image 602. Each of the plurality of lines will be assigned a number. The random numbers are preferably generated from 0 to N-l . Accordingly, line 609 in FIG. 9 corresponds to number 2, line 611 corresponds to number 3, and so on.
[0039] At step 206, a line corresponding to one of the random numbers and its mirror line are selected. The mirror line may be determined relative to reference point 605. For example, if number 3 is generated as a first random number of the plurality of random numbers, then line 611 and mirror line 612 are selected.
[0040] At step 208, the angle of rotation of the image is determined. This angle corresponds to the orientation of the image selected or otherwise designated for display in the display device. This angle may be based on information input by a user (e.g., a user selection or setting) or may be automatically determined, for example, as a result of a user rotating the screen of the display device. In this latter case, the display device may have a rotatable screen and a detector may be used to detect a rotated position of the screen as the angle of rotation. Once detected, the source image may be translated in accordance with the embodiments described herein and then output to the physically rotated display screen. [0041] At step 210, a start position of each of the plurality of lines selected is determined. This start position may correspond to and control a pointer in the source memory. The start position in the display device and thus the pointer of the display memory may be determined using the angle of rotation. For example, if the source image is to be rotated by 270°, the start position of the display image (which is the source image rotated at the angle of 270 °) will be determined according to a plurality of variables, which, for example, may be the ones described for the embodiments in FIG. 7A-7C and FIG. 8A-8C discussed in greater detail below.
[0042] At step 212, each of the pixels in line of the source image is transferred from the source memory to the display memory. For example, if the random number 3 is selected, the pixels in line 610 are transferred to locations in the display memory that correspond to the designated angle of rotation. In accordance with one implementation, the pixels in each line of the source image are transferred to the display memory sequentially on a per image-line basis.
[0043] Next, the pixels in line 612 are transferred to the display memory. To perform the transfer of pixels and lines from the source memory to the display memory, at step 214, one or more variables may be updated. For example, a screen pointer variable may be updated each time a pixel is transferred from the source memory to the display memory. A corresponding update may be performed for a source memory pointer. At step 216, the resulting rotated image is displayed based on the plurality of variables that were updated. The method terminates at step 218.
[0044] FIG. 6 is a flow diagram showing steps that may included in one embodiment for initializing variables to be used in rotating the source image. The variables to be initialized include a PIXEL_SIZE, a PH YS IC A L SCR EEN_ WIDTH , a PHYSICAL SCREEN HEIGHT, a PHYSICAL BYTE WIDTH, a MEM PTR, a SCR PTR, a LOGICAL SCREEN WIDTH and a LOGICAL SCREEN HEIGHT.
[0045] The method initiates at step 302, when a request for displaying the image 102 on the display screen is received by a driver program code. The request for displaying the image 102 on the display screen can be sent by an application program, an operating system, or a user defined program interface. The request for displaying the image 102 in rotated format is processed by the driver program code.
[0046] At step 304, a size of each of the plurality of pixels of each of the plurality of lines of the source image may be determined and the size of each of the plurality of pixels is stored in the PIXEL_SIZE variable. A pixel is a single point in the source image. The image is divided into a plurality of pixels arranged in rows (or the plurality of lines) and columns.
[0047] The number of bits used to represent each pixel may be used as a basis for determining how many colors or shades of gray can be displayed. For example, in 8-bit color mode, 8 bits are assigned for each pixel, thereby making it possible to display 28 = 256 different colors or shades of gray of the source image.
[0048] The size of each pixel can be selected by a user of the display screen, the application program, or the operation system. For example, the size of each pixel can be set to 1 byte per pixel (Palette Mode), 2 bytes per pixel ( High color Mode), 3 bytes per pixel ( True color Packaged Mode), or 4 bytes per pixel (True color aligned Mode). At step 306, the PHYSICAL SCREEN WIDTH variable is set equal to width in pixels of the source image in the source memory. For example, if each line comprises 10 pixels, then the PHYSICAL SCREEN WIDTH variable is set to 10. [0049] Further, at step 306, the PHYSICAL SCREEN HEIGHT variable is set equal to a height in pixels of the source image in the source memory. For example, if each column of the source image comprises 10 pixels, the PHYSICAL SCREEN H EIGHT variable is set to 10. Furthermore, the P H Y S I C AL B YTE WIDTH variable is set equal to a product of the PHYSICAL SCREEN WIDTH variable and the PIXEL SIZE variable, for example if the PIXEL SIZE variable is set equal to 1 byte and the PHYSICAL SCREEN WIDTH variable is set to 10, the PHYSICAL BYTE WIDTH variable will be equal to 10 bytes. Also, at step 306, the ME JPTR variable is set equal to a base address to a bitmap in the source memory and the SCR PTR variable (the screen pointer variable) is set equal to a base address of the display memory.
[0050] At step 308, it is determined whether the angle of rotation of the source image is equal to 0° or 180°. If the angle of rotation of the source image is 0° o 180°, then, at step 310, the LOGICAL SCREEN WIDTH variable is set equal to the PHYSICAL SCREEN WIDTH variable and the LOGICAL SCREEN H EIGHT variable is set equal to the PH YS IC AL S CREEN _HEIGHT variable. Control proceeds to step 314 after step 310.
[0051] At step 308, if the angle of rotation of the source image is not 0° or 180°, then, at step 312, the LOGIC AL SCREEN WIDTH variable is set equal to the PHYSCIAL SCREEN H EIGHT variable and the LOGIC AL S CREEN HEIGHT variable is set equal to the PH YS IC AL S CREEN WIDTH variable. Control goes to 314 after the step 312.
[0052] At 314, a determination is made as to whether the angle of the rotation of the source image is 0°, 90°, 180°, or 270°. If the angle of the rotation is 0° or 180°, control goes to a step 402, in a flow diagram which will be described in conjunction with FIGS. 7A-7C. If the angle of the rotation of the image is 90° or 270°, then control goes to a step 502 described in FIG. 5, in a flow diagram which will be described in conjunction with FIGS. 8A-8C.
[0053] FIGS. 7A-7C are flow diagrams showing steps included in an algorithm for rotating source image 602 at an angle of 0° or 180°. If the rotation angle is 0° or 180°, control goes to step 402. At step 402, a ROW RANDOM LIST array is initialized. This array includes integers from 0 to (PHYSICAL SCREEN HEIGHT - 1). For example, if the PHYSICAL SCREEN HEIGHT variable is equal to 10, the ROW RANDOM LIST array will comprise numbers from 0 to 9.
[0054] At step 404, a plurality of random numbers is generated equal in number to the plurality of lines (rows) in the source image. A count of the plurality of random numbers is equal to the PHYSCIAL SCREEN HEIGHT. Also, at step 404, a ROW CNT variable is initialized. The ROW CNT variable is set equal to (PHYSICAL_SCREEN_HEIGHT)/2.
[0055] At step 406, it is determined whether the angle of rotation of the figure is 0° or 180°. If the angle of rotation is 0°, control goes to step 408. Otherwise, control goes to step 412.
[0056] If, the angle of rotation is 0°, then, at step 408, a FOR loop is initialized from 0 to the ROW CNT variable, and at step 410 a ROWJNDEX variable is initialized and set equal to a pixel in a row. The ROWJNDEX variable can go up to PHYSICAL SCREEN HEIGHT - (a pixel in a row +1). Step 410 may be used for traversing through each of the plurality of pixels of each of the plurality of lines of the source image. Control then goes to a step 416 for initializing variables XI, X2, and Y. Coordinates (XI, Y) indicate a start position of a line of the plurality of lines of the source image, when the source image is rotated at the angle of 0°. [0057] Coordinates (X2, Y) indicate an end position of the line of the plurality of lines of the source image, when the image is rotated at the angle of 0°. XI is set equal to 0, X2 is set equal to P H Y S IC A L SCREEN W I DTH - 1, Y is set equal to the pixel in row. In addition, a NEW SRC variable is initialized and set equal to a sum of memory pointer MEM PTR and (product of the pixel in row, the PHYSIC AL SCREEN WIDTH variable and the PIXEL SIZE variable).
[0058] If, at step 406, the angle of rotation of the source image is determined to be 180°, then, at step 412, a FOR loop is initialized from 0 to ROW CNT variable. At step 414, the ROW_INDEX variable is initialized and set equal to a pixel in a row. The ROW INDEX variable can go up to PHYSICAL SCREEN HEIGHT - (a pixel in a row +1). Step 414 may be used for traversing through each of the plurality of pixels of each of the plurality of lines of the source image. Control then goes to a step 418 for initializing variables XI, X2, and Y. Coordinates (XI, Y) indicate a start position of a line of the plurality of lines of the source image 102, when the source image is to be rotated by 1 80".
[0059] The coordinates (X2, Y) indicates an end position of the line of the plurality of lines of the source image, when the image is rotated at the angle of 180°. XI is set equal to PHYSICAL SCREEN WIDTH - 1, X2 is set equal to 0, Y is set equal to the PHYSICAL SCREEN HEIGHT- the pixel in row - 1. Further, a NEW SRC variable is initialized and set equal to a sum of the MEM_PTR and (product of the pixel in row, the PHYSICAL SCREEN WIDTH variable and the PIXEL SIZE variable). The step 418 is performed for rotating the source image at the angle of 180°.
[0060] After steps 416 and 418, control goes to step 420 where an ADDR variable is initialized and set equal to the SCR PTR variable. The ADDR variable is set equal to the sum of a previous value in the ADDR variable and a product of the PIXEL SIZE variable and (sum of X I , product of Y and LOGICAL SCREEN WIDTH variable). Thereafter, at step 422, it is determined whether XI < X2, and if the XI is less than or equal to X2, then the control goes to step 426.
[0061] If the XI is less than X2, this indicates that each of the plurality of pixels are not transferred for a particular line of a plurality of lines to the display memory, therefore at step 426, a while loop is executed. While X1++ is less than or equal to X2, then the value of *ADDR (value stored at the ADDR variable) is incremented by 1 and the value *NEW_SRC (value stored at the NEW SCR variable) is incremented by 1. The said operation is repeated three times.
[0062] When the control flows out of while loop in the step 426, control goes to the step 428 and the method is terminated. If, at step 422, it is determined that X1>X2, control goes to step 424. At step 424 a while loop is executed. While XI is greater than or equal to X2, the value of XI is decremented, when the said condition is true, then the value stored at the ADDR + 2 variable is assigned a value stored at a the NEW_SCR +2 variable. Further the value stored at the ADDR + 1 variable is assigned a value stored at the NEW SCR + 1 variable, the value stored at the ADDR variable is assigned a value stored at the NEW SCR variable.
[0063] Furthermore, the variable ADDR is set equal to a difference of a previous memory location pointed by the ADDR variable and the PIXEL SIZE variable. When, the control flows out of the while loop in step 424, then the method is terminated at step 428. The step 420, 422, 424 and 426 are used for transferring each of the plurality of lines (rows) of the image to the display memory. Each of the plurality of lines is transferred by transferring each of the plurality of pixels of each of the plurality of lines. For example, if the line 109 is to be transferred to the display memory, and each of the plurality of lines comprises 10 pixels, then the ADDR variable will be incremented 10 times, since the X2 variable will be set equal to PHYSICAL SCREEN WIDTH -1, the PHYSIC AL_SCREEN_WIDTH variable is set equal to the width in pixels of the image, the width in pixels of the image is equal to number of pixels in each of the plurality of lines. Once each of the plurality of lines is transferred to the display device, then the image rotated at a particular angle is displayed at the display device, using the plurality of variables described above.
[0064] FIG. 8A-8C are flow diagrams showing steps included in an algorithm for rotating a source image at an angle of 90° or 270°. If the angle of rotation of the source image is 90° or 270°, control goes to step 502. At step 502, the ROW RANDOM LIST array is initialized and comprises integers from 0 to (PHYSICAL SCREEN HEIGHT - 1). For example, if the PHYSICAL SCREEN HEIGHT variable is equal to 10, then the ROW RANDOM LIST array will comprise numbers from 0 to 9. At step 504, the plurality of random numbers is generated and the plurality of random numbers generated is equal to the plurality of lines (rows) in the source image.
[0065] Count of a plurality o random numbers is equal to the PHYSCIAL SCREEN HEIGHT. Further, at step 504, a ROW_CNT variable is initialized. The ROW CNT variable is set equal to (PHY S IC A L SC R E EN H EI GH T)/2. At step 506, it is determined whether the angle of rotation is 90° or 270°. If the angle of rotation is 90°, control goes to step 508. Otherwise, control goes to step 510.
[0066] If the angle of rotation is 90°, then at step 508, a FOR loop is initialized from 0 to the ROW_CNT variable and, at step 410, a ROWJNDEX variable is initialized and set equal to a pixel in a row. The ROW_INDEX variable can go up to PHYSICAL SCREEN HEIGHT - (a pixel in a row +1). The step 510 is used for traversing through each of the plurality of pixels of each of the plurality of lines of the source image. The control goes to a step 516, at step 516, a variable X, Yl, Y2 are initialized. The coordinates (X, Yl) indicates a start position of a line of the plurality of lines of the source image 102, when the source image is rotated at the angle of 90°.
[0067] The coordinates (X, Y2) indicates an end position of the line of the plurality of lines of the source image, when the image is rotated at the angle of 90°. X is set equal to the pixel in a row. Yl is set equal to PHYSIC AL SCREEN WIDTH - 1, Y2 is set equal to 0. Further, the NEW_SRC variable is initialized and set equal to a sum of the MEM PTR and (product of the pixel in row, the PHYSICAL SCREENJWIDTH variable and the PIXEL SIZE variable).
[0068] If, at step 506, it is determined that the angle of rotation of the source image is 270°, then, at step 512, a FOR loop is initialized from 0 to ROW CNT variable. At step 514, the ROW INDEX variable is initialized and set equal to a pixel in a row. The ROW INDEX variable can go up to PHYSICAL SCREEN HEIGHT - (a pixel in a row +1). The step 514 is used for traversing through each of the plurality of pixels of each o the plurality of lines of the image 102. The control goes to a step 518, at step 518, a variable X, Yl, Y2 are initialized. The coordinates (XI, Y) indicates a start position of a line of the plurality of lines of the source image, when the source image is rotated at the angle of 270°.
[0069] The coordinates (X, Y2) indicates an end position of the line of the plurality of lines of the source image, when the image is rotated at the angle of 270°. X is set equal to PHYSICAL SCREEN HEIGHT - the pixel in a row - 1, Yl is set equal to 0, and Y2 is set equal to the PHYSIC AL SCREEN WIDTH - 1. Further, the NEW_SRC variable is initialized and set equal to a sum of the MEM PTR and (product of the pixel in row, the PHYSICAL SCREEN WIDTH variable and the PIXEL SIZE variable). The step 518 is performed for rotating the source image at the angle of 270°. When rotated at the angle of 270 °, the source image is oriented as shown with reference to display image 608.
[0070] After steps 516 and 518, control goes to step 520 and the ADDR variable is initialized and set equal to the SCR PTR variable. The ADDR variable will be set equal to the sum of a previous value in the ADDR variable and a product of PIXEL SIZE and (sum of X, product of Yl and the LOGI C AL_S CREEN WIDTH variable). Further, a LINE_LEN variable is initialized and set equal to a product of DST LINELEN variable and the PIXEL SIZE variable.
[0071] Thereafter, at step 522, it is determined whether Y1<=X2, and if the Yl is less than equal to Y2, then the control goes to step 526. If Yl is less than Y2, this indicates that each of the plurality of pixels are not transferred for a particular line of a plurality of lines to the display memory, therefore at step 526, a while loop is executed. While Y1++ is less than or equal to Y2, then the value of *ADDR (value stored at the ADDR variable) is incremented by 1 and the value *NEW_SRC (value stored at the NEW SCR variable) is incremented by 1. The said operation is repeated thrice. Furthermore, the ADDR variable is set equal to a sum of a previous memory location pointed by the ADDR variable and the LINE_LEN variable.
[0072] When the control flows out of while loop in step 526, then control goes to step 528 and the method is terminated. If, at step 522, it is determined that Y1>Y2, then control goes to step 524. At step 524 a WHILE loop is executed. While Yl is greater than or equal to Y2, the value of Yl is decremented, when the said condition is true, then the value stored at the ADDR + 2 variable is assigned a value stored at a the NEW_SCR +2 variable. Further the value stored at the ADDR + 1 variable is assigned a value stored at the NEW SCR + 1 variable, the value stored at the ADDR variable is assigned a value stored at the NEW SCR variable. [0073] Furthermore, the variable ADDR is set equal to a difference of a previous memory location pointed by the ADDR variable and the LINEJLEN variable When, the control flows out of the while loop in step 524, and then the method is terminated at step 528. Steps 520, 522, 524 and 526 are used for transferring each of the plurality of lines (rows) of the image to the display memory.
[0074] Each of the plurality of lines is transferred by transferring each of the plurality of pixels of each of the plurality of lines. Once each of the plurality of lines is transferred to the display device, then the image rotated at a particular angle is displayed at the display device, using the plurality of variables described above.
[0075] In accordance with one or more embodiments described herein, a method is provided for transferring a source image from a source memory to a display memory of a display device in accordance with a selected or designated change in orientation. The method may be implemented in a way that does not use predefined increment values for performing transferring image lines from the source to the display memory. Rather, the source image is transferred to the display memory in a random order based on a random number list that guides the image-line transfer.
[0076] The random order is designated using a random number list. By using this list to control random image-line transfer, driver program code is substantially reduced which leads to a corresponding reduction in the time and complexity of implementing the driver program code. Further, the driver program code may change the orientation of the image in a plurality of modes, wherein different program code does not have to be used to implemented the orientation change in each mode. This advantageously leads to decreased usage of memory space in the display memory.
[0077] In the event that a reference point coincides with one of the lines in the source image (that is, if reference point 605 in FIG. 9 coincides with a middle one of the reference lines), then this image line may be the last image line transferred from the source memory to the display memory. This may be accomplished, for example, by determining the identity of the image line corresponding to the reference point and then skipping the random number corresponding to this image line. The image line in the source image corresponding to this skipped number may then be the last line transferred into the display memory.
[0078] Also, in accordance with one or more of the foregoing embodiments, all pixels in each line are preferably transferred before pixels in any subsequent line are transferred to the display memory. Moreover, as previously discussed, the lines in the source image may be transferred to the display memory by controlling pointers of source and display memories. One or both of these pointers may be controlled based on different incremental values, which are used to control movement of the pointers when transferring different lines of the source image from the source memory to the display memory.
[0079] The embodiments described herein may implemented in the form of computer-implemented processes or software product. Such a product may include computer program code containing instructions embodied in, for example, one or more floppy disks, CD-ROMs, hard drives, flash memories, network downloads, or any other computer-readable storage medium or computerized means of conveyance.
[0080] According to one embodiment, computer program code, for example, stored in a storage medium, loaded into, and/or executed by a computer, or transmitted over some transmission medium, such as over electrical wiring or cabling, through fiber optics, or via electromagnetic radiation may be used. The computer program code may be loaded into and executed by a computer, the computer becomes an apparatus for practicing the embodiments described herein. When implemented on a general -purpose microprocessor, the computer program code segments configure the microprocessor to create specific logic circuits.
[0081] While the change of orientation in accordance with the foregoing embodiments has been described as corresponding to an angular rotation of the source image, those skilled in the art can appreciate that the embodiments may be implemented to perform other types of orientation changes such as generating a mirror image or inverse of the source image, as well as other changes affecting image appearance or presentation.
[0082] FIG. 10 shows a source image 1 102 and a display image 1 104. The source image is stored in a source memory and comprises a plurality of lines, e.g., lines 1106, 1 108, and 1 110. Each line comprises a plurality of pixels. To convert the source image into the display image, the image lines in the source memory are transferred to a display memory based on specified angle of rotation. The image in the display memory is then output to a display device.
[0083] Examples of the display device include but are not limited to a Liquid Crystal Display (LCD), a plasma display panel (PDF), electroluminescent display (organic or inorganic), Thin Film Transistor (TFT) LCD, a monitor, a laptop screen and like. The image 1 102 can be rotated at any desired angle, for example, 0°, 90°, 180°, or 270°. When rotated at a 270° angle, the orientation of the source image is converted into the orientation of display image 1 104.
[0084] Each pixel in each of the plurality of lines of the source image is transferred sequentially to the display memory. For example, initially a line 1106 is transferred to the display memory and then the line 1 108 is transferred and thereafter the line 1 110 is transferred to the display memory. Each of the plurality of lines is transferred pixel by pixel, for example if each of the plurality of lines comprises 10 pixels. Then, each of the 10 pixels is transferred one by one to the display memory. [0085] A start position of each of the plurality of lines in the display device is determined by an angle of the rotation of the image 1 102. For example, if the image 1102 is rotated at the angle of rotation of 270 degree, then a line 1 116 corresponds to the line 1106 and the start position of the line 1 1 16 is decided according to the angle of rotation, similarly a line 1118 corresponds to the line 1 108 and the start position of the line 11 18 is determined according to the angle of rotation and a line 1 120 corresponds to the line 1 10 and the start position of the line 1120 is determined according to the angle of rotation. The details regarding the rotation of the image 1102 will be described in conjunction with FIG. 11, FIG. 12, FIG. 13 and FIG. 14.
[0086] FIG. 11 shows steps in included in a method for changing the orientation of a source image for display on a display device. The source image is divided into a grid of a plurality of rows (the plurality of lines) and a plurality of columns, and each of the plurality of rows comprises a plurality of pixels. A pixel of the plurality of pixels is a basic unit of programmable color in the image. A size of the pixel of the plurality of pixels depends on a resolution of the display device. If the resolution of the display device is set to a maximum value, then the size of a pixel is equal to a physical size of a dot pitch of the display device. If, however, the resolution is set to a value less than the maximum value, then the size of the pixel will be larger than the physical size of the dot pitch or the pixel will use more than one dot on the display device.
[0087] The method is initiated at step 1202. At step 1204, each of the plurality of lines of the image to be displayed on the display device is selected sequentially, for example if the source image (e.g., 1102) rotated at the angle of rotation of 270 degree is to be displayed on the display device, then each of the plurality of lines of the image 102 is selected sequentially one by one, i. e. initially the line 1 106 is selected, then the line 1 108 is selected, thereafter the line 1 1 10 is selected and so on each of the plurality of lines of the image is selected.
[0088] At step 1206, the angle of rotation of the image is determined. The angle of rotation specifies the orientation of the image in the display device. At step 1208, a start position of each of the plurality of lines is determined, the start position in the display device is determined using the angle of rotation. For example initially the start position of the line 1106 is determined and the line 1116 in the rotated image 1104 corresponds to line 1 106 rotated at the angle of 270. The start position of each of the plurality of lines of the image 1102 will determined according to a plurality of variables and the angle of rotation of the image 1102, which will be described in detail in conjunction with FIG. 13 and FIG. 14.
[0089] At step 1210, each of the plurality of pixels of each of the plurality of lines is transferred to the display memory from the source memory. For example initially the plurality of pixels of the line 1 106 is transferred, then each of the plurality of pixels of the line 1108 is transferred, thereafter each of the plurality of pixels of the line 1110 is transferred and so on each of the plurality of pixels of each of the plurality of lines is transferred sequentially.
[0090] At step 1212, the plurality of variables is updated, for example a screen pointer variable is updated each time a pixel is transferred from the source memory to the display memory. At step 1214, the image 1 102 is displayed on the display device oriented according to the angle of rotation using the plurality of variables. For example the rotated image 1104 will be displayed on the display device when the image 1102 is rotated at the angle of 270 degree. The displaying of the image will be described in detail in conjunction with FIG. 12, FIG. 13 and FIG. 14. The method terminates at step 1216. [0091] FIG. 12 is a flow diagram illustrating one ways initialization of the plurality of variables may be performed for displaying the rotated image 1104 on the display device. The plurality of variables to be initialized includes a PIXEL SIZE, a PHYSICAL SCREEN WIDTH, a PHYSICAL JSCREEN HEIGHT, a PHYSICAL BYTE WIDTH, a MEM PTR, a SCR PTR, a LOGIC AL SCREEN WIDTH and a LOGICAL SCREEN HEIGHT.
[0092] The method initiates at step 1302, when a request for displaying the image 1 102 on the display screen is received by a driver program code. The request for displaying the image 1102 on the display screen can be send by an application program, an operating system, or a user defined program interface. The request for displaying the image 1102 in rotated format is processed by the driver program code. At step 1304, a size of each of the plurality of pixels of each of the plurality of lines of the image 1102 is determined and the size of each of the plurality of pixels is stored in the PIXEL SIZE variable.
[0093] The number of bits used to represent each pixel determines how many colors or shades of gray can be displayed. For example, in 8-bit color mode, 8 bits are assigned for each pixel of the plurality of pixels, thereby making it possible to display up to 8th power of 2 (256) different colors or shades of gray of the image 1102. The size of the pixel can be selected by a user of the display device, the application program, or the operating system. The size of each of the plurality of pixels can be set to one of a 1 byte per pixel (Palette Mode), 2 bytes per pixel ( High color Mode), 3 bytes per pixel ( True color Packaged Mode), or 4 bytes per pixel (True color aligned Mode). At step 1306, the PHYSICAL SCREEN WIDTH variable is set equal to width in pixels of the image 1 102 in the source memory, for example if each line comprises 10 pixels, then the PHYSICAL SCREEN WIDTH variable is set to 10. [0094] Further, at step 1306, the PHYSICAL SCREEN HEIGHT variable is set equal to a height in pixels of the image 1 102 in the source memory, for example if each column of the image 1 102 comprises 10 pixels, then the PHYSICAL SCREEN HEIGHT variable is set to 10. Furthermore, the PHYSICAL BYTE WIDTH variable is set equal to a product of the PHYSICAL SCREEN WIDTH variable and the PLXEL SIZE variable, for example if the PIXEL SIZE variable is set equal to 1 byte and the PHYSICAL SCREEN WIDTH variable is set to 10, then the PHYSICAL BYTE WIDTH variable will be equal to 10 bytes. Also, at step 1306, the MEM PTR variable is set equal to a base address to a bitmap in the source memory and the SCR PTR variable (the screen pointer variable) is set equal to a base address of the display memory of the display device.
[0095] At step 1308, it is determined whether the angle of rotation of the image 1102 is equal to 0 degree or 90 degree or 180 degree or 270 degree. If the angle of rotation of the image 1102 is one of a 0 degree or a 180 degree, then control goes to step 1310 and at step 1310, the LOGICAL SCREEN WiDTH variable is set equal to the PHYSICAL SCREEN WIDTH variable and the LOGICAL SCREEN HEIGHT variable is set equal to the PHYSICAL SCREEN HEIGHT variable. The control goes to 1314 after the step 1310.
[0096] At step 1308, if the angle of rotation of the image 1102 is one of a 90 degree or a 270 degree, then the control goes to step 1312 and at step 1312, the LOG I C A L SCRE EN W 1 DTH variable is set equal to the PH YS CIAL S CREEN HEIGHT variable and the LOGICAL SCREEN HEIGHT variable is set equal to the PH YS IC AL S CREEN WIDTH variable. The control goes to 1314 after the step 1312. At 1314, it is determined whether the angle of the rotation of the image 1102 is 0 degree, 90 degree, 180 degree or 270 degree. If the angle of the rotation of the image is 0 degree or 180 degree, then the control goes to a step 1402, in a flow diagram which will be described in conjunction with FIG. 13. If the angle of the rotation of the image is 90 degree or 270 degree, then the control goes to a step 1502, in a flow diagram which will be described in conjunction with FIG. 14.
[0097] FIG. 13A and 13B are flow diagrams illustrating an algorithm for rotation of the image 1102 at the angle of a 0 degree or the angle of 180 degree. If the angle of the rotation of the image 1 102 is 0 degree or 180 degree, then control goes to step 1402. At step 1402, it is determined whether the angle of rotation is 0 degree or 180 degree. If the angle of rotation of the image 1102 is 0 degree, then control goes to step 1404, otherwise if the angle of rotation of the image is 180 degree, then control goes to step 1406.
[0098] At step 1404, for loop is initialized for each of the plurality of pixels in a line (a pixel in row) of the plurality of lines, and at step 408, variables XI , X2, Y are initialized. The coordinates (XI, Y) indicates a start position of a line of the plurality of lines of the image 1 102, when the image 1 102 is rotated at the angle of 0 degree.
[0099] The coordinates (X2, Y) indicates an end position of the line of the plurality of lines of the image 1102, when the image is rotated at the angle of 0 degree. XI is set equal to 0, X2 is set equal to PHYSICAL SCREEN WIDTH - 1 , Y is set equal to a pixel in row. Further, a NEW_SRC variable is initialized and set equal to a sum of the MEM PTR and (product of the pixel in row, the PH YS IC AL S CREEN WIDTH variable and the PIXEL_SIZE variable).
[00100] If at step 1402, it is determined that the angle of rotation of the image 1102 is 180 degree, then at step 1406, for loop is initialized for each of the plurality o pixels in a line (a pixel in row) of the plurality of lines, and at step 1410, variables XI, X2, Y are initialized. The coordinates (XI , Y) indicates a start position of a line of the plurality of lines of the image 1 102, when the image 1 102 is rotated at the angle of 180 degree. The coordinates (X2, Y) indicates an end position of the line of the plurality of lines of the image 1 102, when the image is rotated at the angle of 180 degree. XI is set equal to PHYSICAL SCREEN WIDTH - 1, X2 is set equal to 0, Y is set equal to the P II Y S I C A L_S CR E EN H EIGHT- the pixel in row - 1. Further, the NEW SRC variable is initialized and set equal to a sum of the MEM PTR and (product of the pixel in row, the PHYSICAL SCREEN WIDTH variable and the PIXEL SIZE variable). The step 1410 is performed for rotating the image 1 102 at the angle of 180 degree.
[00101] After, the step 1408 and the step 1410, the control goes to step 1412 and an ADDR variable is initialized and set equal to the SCR PTR variable. The ADDR variable will be set equal to the sum of a previous value in the ADDR variable and a product of the PIXEL SIZE variable and (sum of XI, product of Y and LOG I C A L SCREEN WI DTH variable). Thereafter, at step 1414, it is determined whether X1<=X2, and if the XI is less than or equal to X2, then the control goes to step 1416. If the XI is less than X2, this indicates that each of the plurality of pixels are not transferred for a particular line of a plurality of lines to the display memory, therefore at step 1416, a while loop is executed. While X1++ is less than or equal to X2, then the value of *ADDR (value stored at the ADDR variable) is incremented by 1 and the value *NEW_SRC (value stored at the NEW_SCR variable) is incremented by 1. The said operation is repeated thrice.
[00102] When the control flows out of while loop in the step 1416, then the control goes to the step 1420 and the method is terminated. If at step 1414, it is determined that X1>X2, then control goes to step 1418. At step 1418 a while loop is executed. While XI is greater than or equal to X2, the value of XI is decremented, when the said condition is true, then the value stored at the ADDR + 2 variable is assigned a value stored at a the NEW_SCR +2 variable. Further the value stored at the ADDR + 1 variable is assigned a value stored at the NEW SCR + 1 variable and the value stored at the ADDR variable is assigned a value stored at the NEW SCR variable.
[00103] Furthermore, the variable ADDR is set equal to a difference of a previous memory location pointed by the ADDR variable and the PIXELJSIZE variable. When, the control flows out of the while loop in step 1418, then the method is terminated at step 1420. The step 1412, 1414, 1416 and 1418 are used for transferring each of the plurality of lines (rows) of the image sequentially from the source memory to the display memory. Each of the plurality of lines is transferred by transferring each of the plurality of pixels of each of the plurality of lines sequentially. Initially the line 1106 is transferred to the display memory, and if each of the plurality of lines comprises 10 pixels, then the ADDR variable will be incremented 10 times, since the X2 variable will be set equal to PHYSICAL SCREEN WIDTH -1 , the PH YS I C AL SCREEN W I DTH variable is set equal to the width in pixels of the image, the width in pixels of the image is equal to number of pixels in each of the plurality of lines. Once each of the plurality of lines is transferred to the display device, then the image rotated at a particular angle is displayed at the display device, by updating the plurality of variables as described above.
[00104] FIG. 14A and 14B are flow diagrams illustrating an algorithm for rotation of the image 1102 at the angle of a 90 degree or the angle of 270 degree. If the angle of the rotation of the image 1102 is 90 degree or 270 degree, then control goes to step 1502. At step 1502, it is determined whether the angle of rotation of the image 1102 is 90 degree or 270 degree. If the angle of rotation of the image 1 102 is 90 degree, then control goes to step 1504, otherwise if the angle of rotation of the image is 270 degree, then control goes to step 1506.
[00105] At step 1504, for loop is initialized for each of the plurality of pixels in a line (a pixel in row) of the plurality of lines, and at step 1508, variables X, Yl, Y2 are initialized. The coordinates (X, Yl) indicates a start position of a line of the plurality of lines of the image 1102 to be transferred to the display memory, when the image 1102 is rotated at the angle of rotation of 90 degree.
[00106] The coordinates (X, Y2) indicates an end position of the line of the plurality of lines of the image 1102, when the image is rotated at the angle of rotation of 90 degree. X is set equal to the pixel in a row. Yl is set equal to PHYS IC AL S CREEN WIDTH - 1, Y2 is set equal to 0. Further, the NEW_SRC variable is initialized and set equal to a sum of the MEM_PTR and (product of the pixel in row, the PHYSICAL SCREEN WIDTH variable and the PIXEL SIZE variable).
[00107] If at step 1502, it is determined that the angle of rotation of the image 1102 is 270 degree, then at step 1506, for loop is initialized for each of the plurality of pixels in a line (a pixel in row) of the plurality of lines, and at step 1510, variables X, Yl, Y2 are initialized. The coordinates (X, Yl) indicates a start position of the line of the plurality of lines of the image 1102, when the image 1102 is rotated at the angle of 270 degree.
[00108] The coordinates (X, Y2) indicates an end position of the line of the plurality of lines of the image 1102, when the image is rotated at the angle of 270 degree. X is set equal to PHYSICAL SCREEN HEIGHT - the pixel in a row - 1 , Yl is set equal to 0 and Y2 is set equal to the PHYSICAL SCREEN WIDTH - 1 . Further, the NEW SRC variable is initialized and set equal to a sum of the MEM PTR and (product of the pixel in row, the PHYSICAL SCREEN WIDTH variable and the PIXEL SIZE variable). The step 1510 is performed for rotating the image 1102 at the angle of rotation of 270 degree. The image 1 102, when rotated at the angle of rotation of 270 degree, then the image 1102 is oriented as shown with reference to the rotated image 1104.
[00109] After, the step 1508 and the step 1510, the control goes to step 1512 and the ADDR variable is initialized and set equal to the SCR PTR variable. The ADDR variable will be set equal to the sum of a previous value in the ADDR variable and a product of PIXEL SIZE and (sum of X, product of Yl and the LOGICAL SCREEN WIDTH variable). Further, a LI E LEN variable is initialized and set equal to a product of DST LINELEN variable and the PIXEL_SIZE variable.
[00110] Thereafter, at step 1514, it is determined whether YK=X2, and if the Yl is less than or equal to Y2, then the control goes to step 1518. If Yl is less than Y2, this indicates that each of the plurality of pixels are not transferred for a particular line of a plurality of lines to the display memory, therefore at step 1518, a while loop is executed. While Y1++ is less than or equal to Y2, then the value of *ADDR (value stored at the ADDR variable) is incremented by 1 and the value *NEW_SRC (value stored at the NEW SCR variable) is incremented by 1. The said operation is repeated thrice. Furthermore, the ADDR variable is set equal to a sum of a previous memory location pointed by the ADDR variable and the LI E_LEN variable.
[00111] When the control flows out of while loop in the step 1518, then the control goes to step 1520 and the method is terminated. If at step 1514, it is determined that Y1>Y2, then control goes to step 1516. At step 1516 a while loop is executed. While Yl is greater than or equal to Y2, the value of Yl is decremented, when the said condition is true, then the value stored at the ADDR + 2 variable is assigned a value stored at the NEW SCR +2 variable. Further the value stored at the ADDR + 1 variable is assigned a value stored at the NEW SCR + 1 variable, the value stored at the ADDR variable is assigned a value stored at the NEW_SCR variable.
[00112] Furthermore, the variable ADDR is set equal to a difference of a previous memory location pointed by the ADDR variable and the LINE LEN variable. When the control flows out of the while loop in step 1516 then the method is terminated at step 1520. The step 1512, 1514, 1516 and 1518 are used for transferring each of the plurality of lines (rows) of the image 1102 sequentially pixel by pixel to the display memory from the source memory. Each of the plurality of lines is transferred by transferring each of the plurality of pixels of each of the plurality of lines. Once each of the plurality of lines is transferred to the display device, then the image rotated at a particular angle is displayed at the display device, by updating the plurality of variables as described above.
[00113] In accordance with other embodiments, a method and a computer program product for transferring the image from the source memory to the display memory of the display device. These embodiments do not use predefined increment values and transfers each of the plurality of lines sequentially to the display memory. Each of the plurality of lines is transferred pixel by pixel to the display memory. The driver program code changes the orientation of the image in a plurality of modes, and does way with a need of having a different program code for each of the plurality of modes, therefore leading to a decreased usage of memory space in the display memory.
[00114] One or more of the foregoing embodiments may be implemented in the form of a computer-implemented process and apparatus. The embodiments described herein may also be implemented in computer program code containing instructions embodied in tangible media, such as floppy diskettes, CD-ROMs, hard drives, or any other computer-readable storage medium, wherein, when the computer program code is loaded into and executed by a computer, the computer becomes an apparatus for practicing the embodiments described herein.
[00115] The embodiments can also be implemented in the form of computer program code, for example, whether stored in a storage medium, loaded into and/or executed by a computer, or transmitted over some transmission medium, such as over electrical wiring or cabling, through fiber optics, or via electromagnetic radiation, wherein, when the computer program code is loaded into and executed by a computer, the computer becomes an apparatus for practicing the embodiments herein. When implemented on a general-purpose microprocessor, the computer program code segments configure the microprocessor to create specific logic circuits.
[001 16] The present invention is described herein in connection with a number of exemplary embodiments. However, the invention is not intended to be limited to the specific forms set forth herein. It is understood that various omissions, substitutions of equivalents are contemplated as circumstances may suggest or render expedient, but is intended to cover the application or implementation without departing from the spirit or scope of the claims of the present invention. Also, it is to be understood that the phraseology and terminology used herein is for the purpose of description and should not be regarded as limiting.
[001 17] 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 teaching. 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 understood that various omissions, substitutions of equivalents are contemplated as circumstance may suggest or render expedient, but is intended to cover the application or implementation without departing from the spirit or scope of the claims of the present invention.

Claims

What is claimed is:
1. A method for displaying an image in a display device, comprising:
(a) generating a list of non- sequential random numbers, each number corresponding to a respective one of a plurality of lines in a source image;
(b) selecting a first random number from the list;
(c) transferring the line in the source image that corresponds to the first random number from a source memory to a display memory based on orientation change information;
(d) automatically determining a second random number from the list based on selection of the first random number;
(e) transferring the line in the source image that corresponds to the second random number from the source memory to the display memory based on said orientation change information; and
(f) repeating (b)-(e) for remaining random numbers in the list until all remaining lines in the source image are transferred from the source memory to the display memory based on said orientation change information.
2. The method of claim 1, wherein different pairs of adjacent random numbers in said list are separated by different incremental values.
3. The method of claim 2, wherein transferring said lines from the source memory to the display memory includes:
controlling a memory pointer of the source memory and a memory pointer of the display memory based on said different incremental values.
4. The method of claim 1, wherein:
the lines in the source memory are divided into first and second sections relative to a reference point in the source image, and
wherein each line in the first section has a mirror image line in the second section, the source image transferred into the display memory based on the division of lines in the first and second sections.
5. The method of claim 4, wherein, in (d), the second random number is automatically determined to correspond to the mirror image of the first random number relative to said reference point.
6. The method of claim 4, wherein the reference point is located between two lines in the source image.
7. The method of claim 4, wherein the reference point coincides with a line in the source image.
8. The method of claim 4, wherein the first section includes lines in a first half of the source image and the second section includes lines in a second half of the source image.
9. The method of claim 1, wherein said orientation change information designates a desired angle of rotation of the source memory to be displayed on a screen of the display device.
10. The method of claim 1, wherein pointers in the source and display memories are controlled based on an order of selection of random numbers from said list.
1 1. The method of claim 10, wherein random numbers are sequentially selected from the list to control a random order of transfer of images lines in the source image from the source memory to the display memory.
12. The method of claim 1, wherein pixels in each line in the source image are sequentially transferred from the source memory to the display memory based on said orientation change information.
13. A system for displaying an image in a display device, comprising:
a first memory to store a source image;
a second memory to store a display image; and
a processor to control transfer of the source image from the first memory to the second memory, the processor changing an orientation of the source image by:
(a) generating a list of non-sequential random numbers, each number corresponding to a respective one of a plurality of lines in the source image;
(b) selecting a first random number from the list;
(c) transferring the image line in the source image that corresponds to the first random number from the source memory to the display memory based on orientation change information;
(d) automatically determining a second random number from the list based on selection of the first random number; (e) transferring the image line in the source image that corresponds to the second random number from the source memory to the display memory based on said orientation change information; and
(f) repeating (b)-(e) for remaining random numbers in the list until all remaining image lines in the source image are transferred from the source memory to the display memory based on said orientation change information.
14. The system of claim 12, wherein the processor generates random numbers so that different pairs of adjacent random numbers in said list are separated by different incremental values.
15. The system of claim 12, wherein:
the image lines in the source memory are divided into first and second sections relative to a reference point in the source image, and
wherein each image line in the first section has a mirror image line in the second section, the source image transferred into the display memory based on the division of image lines in the first and second sections.
16. The system of claim 15, wherein, in (d), the processor automatically determines that the second random number corresponds to the mirror image of the first random number relative to said reference point.
17. The system of claim 15, wherein the reference point is located between two image lines in the source image.
18. The system of claim 15, wherein the reference point coincides with an image line in the source image.
19. The system of claim 15, wherein the first section includes image lines in a first half of the source image and the second section includes image lines in a second half of the source image.
20. The system of claim 15, wherein said orientation change information designates a desired angle of rotation of the source memory to be displayed on a screen of the display device.
21. The system of claim 13, wherein pointers in the source and display memories are controlled based on an order of selection of random numbers from said list.
22. The system of claim 21, wherein random numbers are sequentially selected from the list to control a random order of transfer of images lines in the source image from the source memory to the display memory.
23. The system of claim 13, wherein the processor sequentially transfers pixels in each line of the source image from the source memory to the display memory based on said orientation change information.
24. A computer program product embodied on a computer readable medium for displaying an image in a display device, the computer program product comprising a program module having instructions for: (a) generating a list of non- sequential random numbers, each number corresponding to a respective one of a plurality of lines in a source image;
(b) selecting a first random number from the list;
(c) transferring the image line in the source image that corresponds to the first random number from a source memory to a display memory based on orientation change information;
(d) automatically determining a second random number from the list based on selection of the first random number;
(e) transferring the image line in the source image that corresponds to the second random number from the source memory to the display memory based on said orientation change information; and
(f) repeating (b)-(e) for remaining random numbers in the list until all remaining image lines in the source image are transferred from the source memory to the display memory based on said orientation change information.
25. The computer program product of claim 24, wherein different pairs of adjacent random numbers in said list are separated by different incremental values.
26. The computer program product of claim 25, wherein transferring said image lines from the source memory to the display memory includes:
controlling a memory pointer of the source memory and a memory pointer of the display memory based on said different incremental values.
27. The system of claim 14, wherein transferring said image lines from the source memory to the display memory includes: controlling a memory pointer of the source memory and a memory pointer of the display memory based on said different incremental values.
28. A method for controlling display of an image, comprising:
generating a list of non-sequential random numbers, each number corresponding to a respective one of a plurality of lines in a source image;
transferring the lines in the source image from a first memory to a second memory based on orientation change information, the lines in the source image transferred in non-sequential order using the random numbers in said list; and
displaying an image based on the image lines in the second memory.
29. The method of claim 28, wherein all pixels in each line are transferred before pixels in any subsequent line are transferred to the second memory.
30. The method of claim 28, wherein the lines in the source image are transferred to the second memory by controlling a pointer of at least the first memory, and wherein different incremental values are used to control movement of the pointer when transferring different lines of the source image from the first memory to the second memory.
31. A method for displaying an image in a display device, the image comprising a plurality of lines, each of the plurality of lines comprising a plurality of pixels, the method comprising:
selecting each of the plurality of lines sequentially; determining an angle of rotation of the image, wherein the angle of rotation specifies orientation of the image in the display device;
determining a start position on the display device for each of the plurality of lines based on the angle of rotation;
transferring each of the plurality of pixels of each of the plurality of lines sequentially from a source memory to a display memory of the display device;
updating a plurality of variables in the display memory after each pixel of the plurality of pixels of each of the plurality lines is transferred from the source memory to the display memory; and
displaying the image on the display device by using the plurality of variables.
32. The method of claim 31 further comprising determining the start position of the display device based on a size of each of the plurality of pixels.
33. The method of claim 31, wherein the angle of the rotation of the image is one of a 90 degree angle, a 180 degree angle, a 270 degree angle and a 360 degree angle.
34. A computer program product embodied on a computer readable medium for displaying an image in a display device, the image comprising a plurality of lines, each of the plurality of lines comprising a plurality of pixels, the computer program product comprising a program module having instructions for:
selecting each of the plurality of lines sequentially;
determining an angle of rotation of the image, wherein the angle of rotation specifies orientation of the image in the display device; determining a start position on the display device for each of the plurality of lines based on the angle of rotation;
transferring each of the plurality of pixels of each of the plurality of lines sequentially from a source memory to a display memory of the display device;
updating a plurality of variables in the display memory after each pixel of the plurality of pixels of each of the plurality lines is transferred from the source memory to the display memory; and
displaying the image on the display device by using the plurality of variables.
35. The computer program product of claim 31 further comprising determining the start position of the display device based on a size of each of the plurality of pixels.
36. The computer program product o claim 31 , wherein the angle of the rotation of the image is one of a 90 degree angle, a 180 degree angle, a 270 degree angle and a 360 degree angle.
37. A method for displaying an image on a display device, the display image is transferred from a source memory to a display memory of the display device, the image comprising a plurality of lines, each of the plurality of lines comprising a plurality of pixels, the method comprising:
determining an angle of rotation of a plurality of angle of rotations of the image, wherein the angle of rotation specifies the orientation of the image in the display device; and transferring the image from the source memory to the display memory based upon the angle of rotation, wherein transferring the image comprises,
selecting each of the plurality of lines sequentially,
sending each of the plurality of lines from the source memory to the display memory,
updating a plurality of variables in the display memory based upon the angle of rotation and a plurality of parameters corresponding to each of the plurality of lines; and
displaying the image in the display device by using the plurality of variables.
38. The method of claim 37, further comprising determining the start position of the display device based on the angle of rotation and a size of each of the plurality of pixels.
39. The method of claim 37, wherein the angle of the rotation of the image is one of a 90 degree angle, a 180 degree angle, a 270 degree angle and a 360 degree angle.
PCT/IB2008/003202 2008-08-21 2008-08-21 System and method for displaying a rotated image in a display device WO2016079551A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/IB2008/003202 WO2016079551A1 (en) 2008-08-21 2008-08-21 System and method for displaying a rotated image in a display device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/IB2008/003202 WO2016079551A1 (en) 2008-08-21 2008-08-21 System and method for displaying a rotated image in a display device

Publications (1)

Publication Number Publication Date
WO2016079551A1 true WO2016079551A1 (en) 2016-05-26

Family

ID=56013339

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/IB2008/003202 WO2016079551A1 (en) 2008-08-21 2008-08-21 System and method for displaying a rotated image in a display device

Country Status (1)

Country Link
WO (1) WO2016079551A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112346613A (en) * 2020-10-29 2021-02-09 深圳Tcl新技术有限公司 Icon display effect control method, terminal and computer-readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020101439A1 (en) * 2001-01-30 2002-08-01 Mamona Andrzej S. Method and apparatus for rotating an image on a display
US20040125103A1 (en) * 2000-02-25 2004-07-01 Kaufman Arie E. Apparatus and method for volume processing and rendering
US20040252135A1 (en) * 2003-06-13 2004-12-16 Yoshihiro Ono Image display control apparatus and image display control method
US20060033760A1 (en) * 2004-08-16 2006-02-16 Lg Electronics Inc. Apparatus, method, and medium for controlling image orientation
US20060056738A1 (en) * 2004-09-16 2006-03-16 Keithley Douglas G Image processing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040125103A1 (en) * 2000-02-25 2004-07-01 Kaufman Arie E. Apparatus and method for volume processing and rendering
US20020101439A1 (en) * 2001-01-30 2002-08-01 Mamona Andrzej S. Method and apparatus for rotating an image on a display
US20040252135A1 (en) * 2003-06-13 2004-12-16 Yoshihiro Ono Image display control apparatus and image display control method
US20060033760A1 (en) * 2004-08-16 2006-02-16 Lg Electronics Inc. Apparatus, method, and medium for controlling image orientation
US20060056738A1 (en) * 2004-09-16 2006-03-16 Keithley Douglas G Image processing method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112346613A (en) * 2020-10-29 2021-02-09 深圳Tcl新技术有限公司 Icon display effect control method, terminal and computer-readable storage medium

Similar Documents

Publication Publication Date Title
US8264506B2 (en) System and method for displaying a rotated image in a display device
US7136042B2 (en) Display controller permitting connection of multiple displays with a single video cable
US5748174A (en) Video display system including graphic layers with sizable, positionable windows and programmable priority
CN105976774B (en) Gate driver, display driver circuit and method of driving gate line
US5251298A (en) Method and apparatus for auxiliary pixel color management using monomap addresses which map to color pixel addresses
US20160171642A1 (en) Overlap Aware Reordering of Rendering Operations for Efficiency
JPH0469794B2 (en)
US8717391B2 (en) User interface pipe scalers with active regions
CN109725701B (en) Display panel and device, image processing method and device, and virtual reality system
US5854641A (en) Method and apparatus for display image rotation
US6215507B1 (en) Display system with interleaved pixel address
US7643038B2 (en) Virtual device buffer for embedded device
CN107799051A (en) Display device and the method for using the display device display image
EP1622125A2 (en) DMA overlay addressing methodology for optimizing power and improving memory bandwidth for display engines
JP2006065869A (en) Image processing method of enlarging image data for display by generating enlarged image from original image, image processing apparatus for enlarging image data for display, and computer system for enlarging image data for display
US20030043125A1 (en) Display controller, display control method, and image display system
US20120127364A1 (en) Color Space Conversion
WO2016079551A1 (en) System and method for displaying a rotated image in a display device
JP4804817B2 (en) Computer
KR20130043322A (en) Display controller and display device including the same
GB2180729A (en) Direct memory access window display
USRE38471E1 (en) Method and apparatus for display image rotation
US5912995A (en) Method and apparatus for rotating or transposing a binary image
CN106875884B (en) Method and device for drawing monochromatic screen and electronic equipment
JPH07296157A (en) Method and system of rotating image data

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 08879360

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 08879360

Country of ref document: EP

Kind code of ref document: A1