Patent background
Fade transition effects are frequently used to transit from one scene to another. For example, in a video clip (or a motion picture), one scene may fade out through a number of frames to become a picture of a solid color (e.g., black); and, another scene may then fade in from the solid color after a number of frames. Fade effects provide a smooth transition from one scene to another, avoiding abrupt scene changes.
Fade effects are often inserted in video and film media as part of the editing process. A number of frames are generated or modified such that the playback of these frames shows the fade effect. Thus, the fade effect becomes part of the media content after the editing, immutably mixed in with other elements of the media content.
A few games have tried to generate video fade effects in real time, in which a function is called repeatedly to adjust the display gamma table for gamma correction (or a fade interface such as DrawSprocket) in order to produce a fade effect. Such an approach requires a significant effort on the part of the game programmer to coordinate the generation of content and the generation of fade effects. Further, these games iterate over a set of fixed steps without regard to elapsed time.
Summary of the description
Methods and apparatuses for the generation of visual effects according to the elapsed time for real time display are described here. Some of the embodiments of the present invention are summarized in this section.
One embodiment of the present invention provides an automated mechanism for displaying visual effects (e.g., fade to or from a target color) through adjusting color correction parameters (e.g., the look up table (LUT) for gamma correction) without disturbing display color calibration settings for the current display device. Time-based adjustments are made in small steps in the beginning and end and large steps in the middle of the transition to provide a perceptually smooth transition effect. In one embodiment, a operating system resource (which may be considered a part of an operating system software which is executing on a data processing system) is provided to manage, synchronously or asynchronously, the visual effect on behalf of requesting applications which are also executing on the data processing system, simplifying the coding of the application programs and providing consistency across application programs. In one embodiment, the operating system resource uses a reservation system to prevent conflict and interference between application programs.
In one aspect of the present invention, a method to produce visual effect on a display includes: receiving a first time length; and adjusting, according to an elapsed time, color correction parameters a plurality of times during a time period of the first length. In one example, the color correction parameters include parameters in one or more look up tables that are used for gamma correction; and the elapsed time is measured by a real time clock which measures time during production of the visual effect. In one example, the look up table is adjusted to blend input color signals with a color; and, the input color signals are blended with the color according to the elapsed time. In one example, a weight on the color to blend the input color signals with the color changes faster at middle of the time period than at one of: a) beginning of the time period; and b) end of the time period. In one example, the weight is determined from a function (e.g., a sine function) of the elapsed time.
In one example, color correction is performed according to the color correction parameters to generate the visual effect. In one example, adjusting the color correction parameters includes: instructing a graphics processing unit (GPU) to adjust the color correction parameters according to the elapsed time. In one example, a frequency for adjusting the color correction parameters is determined according to a refreshing frequency for displaying, on the display, input color signals corrected by the color correction parameters (e.g., at a frequency that is substantially equal to the refreshing frequency).
In one example, adjusting the color correction parameters includes: determining a first value of the elapsed time; determining first values of the color correction parameters according to the first value of the elapsed time; determining a second value of the elapsed time; and, determining second values of the color correction parameters according to the second value of the elapsed time. In one example, adjusting the color correction parameters is performed by an operating system of a data processing system according to a task scheduler in response to a request from an application program running on the data processing system. In one example, the application program is allowed to execute operations during the time period; in another example, the application program is not allowed to execute operations until the request is fulfilled.
In one example, after the time period, the color correction parameters are restored to values that the color correction parameters have before the time period. In one example, the restoring is performed on expiration of a reservation time period, within which said adjusting the color correction parameters is performed.
In one example, the method to produce visual effect on a display further includes: receiving a second time length from a second application program; and adjusting, according to an elapsed time, the color correction parameters a plurality of times during a time period of the second length in response to a request from the second application program; where the first time length is received from a first application program; and adjusting the color correction parameters during the time period of the first length is in response to a request from the first application program.
In one example, the method to produce visual effect on a display further includes: receiving a request for a reservation from a first application program; and granting a first reservation to the first application program in response to a determination that there is no pending reservation; where the first time length is received from the first application program; and, adjusting the color correction parameters is in response to a request from the first application program that possesses the first reservation. In one example, adjusting the color correction parameters is performed after a determination that the request from the first application program is received within a reservation time period for the first reservation; and upon expiration of the reservation, the color correction parameters are restored to values that the color correction parameters have before the reservation.
The present invention includes methods and apparatuses that perform these methods, including data processing systems that perform these methods, and computer readable media which when executed on data processing systems cause the systems to perform these methods.
Display transition effects for multiple application programs

