Method and apparatus for transforming images to accommodate screen orientation

Abstract
A method and apparatus for transforming a display image on a display from a first orientation to a second orientation, the method having the steps of: breaking up the display image into multiple sub-images; and transforming each of the multiple sub-images individually, the transforming step including selecting a pixel, determining a transformed location for the pixel, and writing the pixel to a display buffer.
Description

BRIEF DESCRIPTION OF THE DRAWINGS

The present application will be better understood with reference to the drawings, in which:



FIG. 1 is a schematic view of an exemplary mobile device;



FIG. 2 is a schematic view of a display showing a first row of cache lines oriented for a landscape format addressing;



FIG. 3 is an exemplary display showing a first row of cache lines in which the pixels are configured to be oriented in a portrait format;



FIG. 4 is an exemplary display showing a first row of cache lines in which the pixels are configured to be oriented in a landscape format, with the display broken down into multiple images;



FIG. 5 is an exemplary display showing a first row of cache lines in which the pixels are configured to be oriented in a portrait format, with the display broken down into multiple images;



FIG. 6 is an exemplary display showing a first row of cache lines in which the pixels are configured to be oriented in a landscape format, with the display broken down into multiple images;



FIG. 7 is an exemplary display showing a first row of cache lines in which the pixels are configured to be oriented in a portrait format, with the display broken down into multiple images;



FIG. 8 is a flow chart of a method of the present application;



FIG. 9 is an alternative method where the number of images a display is to be broken into is determined prior to a transformation;



FIG. 10 is a schematic view of an exemplary client/host architecture of a mobile device that can be used in accordance with a preferred embodiment; and



FIG. 11 is a schematic view of the mobile device of FIG. 10.


Claims
  • 1. A method for transforming a display image from a first orientation to a second orientation, the method comprising the steps of: a) breaking up the display image into multiple sub-images; andb) transforming each of said multiple sub-images individually, said transforming step including selecting a pixel, determining a transformed location for said pixel, and writing the pixel to a display buffer.
  • 2. The method of claim 1, wherein the display image is on a mobile device.
  • 3. The method of claim 2, wherein the mobile device includes a predetermined cache size.
  • 4. The method of claim 3, wherein the breaking up step includes finding a sub-image size that fits into said cache without causing cache misses.
  • 5. The method of claim 4, wherein said sub-image size is determined based on a number of bits for each pixel and the number of pixels in a row of the sub-image.
  • 6. The method of claim 1, wherein the breaking up step breaks the display image into two sub-images.
  • 7. The method of claim 1, wherein said breaking up step creates multiple sub-images, each sub-image having the same size.
  • 8. The method of claim 1, wherein said breaking up step creates multiple sub-images having differing sizes.
  • 9. The method of claim 1, wherein the first orientation is one of portrait or landscape, and the second orientation is the other of portrait or landscape.
  • 10. The method of claim 9, wherein said transforming step uses a top left corner as a landscape reference and a top right corner as a portrait reference.
  • 11. A mobile device adapted to transform a display image from a first orientation to a second orientation, the mobile device having a radio subsystem including a radio adapted to communicate with a network; a radio processor having a digital signal processor and adapted to interact with said radio subsystem; memory; a user interface; a processor adapted to run user applications and interact with the memory, the radio and the user interface and adapted to run applications, the mobile device characterized by having means for: a) breaking up the display image into multiple sub-images; andb) transforming each of said multiple sub-images individually, said transforming step including selecting a pixel, determining a transformed location for said pixel, and writing the pixel to a display buffer.
  • 12. The mobile device of claim 11, wherein the mobile device includes a cache with a predetermined cache size.
  • 13. The mobile device of claim 12, wherein the means for breaking up includes means for finding a sub-image size that fits into said cache without causing cache misses.
  • 14. The mobile device of claim 13, wherein said sub-image size is determined based on a number of bits for each pixel and the number of pixels in a row of the image.
  • 15. The mobile device of claim 11, wherein the means for breaking up is adapted to break the display image into two sub-images.
  • 16. The mobile device of claim 11, wherein the means for breaking up is adapted to create multiple sub-images, each sub-image having the same size.
  • 17. The mobile device of claim 11, wherein the means for breaking up is adapted to create multiple sub-images having differing sizes.
  • 18. The mobile device of claim 11, wherein the first orientation is one of portrait or landscape, and the second orientation is the other of portrait or landscape.
  • 19. The mobile device of claim 18, wherein said means for transforming is adapted to use a top left corner as a landscape reference and a top right corner as a portrait reference.