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 which 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 which perform these methods, including data processing systems which perform these methods, and computer readable media which when executed on data processing systems cause the systems to perform these methods.
Other features of the present invention will be apparent from the accompanying drawings and from the detailed description that follows.

Example scenario of displaying transition effects
Patent FIG. 5 shows an example scenario of displaying transition effects according to one embodiment of the present invention. In one embodiment of the present invention, the effect manager serves the requests for performing visual effects from multiple application programs. To avoid conflicting operations, a reservation system is provided so that the fading operations of one program will not interfere with the operations of other programs.
In FIG. 5, there is no active reservation during time period 501; and, the effect manager accepts the requests for reservation. At time ta (511), application A requests for a reservation for duration T1. Since there is no conflicting reservation, the request from application A is accepted; and, time period T1 (531) is then reserved for application A, during which the effect manager performs visual effects only in response to request from application A. During the time period T1 (531), the effect manager denies any requests from applications other than application A. In one implementation of the present invention, a token is given to application A such that application A can request for a fade operation using the token. In one embodiment of the present invention, application A may be one of a suite of applications; and, application A may pass the token to another one of the suite of applications to allow that application to request a visual effect during the time period reserved by the token.
At time tb (512), application A requests for a fade out effect for a duration of D1. Thus, the effect manager causes the periodic adjustments of the color correction parameters (e.g., gamma look up table) for the display of the fade out effect. For example, during period D1 (521), a special gamma look up table is generated and updated a number of times, according to the elapsed time, to the show the fade effect. After the fade out, the display device shows a solid color on the screen, hiding the details of the information to be displayed on the frame buffer, since the special gamma look up table used for driving the display device maps any input colors to the same solid color. Program A may request for a synchronous fade out so that the program A is blocked for performing further operations until the end of the fade out period (521). Alternatively, program A may request for an asynchronous fade out so that program A can start further operations immediately after the submission of the request, without having to wait until the fade out is complete. Application A and other application programs may draw contents on the frame buffer during and after fade out period 521.
At time tc (513), application A requests for fade in for duration D2. After duration D2 (523), the weight for the solid color becomes zero; and, the gamma look up table in the display controller returns naturally to the normal values, which is calibrated for the current display device.
During the time period T1 (531), application X may request for a reservation for visual effects (e.g., at time td 514). Since such a request has a conflict with the reservation of application A, the request is denied. At the end of the time period T1 (531), the reservation of application A expires; and, the effect manager is in a position to accept reservation requests again.
If the gamma look up table in the display controller is not already returned to the normal values at the end of the reservation period, the effect manager clears the effect by restoring the normal gamma look up table calibrated for the current display device. For example, after application B reserves for a time period T2 (e.g., at time te) and requests for a fade out effect (e.g., at time tf), no fade in effect is requested by application B during the reserved period T2 (533). Thus, when the reservation of application B expires at time tg, the effect manager automatically clears the effect (e.g., by automatically performing a fade in, or simply restoring the gamma look up table to its normal value).
Other gaming reference
The following is noted in Patent point # 0032: In one embodiment of the present invention, an effect manager controls the operation of the transition effects such that the generation of the visual effect may be run synchronously or asynchronously with respect to the application which requesting for the effects. This mechanism greatly simplifies the coding of the application and permits the application to easily update it is user interface while a transition is in progress. For example, an application can request the effect manager to start a fade-in operation asynchronously and then proceed with drawing game play (or movie playback) while the display fade-in is running under control of the effect manager.
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 listed on the patent is Michael James Paquette.
neo@macsimumnews.com