Storage method for gamma value look-up table

Information

  • Patent Application
  • 20090237414
  • Publication Number
    20090237414
  • Date Filed
    March 23, 2009
    15 years ago
  • Date Published
    September 24, 2009
    15 years ago
Abstract
A storage method for a gamma value look-up table comprises storing gamma values corresponding to grays exceeding or equaling a 33rd gray in the gamma value look-up table, and calculating gamma values corresponding to a 1st gray to a 32nd gray by a formula.
Description
BACKGROUND

1. Technical Field


The present disclosure relates to look-up tables, and specifically to a storage method for gamma value look-up tables.


2. Description of Related Art


A liquid crystal display (LCD) provides portability, low power consumption, and low radiation, and finds wide use in various portable information devices such as notebooks, personal digital assistants (PDAs), video cameras and others.


Gamma correction technology is widely used to improve the display quality of LCDs. A typical gamma correction technology requires gamma value look-up tables.



FIG. 2 shows a commonly used gamma value look-up table. Each gamma value is stored in a 10 bit form. The lower 8 bits from bit0(1) to bit7(1) of a gamma value corresponding to a 1st gray are stored in bit0 to bit7 of a byte corresponding to an address which is 0. The higher 2 bits from bit8(1) to bit9(1) are respectively stored in bit0 to bit1 of a byte corresponding to an address which is 4.


The lower 8 bits from bit0(2) to bit7(2) of a gamma value corresponding to a 2nd gray are stored in bit0 to bit7 of a byte corresponding to an address which is 1. The higher 2 bits from bit8(2) to bit9(2) are respectively stored in a bit2 to bit3 of a byte corresponding to an address which is 4.


The lower 8 bits from bit0(3) to bit7(3) of a gamma value corresponding to a 3rd gray are stored in bit0 to bit7 of a byte corresponding to an address which is 2. The higher 2 bits from bit8 (3) to bit9 (3) are respectively stored in a bit4 to bit5 of a byte corresponding to an address which is 4.


The lower 8 bits from bit0(4) to bit7(4) of a gamma value corresponding to a 4th gray are stored in bit0 to bit7 of a byte corresponding to an address which is 3. The higher 2 bits from bit8(4) to bit9(4) are respectively stored in a bit6 to bit7 of a byte corresponding to an address which is 4.


In sum, the gamma values corresponding to the 1st gray, the 2nd gray, the 3rd gray and the 4th gray are stored in the byte corresponding to the addresses from 0 to 4. In other words, four gamma values require 5 bytes of storage space. Correspondingly, 256 gamma values require 320 bytes of storage space. The gamma value look-up table requires 320 bytes of storage space. A color LCD includes three look-up tables for gamma values corresponding to red, green, and blue. For this reason, the three gamma value look-up tables require 960 bytes of storage space.


It is preferred to store the three gamma value look-up tables, along with an On-Screen Display (OSD) application supporting parameters relating to brightness, contrast, borders, and color temperature of the display, in 1024 bytes of memory. Because a typical OSD parameter needs 180 bytes of storage space, 844 bytes of storage space remain in the memory, insufficient in this case to accommodate the three gamma value look-up tables.


What is thus called for is a storage method for gamma value look-up tables which can overcome the above-described deficiencies.





BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 is a gamma value look-up table used in the method of the disclosure.



FIG. 2 is a commonly used gamma value look-up table.





DETAILED DESCRIPTION

Reference will now be made to the drawings to describe preferred and exemplary embodiments of the disclosure in detail.



FIG. 1 is a gamma value look-up table used in the method of the disclosure, storing gamma values corresponding to a 33rd gray to a 256th gray. Each gamma value corresponding to the 33rd gray to the 256th gray is stored in a 10 bit form. The lower 8 bits from bit0(33) to bit7(33) of a gamma value corresponding to a 33rd gray are stored in bit0 to bit7 of a byte corresponding to an address which is 0. The higher 2 bits from bit8 (33) to bit9 (33) are respectively stored in bit0 to bit1 of a byte corresponding to an address which is 4.


The lower 8 bits from bit0(34) to bit7(34) of a gamma value corresponding to a 34th gray are stored in bit0 to bit7 of a byte corresponding to an address which is 1. The higher 2 bits from bit8(34) to bit9(34) are respectively stored in bit2 to bit3 of a byte corresponding to an address which is 4.


The lower 8 bits from bit0(35) to bit7(35) of a gamma value corresponding to a 35th gray are stored in bit0 to bit7 of a byte corresponding to an address which is 2. The higher 2 bits from bit8(35) to bit9(35) are respectively stored in bit4 to bit5 of a byte corresponding to an address which is 4.


