LCD controller to hold a fixed image aspect ratio
A circuit and a method for maintaining the aspect ratio of images when there is a difference in format between image sources and display panels is provided. Lines are added in the vertical direction both at the top and at the bottom of the display panel in order to make the display panel have the same aspect ratio as the input image. A line enable signal is used to expand the vertical lines to maintain aspect ratio. Previously, the period of line enable signals could not be programmed to vary sufficiently to yield the necessary expansion to allow the aspect ratio of the display panel image to match the aspect ratio of the source image. This design allows the period of the line enable signal to vary enough to match all reasonable aspect ratios of input images.
Latest Patents:
This is a Divisional application of U.S. patent application Ser. No. 10/428,892, filed on May 2, 2003, which is herein incorporated by reference in its entirety, and assigned to a common assignee.
BACKGROUND OF THE INVENTION1. Field of the Invention
The present invention generally relates to the general problem of keeping the aspect ratio of images when there is a difference in format between image sources and display panels. More particularly, this invention relates to a circuit and a method for holding a fixed aspect ratio when converting image formats to specific display formats.
2. Description of the Prior Art
In the prior art, the general image formats currently used with different aspect ratios are below.
VGA: 640×480=4×3 (aspect ratio=1.33)
SVGA: 800×600=4×3 (aspect ratio=1.33)
XGA: 1024×768=4×3 (aspect ratio=1.33)
SXGA: 1280×1024=5×4 (aspect ratio=1.25)
UXGA: 1600×1200=4×3 (aspect ratio=1.33)
When an LCD (or other computer display) controller transfers the input source signal to the display panel the difference in format between the source signal and the target panel is considered. The problem encountered in the prior art is the requirement to keep the aspect ratios the same during the transition from image source to the display panel. In the prior art, when converting VGA, XGA and UXGA signals from the source to a display panel such as an SXGA panel, there are aspect ratio changes to be solved. If the aspect ratio changes are not solved, the images displayed at the panel will be distorted as seen in
U.S. Pat. No. 5,748,175 (Shimada, et al.) “LCD Driving Apparatus Allowing for Multiple Aspect Resolution” describes a LCD driver apparatus which allows for multiple aspect resolutions.
U.S. Pat. No. 6,275,306 (Wataya, et al.) “Image Processing System Converting the Pixel Aspect Ratio” discloses an image processing system which converts the pixel aspect ratio.
U.S. Pat. No. 6,191,820 (Kang, et al.) “Device and Method for Converting Aspect Ratio of Video Signal” describes a device and a method for converting the aspect ratio of a video signal.
U.S. Pat. No. 5,983,247 (Yamanaka, et al.) “Data Conversion Apparatus for Reading a Document for a Display Screen and Generating a Display Image for Another Display Screen Which Has a Different Aspect Ratio from the Former Display Screen” discloses a data conversion apparatus for reading a document for a display screen and creating an image for another screen which has a different aspect ratio from the other display screen.
SUMMARY OF THE INVENTIONIt is therefore an object of the present invention to provide a circuit and a method for maintaining the aspect ratio of images when there is a difference in format between image sources and display panels. It is further an object of this invention to provide a circuit and a method for holding a fixed aspect ratio when converting image formats to specific display formats.
The objects of this invention are achieved by a liquid crystal display, LCD (or other computer display) controller to hold a fixed image aspect ratio. This controller is made up in part of an R/G/B frame mask circuit, a primary vertical sync, Vsync′ generator, which connects to a secondary vertical sync, Vsync″ generator, which connects to a line enable, LE generator, and a line enable LE generator. The R/G/B, red/green/blue, frame mask circuit has red/blue/green, R/G/B signals and a frame mask as inputs. The R/G/B frame mask circuit has red′/green′/blue′ R′/G′/B′ signals as outputs. Also, this R/G/B frame mask circuit disables the input signals R/G/B in a desired or masked region of an LCD screen. The primary vertical sync, Vsync′ generator has a main vertical sync, Vsync, signal, an inverse frame-mask signal, and an ‘x’ signal as inputs. Also, the Vsync′ generator has a primary vertical sync, Vsync′ as an output. The Vsync′ generator converts the main Vsync signal to the Vsync′ signal. The secondary vertical sync, Vsync″ generator has the primary vertical sync, Vsync′, and a sum of a Vtotal minus the x signal and a Vstart minus Vpreamble signal as inputs. In addition, the Vsync″ generator has a secondary vertical sync, Vsync″, as an output. The Vsync″ generator converts the Vsync′ signal to the Vsync″ signal. The Line Enable, LE generator has Vsync″, a V_preamble and a Vactive signal as inputs. The LE generator has a Line Enable, LE signal as an output. Also, the LE generator converts the Vsync″ signal, combined with the V_preamble and the Vactive signals to the LE signal.
The key aspect of this invention is the use of a line enable, LE signal to control the aspect ratio of the display. The LE signal is expanded to add display panel lines in the vertical direction in order to preserve the aspect ratio from the source image to the desired display panel.
The above and other objects, features and advantages of the present invention will be better understood from the following detailed description taken in conjunction with the accompanying drawings.
BRIEF DESCRIPTION OF THE DRAWINGS
The aspect ratio of the overall source image changed from 1024×768 (1024/768=4/3=1.33) to 1024×820 (1024/820=5/4=1.25). However, the aspect ratio of the original circle 240 did not change 270 in step 2 since the circle pixels were untouched 290. The only thing that changed between step 1 (240) and step 2 (290) are the lines in the vertical direction that were added to the source image.
Next,
In summary, the key to this invention is the first step of expanding the source image with additional lines in the vertical direction both at the top and the bottom of the source image. This first step allows the mapping of the circle from the intermediate image to the display panel to occur with common aspect ratio.
The falling edge 350 of the expanded LE in
In
If the rule is violated, in other words, when Vsync″ 541 goes into the active region of 550, the LE 550 will be truncated and finished abnormally by Vsync″ 541. In order to get a maximum capability of expanded LE number, we have to eliminate this limitation.
The most useful and straight forward way is to mask the frame signal R/G/B every other frame, such as frame I−1 (520), frame I+1 (522), . . . and so on. Now, every Vsync″ 570 can be moved left (or early) until the position of the trailing edge of Vsync′ 560. That means the expanded LE at up side 590 has inserted the maximum number of extend lines.
About the falling edge of LE 551, it will also be extended by expanded line at down side 591, and it will also be limited by next Vsync″ 542. Hence, it is necessary to disable frame signal 522, LE 552 and Vsync″ 542 of next frame I+1.
When frame signals such as 522 are masked, then LE 552 is not necessary. And when LE 552 is disabled, then Vsync″ 542 is not necessary. By the same way, Vsync′ 531 is disabled due to Vsync″ 542 being disabled.
In
The leading edge of LE is extended by the number of expanded lines at the up side. This result corresponds to the period 590 shown in
The key result of the LE signal that is produced by the LE generator is that the LE signal is expanded by adding display panel lines in the vertical direction in order to preserve aspect ratio.
The advantage of this invention is the use of a novel technique for extending the range of the possible periods of the line enable or LE signal. In the prior art and the conventional implementions of the keep-aspect ratio methods, the period of the LE signal cannot be programmed to vary sufficiently to yield the necessary expansion to allow the aspect ratio of the display panel image to match the aspect ratio of the source image. In this invention, generating special signals such as Vsync′, Vsync″ and LE, the main embodiment of the display controller can allow the period of the LE signal to vary enough to match all reasonable aspect ratios of input images.
While the invention has been described in terms of the preferred embodiments, those skilled in the art will recognize that various changes in form and details may be made without departing from the spirit and scope of the invention.
Claims
1. A method of scaling an image for a display comprising the steps:
- providing a source image having an aspect ratio,
- adding blank vertical lines at the top and bottom of the source image so that a resulting image has a second aspect ratio, and
- upscaling the resulting image to a larger x/y dimension while maintaining the second aspect ratio.
2. The method of scaling an image for a display of claim 1 wherein a line enable, LE, signal is expanded at top side of said resulting image.
3. The method of scaling an image for a display of claim 1 wherein a line enable, LE, signal is expanded at bottom side of said resulting image.
Type: Application
Filed: Aug 16, 2007
Publication Date: Dec 13, 2007
Applicant:
Inventor: Ming-Hung Wang (Hsin-Chu)
Application Number: 11/893,819
International Classification: G09G 5/373 (20060101);