This application claims the benefit of Taiwan application Serial No. 99134109, filed Oct. 6, 2010, the subject matter of which is incorporated herein by reference.
1. Field of the Invention
The invention relates in general to an apparatus and a method for adjusting an image, and more particularly to an apparatus and a method for dynamically adjusting an image.
2. Description of the Related Art
With the technology, which is changing with each passing day, various displays have been gradually applied to various electronic devices, such as a computer, a mobile phone and a media player. In order to seek for the better display quality, a processor has to perform image adjusting on each pixel before the video signal is outputted to the display, and then the adjusted pixels are outputted to the display.
However, performing the image adjusting on each pixel by the processor occupies too many resources of the processor. More particularly, the resources of the processor in a handheld electronic device are very precious. Thus, the conventional image adjusting method is not suitable for the handheld electronic device. In addition, the conventional image adjusting method has to be designed according to the operation system or driver. Once the operation system or driver is upgraded, the image adjusting function cannot be supported any more. In addition, the conventional image adjusting method further has to be designed according to different video players. For example, one image adjusting method has to be provided for the static video player, and another different image adjusting method has to be provided for the dynamic video player.
The invention is directed to an apparatus and a method for dynamically adjusting an image, wherein the apparatus and the method dynamically adjust a gamma setting value of a display according to a current frame on the display.
According to a first aspect of the present invention, a method for dynamically adjusting an image is provided. The method includes the following steps. First, a current frame displayed on a display is captured. Next, one of a plurality of reference curves is chosen as an optimum curve according to the current frame. Then, a gamma setting value of the display is adjusted according to the optimum curve.
According to a second aspect of the present invention, an apparatus for dynamically adjusting an image is provided. The apparatus includes a capturing unit, an optimum curve generating unit, a storage unit and an adjusting unit. The capturing unit captures a current frame displayed on a display. The optimum curve generating unit chooses one of a plurality of reference curves as an optimum curve according to the current frame. The storage unit stores the reference curves. The adjusting unit adjusts a gamma setting value of the display according to the optimum curve.
The above and other aspects of the invention will become better understood with regard to the following detailed description of the preferred but non-limiting embodiment(s). The following description is made with reference to the accompanying drawings.
In order to enhance the display quality, several apparatuses and methods for dynamically adjusting images will be disclosed in the following embodiments. The method for dynamically adjusting the image includes the following steps. First, a current frame displayed on a display is captured. Next, one of a plurality of reference curves is chosen as an optimum curve according to the current frame. Then, a gamma setting value of the display is adjusted according to the optimum curve.
The apparatus for dynamically adjusting an image includes a capturing unit, an optimum curve generating unit, a storage unit and an adjusting unit. The capturing unit captures a current frame displayed on a display. The optimum curve generating unit chooses one of a plurality of reference curves as an optimum curve according to the current frame. The storage unit stores the reference curves, and the adjusting unit adjusts a gamma setting value of the display according to the optimum curve.
The conventional method for adjusting the image has to obtain the information of the video source so that the subsequent adjusting process can be performed. So, the conventional method has to be designed according to the operation system or the driver. Once the operation system or driver is upgraded, the image adjusting function cannot be supported any more, and the frame quality cannot be improved. In addition, the conventional image adjusting method has to be designed according to different video players due to different video sources. For example, one image adjusting method has to be provided for a static video player, and another different image adjusting method has to be provided for a dynamic video player.
Different from the conventional image adjusting method, this embodiment captures the current frame, displayed on the display, for the subsequent image adjustment. Consequently, whether the operation system or driver is upgraded will not affect the image adjusting function, supported by this embodiment, so that the frame quality can be effectively improved. In addition, this embodiment captures the current frame, displayed on the display, for the subsequent image adjustment, and thus can be directly applied to various video players. Thus, it is unnecessary to design the image adjusting method according to different video players.
After the step 11 is finished, the step 12 is performed. As shown in the step 12, the optimum curve generating unit 22 chooses one of the reference curves as an optimum curve according to the current frame. The reference curves may be generated according to a high dynamic range (HDR) algorithm or a histogram equalization algorithm, and the reference curves may be further respectively built into several look-up tables to increase the image processing speed.
For example, the gray-scale distribution of the current frame is shown in
After the step 12 is finished, the step 13 is performed. As shown in step 13, the adjusting unit 23 adjusts the gamma setting value of the display, such as a gamma ramp value, according to the optimum curve. It is to be specified that the adjusting unit 23 may adjust the gamma setting value of the display according to the optimum curve in many aspects, which do not intend to restrict the scope of this invention. For example, the adjusting unit 23 adjusts the gamma setting value of the display through Microsoft's graphical device interface (GDI) or DirectX, and thus achieves the effect of properly adjusting the brightness, contrast or color saturation of the frame.
In the conventional image adjusting method, the processor performs processing and adjusting processes on each pixel and then outputs the adjusted and processed results to the display. So, a lot of resources of the processor are occupied. Different from the conventional image adjusting method, this embodiment directly adjusts the gamma setting value of the display, and thus greatly reduces the operation works of the processor. It is to be specified that, in the handheld electronic device, the resources of the processor are very precious. Because the conventional image adjusting method significantly wastes the resources of the processor, it is not suitable for the handheld electronic device. Oppositely, this embodiment cannot occupy too many resources of the processor, and is quite suitable for the application of the handheld electronic device. Furthermore, even if the original video source has the poor frame quality, the display can display the better frame quality through the image adjustment of the embodiment.
Please refer to
Please refer to
The aspect of checking the video player has been disclosed but is not restricted thereto. The method of checking the video player may also be performed through Microsoft's Hook technique or by checking the entity for executing the application program. Furthermore, the object of checking the video player may also be achieved by creating a table, looking up the registry table or window searching.
Although several embodiments of the invention have been described, any technique is still deemed as falling within the scope of the invention as long as it is performed by capturing the current frame displayed on the display, thus choosing one of reference curves as an optimum curve, and adjusting the gamma setting value of the display according to the optimum curve.
The apparatus and method for dynamically the images according to the invention have many advantages, some of which will be listed in the following.
First, the occupied resources of the processor are decreased.
Second, the method for adjusting the image needs not to be re-designed in response to the updating of the operation system and the driver.
Third, it is unnecessary to design different method for adjusting images in response to different video players.
While the invention has been described by way of example and in terms of the preferred embodiment(s), it is to be understood that the invention is not limited thereto. On the contrary, it is intended to cover various modifications and similar arrangements and procedures, and the scope of the appended claims therefore should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements and procedures.
Number | Date | Country | Kind |
---|---|---|---|
099134109 | Oct 2010 | TW | national |