Patent application FIG. 4 illustrates a method to display transition effects for multiple application programs according to one embodiment of the present invention. In one embodiment of the present invention, application programs (e.g., 411, 413, and 419) start visual effects by submitting requests to effect manager 401. Effect manager manipulates gamma look up table 421 to generate the visual effects (e.g., fade in, or, fade out, blinking, and others). Applications (e.g., 411, 413, and 419) draw the contents onto frame buffer 423 by generating and updating the color data for various pixels and storing them in the corresponding locations in the frame buffer for the pixels. Typically, a frame buffer is a memory on display controller 403 that generates the signals to drive display device 405 periodically at a display refreshing frequency. However, the frame buffer may also be located at a different location on a data processing system, such as in a RAM (e.g., 105 in FIG. 1) of the data processing system. Typically, display controller 403 generates the signals to drive the display device without using the processing power of the CPU (central processing unit) of the data processing system. However, on some systems, a CPU may be at least partially relied upon for the generation of the signals to drive the display devices.
In one embodiment of the present invention, display controller 403 has a graphics processing unit (GPU) (not shown in FIG. 4) for combining the data in frame buffer 423 and gamma look up table 421 to drive display device 405. The GPU is a processor different and separate from the CPU. In one embodiment of the present invention, effect manager 401 includes a portion of program instructions for the GPU to manipulate the gamma look up table (e.g., blending the normal gamma look up table with a target color according to a specified blending factor or function). In one embodiment, the portion of the program instructions is loaded on the display controller so that the display controller automatically performs the visual effects through executing the instructions on the GPU, upon receiving a request. In one embodiment, the GPU performs the blending in real time after the gamma correction using the normal gamma look up table without generating the special gamma look up table. Where the GPU can perform the blending in real time, the GPU may also receive parameters that specify a portion of the display area (e.g., a window for a request application) such that the GPU blends the target color with the values looked up from the gamma correction table to show the transition effect only for the specified portion (e.g., using one blending factor for the specified portion of the display area for blending with the target color and another factor for the rest of the display area so that the rest of the display area is not affect by the target color). Further, the GPU may perform the blending according to a frame of blending factors for all the pixels and a frame of target colors for all the pixels, where values for the frame of blending factors and the frame of target colors can be set for different regions so that different applications may perform different visual effects in different regions at the same time. In one embodiment, the GPU generates the special gamma look up table for gamma correction while maintaining a copy of the normal gamma look up table. Where both a special gamma look up table and a normal gamma look up table are separately maintained, it is possible to switch in real time between the two tables so that one table (e.g., the special gamma look up table) can be used for a portion of the display (e.g., the portion containing one or more windows which are displaying the fade transition) and the other table (e.g., the normal gamma look up table) can be used for the other portion of the display (e.g., the desktop user interface) where a fade transition is not displayed. The GPU can selectively use one or the other LUT depending on the current pixel position which is being driven to the display device during a refresh cycle, and in this manner only a portion of the display (e.g., a single window which does not occupy the entire displayable area of the display device) can show the transition effect while the rest of the display (e.g., other windows of a "desktop") do not show the transition effect.
Notice
Macsimum News presents only a brief summary of patents with associated graphic(s) for journalistic news purposes as each such patent application and/or grant is revealed by the U.S. Patent & Trade Office. Readers are cautioned that the full text of any patent applications and/or grants should be read in its entirety for further details.
The sole inventor of patent application [url=http://appft1.uspto.gov/netacgi/nph-Parser?Sect1=PTO2&Sect2=HITOFF&p=1&u=%2Fnetahtml%2FPTO%2Fsearch-bool.html&r=25&f=G&l=50&co1=AND&d=PG01&s1=%22apple+computer%22&OS="apple+computer"&RS="apple+computer"]20060170702[/url] is Michael James Paquette.
{encode=neo@macsimumnews.com title=Email Neo}