The lower 8 bits from bit0(36) to bit7(36) of a gamma value corresponding to a 36th gray are stored in bit0 to bit7 of a byte corresponding to an address which is 3. The higher 2 bits from bit8(36) to bit9(36) are respectively stored in bit6 to bit7 of a byte corresponding to an address which is 4.


In sum, the gamma values corresponding to the 33rd gray, the 34th gray, the 35th gray and the 36th gray are stored in the bytes corresponding to the addresses from 0 to 4. By parity of reasoning, the gamma values corresponding to the 33rd gray to the 256th gray require 280 bytes of storage space.


Gamma values corresponding to a 1st gray to a 32nd gray can be expressed as the formula:







gamma


(
i
)


=



gamma


(
256
)


×


(


i
-

256

)

γ


+


(



gamma


(
33
)


-


gamma


(
256
)


×


(

32
256

)

γ



32

)

×
i






Wherein i denotes a gray, i exceeds or equals 1 and is less than or equal to 32, gamma(i) denotes a gamma value corresponding to an ith gray, gamma(256) denotes a gamma value corresponding to the 256th gray, gamma(33) denotes a gamma value corresponding to the 33rd gray, and γ denotes a parameter exceeding or equaling 1.8 and less than or equal to 2.4. The preferred value of the parameter γ is 2.2.


Because the gamma value look-up table stores only the gamma values corresponding to the 33rd gray to the 256th gray and the gamma values corresponding to the 1st gray to the 32nd gray can be calculated by the formula, the gamma value look-up table requires 280 bytes of storage space. Three gamma value look-up tables require 840 bytes of storage space. For this reason, the three gamma value look-up tables and an OSD parameter can be stored in 1024 bytes of storage space.


In the described exemplary embodiment, in the presence of more than 256 grays, the storage method of the gamma value look-up table is also useful.


It is to be further understood that even though numerous characteristics and advantages of preferred and exemplary embodiments have been set out in the foregoing description, together with details of structures and functions associated with the embodiments, the disclosure is illustrative only, and changes may be made in detail (including in matters of arrangement of parts) within the principles of the disclosure to the full extent indicated by the broad general meaning of the terms in which the appended claims are expressed.

Claims
  • 1. A storage method for a gamma value look-up table, comprising: storing gamma values corresponding to grays exceeding or equaling a 33rd gray in the gamma value look-up table;calculating gamma values corresponding to a 1 st gray to a 32nd gray by a formula.
  • 2. The storage method for a gamma value look-up table of claim 1, wherein the number of grays is 256.
  • 3. The storage method for a gamma value look-up table of claim 1, wherein the gamma values corresponding to the 1st gray to the 32nd gray are expressed as the formula:
  • 4. The storage method for a gamma value look-up table of claim 3, wherein the parameter γ is 2.2.
  • 5. The storage method for a gamma value look-up table of claim 4, wherein each gamma value corresponding to the 33rd gray to the 256th gray is stored in a 10 bit form.
  • 6. The storage method for a gamma value look-up table of claim 5, wherein gamma values corresponding to the 33rd gray, a 34th gray, a 35th gray and a 36th gray are stored in bytes corresponding to addresses from 0 to 4.
  • 7. The storage method for a gamma value look-up table of claim 6, further comprising: storing the lower 8 bits of a gamma value corresponding to a 33rd gray in bit0 to bit7 of a byte corresponding to an address which is 0;storing the higher 2 bits of the gamma value corresponding to the 33rd gray in bit0 to bit1 of a byte corresponding to an address which is 4 respectively;storing the lower 8 bits of a gamma value corresponding to a 34th gray in bit0 to bit7 of a byte corresponding to an address which is 1;storing the higher 2 bits of the gamma value corresponding to the 34th gray in bit2 to bit3 of a byte corresponding to an address which is 4 respectively;storing the lower 8 bits of a gamma value corresponding to a 35th gray in bit0 to bit7 of a byte corresponding to an address which is 2;storing the higher 2 bits of the gamma value corresponding to the 35th gray in bit4 to bit5 of a byte corresponding to an address which is 4 respectively;storing the lower 8 bits of a gamma value corresponding to a 36th gray in bit0 to bit7 of a byte corresponding to an address which is 3;storing the higher 2 bits of the gamma value corresponding to the 36th gray in bit6 to bit7 of a byte corresponding to an address which is 4 respectively.
Priority Claims (1)
Number Date Country Kind
97110106 Mar 2008 TW national