The present disclosure relates generally to dithering, and more particularly, to error diffusion and spatiotemporal dithering in electronic displays.
This section is intended to introduce the reader to various aspects of art that may be related to various aspects of the present disclosure, which are described and/or claimed below. This discussion is believed to be helpful in providing the reader with background information to facilitate a better understanding of the various aspects of the present disclosure. Accordingly, it should be understood that these statements are to be read in this light, and not as admissions of prior art.
Electronic displays (e.g., liquid crystal displays (LCDs)) are commonly used as screens or displays for a wide variety of electronic devices, including such consumer electronics as televisions, computers, and handheld devices (e.g., cellular telephones, audio and video players, gaming systems, and so forth). Such display devices typically provide a flat display in a relatively thin and low weight package that is suitable for use in in a variety of electronic goods. In addition, such display devices typically use less power than comparable display technologies, making them suitable for use in battery powered devices or in other contexts where it is desirable to minimize power usage.
Display devices typically include thousands (e.g., or millions) of picture elements, e.g., pixels, arranged in rows and columns. For any given pixel of a display device, the amount of light that viewable on the display depends on the voltage applied to the pixel. However, applying a single direct current (e.g., DC) voltage could eventually damage the pixels of the display. Thus, to prevent such possible damage, display devices typically alternate, or invert, the voltage applied to the pixels between positive and negative DC values for each pixel.
To display a given color at a given pixel, the display device may receive a set of bits of image data, whereby portions of the set of bits of data correspond to each of the pixel colors. However, as the transition time for these displays have increased, pixels may not transition to a new color rapidly enough, which may lead to an undesired effect on the image termed “motion blurring.” To minimize this motion blurring, response times of the display devices may be increased. One manner in which to improve response times of the display devices may include reducing a portion size of data corresponding to each of the primary colors.
The reduction of data bits corresponding to colors may allow the pixels of the display device to transition from one level to another more rapidly, however, it may also reduce the number of levels (e.g., colors) that each pixel may be able to render. To overcome this reduction in levels, dithering of the pixels may be performed. Dithering of the pixels may include applying slightly varying shades of color in a group of adjacent pixels to “trick” the human eye into perceiving the desired color, despite the fact that none of the pixels may be actually displaying the desired color.
The use of dithering may allow display devices that receive lower-bit color data to simulate colors achievable by higher-bit color data display devices. However, use of dithering may, in combination with the display device inversion techniques discussed above, lead to generation of visible artifacts on the display device. It may be useful to provide more advanced and improved image dithering techniques.
Certain aspects commensurate with certain disclosed embodiments are set forth below. It should be understood that these aspects are presented merely to provide the reader with a brief summary of the disclosure and that these aspects are not intended to limit the scope of the disclosure or the claims. Indeed, the disclosure and claims may encompass a variety of aspects that may not be set forth below.
Devices and methods for reducing or eliminating spatiotemporal dithering image artifacts are provided. By way of example, a method includes providing positive polarity and negative polarity data signals to a plurality of pixels of a display during a first frame period, in which the first frame period corresponds a first spatiotemporal rotation phase. The method includes providing the positive polarity signals and the negative polarity signals to the plurality of pixels of the display during a second frame period, in which the second frame period corresponds a second spatiotemporal rotation phase. A spatiotemporal rotation phase sequence provided to the display comprises the first spatiotemporal rotation phase and the second spatiotemporal rotation phase. One of the first spatiotemporal rotation phase and the second spatiotemporal rotation phase of the spatiotemporal rotation phase sequence is altered during the first frame period or the second time period.
Advantages of the disclosure may become apparent upon reading the following detailed description and upon reference to the drawings in which:
One or more specific embodiments of the present disclosure will be described below. These described embodiments are only examples of the presently disclosed techniques. Additionally, in an effort to provide a concise description of these embodiments, all features of an actual implementation may not be described in the specification. It should be appreciated that in the development of any such actual implementation, as in any engineering or design project, numerous implementation-specific decisions must be made to achieve the developers' specific goals, such as compliance with system-related and business-related constraints, which may vary from one implementation to another. Moreover, it should be appreciated that such a development effort might be complex and time consuming, but would nevertheless be a routine undertaking of design, fabrication, and manufacture for those of ordinary skill having the benefit of this disclosure.
When introducing elements of various embodiments of the present disclosure, the articles “a,” “an,” and “the” are intended to mean that there are one or more of the elements. The terms “comprising,” “including,” and “having” are intended to be inclusive and mean that there may be additional elements other than the listed elements. Additionally, it should be understood that references to “one embodiment” or “an embodiment” of the present disclosure are not intended to be interpreted as excluding the existence of additional embodiments that also incorporate the recited features.
Embodiments of the present disclosure generally relate to spatiotemporal dithering and methods for reducing and/or substantially eliminating voltage or pixel charge imbalance, and, by extension, image artifacts that may be caused by spatiotemporal dithering. In certain embodiments, a graphics processor it may be used to periodically and/or aperiodically skip or alter one or more spatiotemporal dithering patterns or phases of a sequence of spatiotemporal patterns or phases corresponding to each frame of data stored to the pixels of a display. Specifically, sporadically (e.g., periodically or aperiodically) skipping or altering one or more spatiotemporal dithering patterns or phases of a predetermined sequence of spatiotemporal patterns or phases when driving the pixels of the display may reduce and/or substantially eliminate voltage and/or charge imbalance of the pixels of the display. Indeed, in some embodiments, the graphics processor may include a counter that is incremented with each frame of a data provided to the pixels of until a predetermined (e.g., static) or configurable (e.g., variable) charge threshold on the individual pixels of the display is reached. Once the pixel charge threshold is reached, the graphics processor may skip one or more spatiotemporal patterns or phases in the sequence or alter the sequence of the one or more spatiotemporal patterns or phases based on the pixel charge.
In some other embodiments, the graphics processor may include a timer that tracks the number of frames provided to the pixels of the display per unit time, and may be used to skip a frame or alter the sequence of spatiotemporal patterns or phases provided to the pixels of the display a number of times per unit time (e.g., skip a spatiotemporal phase or alter the sequence of spatiotemporal phases once or twice per minute). Still, in some other embodiments, the graphics processor may measure and monitor the pixel charge (e.g., monitor how closely the real-time pixel charge is approaching the configurable thresholds), and may skip a spatiotemporal phase or alter the sequence of spatiotemporal phases provided to the pixels of the display when the pixel charge approaches a pixel charge value less than a positive polarity pixel charge threshold value or greater than a negative polarity pixel charge threshold value. Specifically, the graphics processor may randomize the pixel charge threshold for which the skipping or alteration of the sequence of spatiotemporal phases may take place. In this way, the presently disclosed techniques may prevent the pixel charge from exceeding the physical charge characteristics of the pixels, and instead be limited to a nominal pixel charge value (e.g., pixel charge value within the operational characteristic bounds of the pixels). This may thus reduce and/or substantially eliminate voltage and/or charge imbalance of the pixels of the display, and, by extension, reduce and/or substantially eliminate image artifacts based thereon that may become apparent on the display.
With these features in mind, a general description of suitable electronic devices useful in reducing and/or substantially eliminating voltage or pixel charge imbalance due to spatiotemporal dithering is provided. Turning first to
By way of example, the electronic device 10 may represent a block diagram of the notebook computer depicted in
In the electronic device 10 of
In certain embodiments, the display 18 may be a liquid crystal display (e.g., LCD), which may allow users to view images generated on the electronic device 10. In some embodiments, the display 18 may include a touch screen, which may allow users to interact with a user interface of the electronic device 10. Furthermore, it should be appreciated that, in some embodiments, the display 18 may include one or more organic light emitting diode (e.g., OLED) displays, or some combination of LCD panels and OLED panels.
The input structures 22 of the electronic device 10 may enable a user to interact with the electronic device 10 (e.g., pressing a button to increase or decrease a volume level). The I/O interface 24 may enable electronic device 10 to interface with various other electronic devices, as may the network interfaces 26. The network interfaces 26 may include, for example, interfaces for a personal area network (e.g., PAN), such as a Bluetooth network, for a local area network (e.g., LAN) or wireless local area network (e.g., WLAN), such as an 802.11x Wi-Fi network, and/or for a wide area network (e.g., WAN), such as a 3rd generation (e.g., 3G) cellular network, 4th generation (e.g., 4G) cellular network, or long term evolution (e.g., LTE) cellular network. The network interface 26 may also include interfaces for, for example, broadband fixed wireless access access networks (e.g., WiMAX), mobile broadband Wireless networks (e.g., mobile WiMAX), and so forth. As further illustrated, the electronic device 10 may include a power source 29. The power source 29 may include any suitable source of power, such as a rechargeable lithium polymer (e.g., Li-poly) battery and/or an alternating current (e.g., AC) power converter.
The internal components may further include display control logic 28. The display control logic 28 may be coupled to display 18 and to processor(s) 12. The display control logic 28 may be used to receive a data stream, for example, from processor(s) 12, indicative of an image to be represented on display 18. The display control logic 28 may be an application specific integrated circuit (e.g., ASIC), or any other circuitry for adjusting image data and/or generate images on display 18.
For example, in certain embodiments, the display control logic 28 may receive a data stream equivalent to 24 bits of data for each pixel of display 18, with 8-bits of the data stream corresponding to a level for each of the primary colors of red, blue, and green for each sub-pixel. The display control logic 28 may operate to convert these 24 bits of data for each pixel of display 18 to 18-bits of data for each pixel of display 18, that is, 6-bits of the data stream corresponding to a level for each of the primary colors of red, blue, and green for each sub-pixel. This conversion may, for example, include removal of the two least significant bits of each of the 8-bits of the data stream corresponding to a level for each of the primary colors of red, blue, and green. Alternatively, the conversion may, for example, include a look-up table or other means for determining which 6-bit data value should correspond to each 8-bit data input.
In certain embodiments, the electronic device 10 may take the form of a computer, a portable electronic device, a wearable electronic device, or other type of electronic device. Such computers may include computers that are generally portable (e.g., such as laptop, notebook, and tablet computers) as well as computers that are generally used in one place (e.g., such as conventional desktop computers, workstations and/or servers). In certain embodiments, the electronic device 10 in the form of a computer may be a model of a MacBook®, MacBook® Pro, MacBook Air®, iMac®, Mac® mini, or Mac Pro® available from Apple Inc. By way of example, the electronic device 10, taking the form of a notebook computer 30A, is illustrated in
The handheld device 30B may include an enclosure 36 to protect interior components from physical damage and to shield them from electromagnetic interference. The enclosure 36 may surround the display 18, which may display indicator icons 39. The The indicator icons 39 may indicate, among other things, a cellular signal strength, Bluetooth connection, and/or battery life. The I/O interfaces 24 may open through the enclosure 36 and may include, for example, an I/O port for a hard wired connection for charging and/or content manipulation using a standard connector and protocol, such as the Lightning connector provided by Apple Inc., a universal service bus (e.g., USB), or other similar connector and protocol.
User input structures 40 and 42, in combination with the display 18, may allow a user to control the handheld device 30B. For example, the input structure 40 may activate or deactivate the handheld device 30B, one of the input structures 42 may navigate user interface to a home screen, a user-configurable application screen, and/or activate a voice-recognition feature of the handheld device 30B, while other of the input structures 42 may provide volume control, or may toggle between vibrate and ring modes. Additional input structures 42 may also include a microphone may obtain a user's voice for various voice-related features, and a speaker to allow for audio playback and/or certain phone capabilities. The input structures 42 may also include a headphone input to provide a connection to external speakers and/or headphones.
Turning to
Similarly,
In certain embodiments, the graphics processor 44 may, for example, utilize internal memory 46 in performing the functions required by display control logic 28. One of the functions of internal memory 46 may be the storage of a look-up table utilized by graphics processor 44 to convert the received data stream (e.g., 24-bit) into a data stream (e.g., 18-bit) for display on the display 18 (e.g., 6-bit). Another function of internal memory 46 may be to store an algorithm corresponding to a dithering technique to be performed by graphics processor 44. This algorithm may allow for the dithering of the pixels of display 18. For example, the dithering algorithm may be computer code adapted to be stored in internal memory 46 and to be operated on by graphics processor 44 to illuminate a small grouping of pixels, such as four pixels, with slightly varying shades of color that “trick” the human eye into perceiving the desired color, despite the fact that the small group of pixels may not be actually displaying the desired color.
In certain embodiments, the graphics processor 44 may include dithering circuitry 48, or dithering circuitry 48 may be located external to graphics processor 44 either in or outside of display control logic 28. The dithering circuitry 48 may be used to perform dithering of the pixels in display 18 in a manner substantially similar to that described above.
To perform the ED dithering, the dithering circuitry may receive a set of input bits 54, which represent the input pixel values. In some embodiments, the input bits 54 may be 14-bit values. The dithering circuitry 48 may reduce the number of bits in the output bits 56 (e.g., from 14-bit values to 12, 10 or 8-bit values). For example, the dithering circuitry 48 may use least-significant-bit (LSb) truncation and/or rounding, ED dithering and/or ST dithering. In one embodiment, ED dithering may result in a 2-bit dither (e.g., for the dithered most-significant-bit (MSb). Further, in one embodiment, the ST dithering may result in 2 or 4-bit dithering (e.g., for the remaining dithered bits). Additionally and/or alternatively, the input bits 54 may be truncated and/or rounded (e.g., from 14-bit to 12-bit or 10-bit to 8-bit).
For example, as illustrated in the
In the ED dithering logic 62, the resultant bits 60 may either be processed by the ED dithering circuitry 50 or bypass the ED dithering circuitry 50 via the bypass 64. In one embodiment, a multiplexer 66 determines which of these two options is used.
When the resultant bits 60 are processed by the ED dithering circuitry 50, the resultant bits of the ED dithering logic 62 (the “ED output 68”) will include valid bits “VB”, dithered bits “D”, and depth reduced bits “DR,” as illustrated. In contrast, when the ED dithering circuitry 50 is bypassed, the ED output 68 will include valid bits “VB” and zero bits “0”.
The ED output 68 may be provided as an ST dithering input 70, which may include valid bits “VB”. The ST dithering input 70 may be truncated by truncation logic 72, resulting in a truncated ST input 74, which may include valid bits “VB” and depth reduced bits “DR,” as a result of the truncation. The truncated ST input 74 may either be processed by the ST dithering circuitry 52 or bypass the ST dithering circuitry 52 via the bypass 78. In one embodiment, a multiplexer 80 determines which of these two options is used.
When the ST dithering input 70 is processed by the ST dithering circuitry 52, the resultant bits of the ST dithering logic 76 (the “ST output 82”) will include valid bits “VB”, dithered bits “D”, and depth reduced bits “DR,” as illustrated. In contrast, when the ST dithering circuitry 52 is bypassed, the ST output 68 will include valid bits “VB” and zero bits “0”.
Thus, the dithering circuitry 48 may output a bit-reduced number of output bits 56. The reduced number of bits may be due to rounding, truncation, ED dithering and/or ST dithering.
Error Diffusion Dithering
Turning now to a more detailed discussion of ED dithering,
i. Error Diffusion Dithering with RGB Pixel Arrangement
The distribution of the error may differ depending on the arrangement of the pixels in the display 18. For example,
The residual error value is determined by comparing a pixel's value with a programmable threshold per color component. In some embodiments, this programmable threshold is set to a default value of 0.5. As illustrated in
Below is pseudocode that represents an embodiment for implementing Floyd-Steinberg dithering for a RGB pixel arrangement:
ii. Error Diffusion Dithering with Gr/Gb Pixel Arrangement
It may be beneficial to modify the error distribution when alternative pixel arrangements are present. For example, in contrast to an RGB arrangement, where each pixel consists of an RGB triplet, in a Gr/Gb arrangement, each pixel consists of Gr pair or a Gb pair. Thus, in a Gr/Gb arrangement, during ED dithering, the R and B sub-pixels arrive at half the rate of the G sub-pixels. Because the color distribution with a Gr/Gb arrangement is different than in an RGB arrangement, it may be beneficial to alter the dithering techniques.
In one embodiment, the dithering circuitry 48 may receive an indication of a particular arrangement of pixels (e.g., RGB or Gr/Gb) and alter the ED dithering and/or ST dithering based upon the indication. For example, if the indication indicates that the arrangement of pixels is an RGB arrangement, the ED dithering may be performed in accordance with the discussion of the section “”Error Diffusion Dithering with RGB Pixel Arrangement.” In contrast, when the indication indicates that the pixel arrangement is a Gr/Gb arrangement, the ED dithering may be performed in accordance with the discussion of the section “Error Diffusion Dithering with Gr/Gb Pixel Arrangement.”
Below is pseudocode that represents an embodiment for implementing Floyd-Steinberg dithering for red and blue channels in a display having a Gr/Gb pixel arrangement:
Spatial Temporal Dithering
Turning now to a more detailed discussion of spatiotemporal (ST) dithering,
Pre-scaling involves truncating 0 or more LSb from the ST input pixel data 140. For example, when it is desirable to use dithering to reduce a number of bits from 10-bits to 8-bits, 1 bit can be truncated and 9-bits of data may be dithered to 9-bits of data. Alternatively, the 10-bit data may be dithered to 8-bits without truncation or 2-bits may be truncated, resulting in 8-bits of data.
The ST input pixel data 140 may additionally and/or alternatively be skewed. Skewing is a process where the ST input pixel value range is reduced to fit the output levels. Certain levels in the input data may not be reproduced via dithering. For example, when 10-bit pixels (e.g., having grey levels of 0 to 1023) are to be displayed on a 8-bit display panel (e.g., having grey levels 0 to 255), source grey levels 0, 4, 8, . . . , and 1020 are represented by panel grey levels 0, 1, 2, . . . , and 244, respectively. Other source grey levels can be represented by dithering between two panel grey levels, except for source grey levels 1021-1023, as these levels would use dithering between panel grey levels 255 and 256. Because the panel grey level 256 does not exist, these 3 uppermost source levels are clamped at 1020 and, thus, are lost. Skewing adds flexibility to define where grey levels are lost, rather than always losing top levels. Thus, skewing may be used to minimize impact on the image quality. Particular skew locations where grey levels can be lost may be provided, such that the upper range of the input data may be represented by a lower-bit display.
Once the ST input pixel data 140 is pre-scaled and skewed into input 141, it is decompressed into an MSb part 142 and an LSb part 144. The width of the LSb part 144 may be set to bit-width difference between the input 140 and a dithered output 146. The rest of the bits are part of the MSb part 142. The LSb part 144, combined with the current frame number 148, and the pixel coordinates (e.g., X/Y coordinates) 150 of the current pixel, may be used as an index to look up the “Kernel Bit,” via Kernel Bit Lookup table 152. The dithered output 146 may either be the input pixel data 140 (when bypassing dithering operations) or may be the MSB part 142 added to the kernel bit.
i. Spatiotemporal Dithering with RGB Pixel Arrangement
Discussing first spatiotemporal dithering for a display with an RGB pixel arrangement,
Each Kernel n has exactly 2*n ones out of 16 elements. Therefore, an example input image, for which the LSb part 144 of every pixel is “n”, is dithered correctly when averaged spatially. In addition to this spatial aspect, a temporal aspect is added to the algorithm by rotating the kernels every frame. Each kernel is subdivided (e.g., as illustrated by the dashed sub-division lines 172) into 2×2 sub-kernels 174. Each sub-kernel 174 is rotated 90 degrees clockwise for each successive frame, repeating the rotation sequence every 4 frames.
Each color channel (RGB) can be set to rotate with a different phase offset, so that the dithering pattern for each color does not overlap with the dithering pattern of another color. Avoiding overlap of dithering patterns reduces the chance of flickers or other dithering artifacts. The R and B channels can have independent rotation phase offsets with respect to the G channel.
The kernel bit patterns and the sequence of rotation phases can be programmed via the use of registers. In some embodiments, it may be useful to tweak these registers for some display panels, because the panel's own flickering pattern may interact with the spatial-temporal dithering, resulting in increased flicker or visible dithering artifacts. For example, for LCD panels employing two-dot inversion, setting the registers in a rotation phase sequence 0->2->1->3 instead of the default sequence 0->1->2->3 may improve the image quality.
ii. Spatiotemporal Dithering with Gr/Gb Pixel Arrangement
When a display uses a Gr/Gb pixel arrangement, the Spatiotemporal dithering process may be altered from the spatiotemporal dithering process of a display using an RGB pixel arrangement, discussed above. In some embodiments, the dithering circuitry 48 may receive an indication of a particular arrangement of pixels (e.g., RGB or Gr/Gb) and alter the ST dithering based upon the indication. For example, if the indication indicates that the arrangement of pixels is an RGB arrangement, the ST dithering may be performed in accordance with the discussion in the section “Spatiotemporal Dithering with RGB Pixel Arrangement” found above. In contrast, when the indication indicates that the pixel arrangement is a Gr/Gb arrangement, the ST dithering may be performed in accordance with the discussion of the section “Spatiotemporal Dithering with Gr/Gb Pixel Arrangement.”
As discussed above, the Gr/Gb pixel arrangement results in a square pattern for green sub-pixels and a diamond pattern for red and blue sub-pixels. Accordingly, because the green sub-pixels remain in a square pattern, similar to RGB pixel arrangements, when performing spatiotemporal dithering for a display with a Gr/Gb pixel arrangement, the green sub-pixels may be processed in accordance with the discussion of the section “Spatiotemporal Dithering with RGB Pixel Arrangement.”
Thus, for the green channels, for each pixel, the LSb part 144 is used to choose one kernel out of the 8 kernels of
Further, a temporal aspect is added by rotating the kernels every frame. As mentioned above, each kernel is subdivided (e.g., as illustrated by the dashed sub-division lines 172) into 2×2 sub-kernels 174. Each sub-kernel 174 is rotated 90 degrees clockwise for each successive frame, repeating the rotation sequence every 4 frames.
However, because the red and blue sub-pixels are in a diamond pattern, modifications to the spatiotemporal dithering may be warranted. In a first embodiment, illustrated in
a. Standard Matrix ST Dither
In this mode, the spatiotemporal dithering process discussed above in the section “Spatiotemporal Dithering with RGB Pixel Arrangement” is applied, but only to every second pixel for the R and B channels (i.e. the pixel that contains the appropriate R or B sub-pixel). Due to the diamond pattern of the R and B sub-pixels, the actual pixel number alternates line to line. For example, if R is processed for every even pixel in line N, it will be processed for every odd pixel in line N+1. In all other respects, this mode follows the standard ST Dither mode discussed above.
Accordingly, instead of the 2 LSb bits of the x and y coordinates being used as horizontal and vertical indices respectively, to select one element from the chosen kernel, as discussed above, for a Gr/Gb pixel arrangement, bits 2:1 of the x coordinate and bits 1:0 of they coordinate are used as horizontal and vertical indices respectively, to select one element from the chosen kernel.
As illustrated by box 200 in
As mentioned above, the kernels are rotated each frame. Accordingly, because the kernel application is a rectangular shape, the ordinary rotation of the kernels may not be optimal. To counter-act the effects of dithering in this rectangularu shape, in certain embodiments, the kernel may be doubled, such that a kernel is applied to another four lines of pixels 0-7. This may result in a more square application
b. 45 Degree Rotated ST Dither
In a second embodiment, the dithering matrix may be applied at 45 degrees for R and B sub-pixels, in order to better match the pixel layout.
While the various embodiments may be susceptible to various modifications and alternative forms, specific embodiments have been shown by way of example in the drawings and have been described in detail herein. However, it should be understood that that the claims are not intended to be limited to the particular forms disclosed. Rather, the the claims are to cover all modifications, equivalents, and alternatives falling within the spirit and scope of the disclosure.
This application is a Non-Provisional Patent Application of U.S. Provisional Patent Application No. 62/398,411, entitled “Dithering Techniques for Electronic Displays”, filed Sep. 22, 2016, which is herein incorporated by reference in its entirety and for all purposes.
Number | Date | Country | |
---|---|---|---|
62398411 | Sep 2016 | US |