System and method for enhanced multi-sample anti-aliasing

Information

  • Patent Grant
  • 9710894
  • Patent Number
    9,710,894
  • Date Filed
    Tuesday, June 4, 2013
    13 years ago
  • Date Issued
    Tuesday, July 18, 2017
    9 years ago
Abstract
A system and method for enhanced multi-sample anti-aliasing. The method includes determining a sampling pattern corresponding to a pixel and adjusting the sampling pattern based on a visual effect (e.g., post-processing visual effect). The method further includes accessing a first plurality of samples based on the sampling pattern. The first plurality of samples may comprise a second plurality of samples within the pixel and a third plurality of pixels outside of the pixel. The method further includes performing anti-aliasing filtering of the pixel based on the first plurality of samples and the sampling pattern.
Description
FIELD OF THE INVENTION

Embodiments of the present invention are generally related to graphics processing units (GPUs), anti-aliasing, and post-processing.


BACKGROUND OF THE INVENTION

As computer systems have advanced, graphics processing units (GPUs) have become increasingly advanced both in complexity and computing power. GPUs handle processing of increasingly large and complex graphics. GPUs are increasingly used to perform post-processing to add visual effects to create more realistic and accurate images.


Conventional GPUs first perform multi-sample anti-aliasing (MSAA) resolve and then post-processing on a rendered image before outputting the image. Post-processing is one or more processes applied after rendering which attempts to simulate various visual effects. Unfortunately, information is lost when MSAA resolve is performed. For example, on edges of an object, the MSAA resolve process blends together samples from near and far surfaces into one pixel thereby removing near and far surface information. Conventional solutions apply post-processing after MSAA resolve and post-processing can therefore not be applied to the samples of each pixel thereby resulting in post-processing not being applied to correctly simulate the intended visual effects. For example, background samples may need an out-of-focus blur while foreground samples might need to be sharp and in focus. In such a case, the post-processing results in removing anti-aliasing on edges in which the post-processing is different for background and foreground samples.


MSAA resolve is usually performed with a box filter that takes the average of all of the samples in a pixel. This box filter works as intended when using color that is in a low-dynamic-range perceptual color-space. However, correct post-processing requires an HDR linear color-space. Often graphics engines need to compromise on performance and resolve two surfaces, once in LDR perceptual color-space for anti-aliasing, and again in an HDR linear color-space for post-processing. Further, in cases where a box filter is used to perform MSAA resolve, the box filter provides relatively poor filtering quality.


SUMMARY OF THE INVENTION

Accordingly, what is needed are solutions to allow post-processing processes to be applied without prior loss of information and improved visual quality. Embodiments of the present invention are operable to perform post-processing processes before or during multi-sample anti-aliasing resolve thereby providing enhanced and more accurate visual results. Embodiments of the present invention further utilize results or samples from prior frames to perform temporal anti-aliasing thereby increasing visual quality (e.g., reduced flicker and ghosting).


In one embodiment, the present invention is directed to a method for performing anti-aliasing. The method includes determining a sampling pattern corresponding to a pixel and adjusting the sampling pattern based on a visual effect (e.g., post-processing visual effect such as motion blur or depth of field). The method further includes accessing a first plurality of samples based on the sampling pattern. The first plurality of samples may comprise a second plurality of samples within the pixel and a third plurality of samples outside of the pixel. The further includes performing anti-aliasing filtering of the pixel based on the first plurality of samples (e.g., samples within the pixel and sample outside of the pixel) and the sampling pattern. The anti-aliasing filtering may resolve the pixels in a linear high dynamic range (HDR) color-space. In one exemplary embodiment, the anti-aliasing filtering comprises cubic filtering. The method may further include converting the pixel to a low dynamic range (LDR) display color-space after each of the samples is resolved to a single sample per pixel.


In another embodiment, the present invention is directed toward a method for increasing visual quality (e.g., reduced flicker and increased clarity). The method includes accessing a current frame, a prior frame, and a motion vector operable for mapping a previous frame to a current frame. The method includes determining a portion of the prior frame corresponding to a portion of the current frame based on the motion vector. In one embodiment, the portion of the prior frame comprises a pixel. In another embodiment, the portion of the prior frame comprises a plurality of samples. The method may further include reducing the portion of the prior frame in proportion to an amount that the portion of the prior frame is out of the color range of the portion of the current frame. The method may further include performing multi-sample anti-aliasing of the portion of the current frame based on the portion of the prior frame and the portion of the current frame. In one exemplary embodiment, the method may further include blending a prior filtered color sample with one of the first plurality of samples prior to the anti-aliasing filtering.


In one embodiment, the present invention is implemented as a system for graphics processing (e.g., in hardware or software). The system includes a sampling pattern module operable to determine a sampling pattern of a plurality of samples corresponding to a pixel and a sampling pattern adjustment module operable to adjust the sampling pattern based on a filter (e.g., motion blur filter). The system further includes a sample access module operable to access the plurality of samples based on the sampling pattern and a multi-sample anti-aliasing module operable to perform multi-sample anti-aliasing of the pixel based on the plurality of samples and the sampling pattern. The multi-sample anti-aliasing module may be further operable to perform multi-sample anti-aliasing of the pixel based on the plurality of samples or pixels of a current frame and a plurality of samples or pixels of a prior frame. In one embodiment, multi-sample anti-aliasing module is operable to resolve the pixel in a linear high dynamic range (HDR) color-space. In one exemplary embodiment, the multi-sample anti-aliasing comprises cubic filtering. The system may further include a pixel filtering module operable to perform per pixel filtering to determine a value for the pixel based on the plurality of samples after the multi-sample anti-aliasing. The system may further include a color space conversion module operable to convert the pixel to a low dynamic range (LDR) display color-space (e.g., for output to a display device).





BRIEF DESCRIPTION OF THE DRAWINGS

Embodiments of the present invention are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which like reference numerals refer to similar elements.



FIG. 1 shows a computer system in accordance with one embodiment of the present invention.



FIG. 2A shows a flowchart of a conventional process for anti-aliasing and post-processing.



FIG. 2B shows a pixel and samples of the pixel used in conventional anti-aliasing.



FIG. 3A shows a flowchart of an exemplary computer controlled process for anti-aliasing and post-processing, in accordance with one embodiment of the present invention.



FIG. 3B shows exemplary samples inside a pixel and exemplary samples outside of the pixel, in accordance with one embodiment of the present invention.



FIG. 4 shows a flowchart of an exemplary computer controlled process for anti-aliasing, in accordance with one embodiment of the present invention.



FIG. 5 shows a flowchart of an exemplary computer controlled process for temporal anti-aliasing, in accordance with one embodiment of the present invention.



FIG. 6 shows a block diagram of exemplary computer system and corresponding modules, in accordance with one embodiment of the present invention.





DETAILED DESCRIPTION OF THE INVENTION

Reference will now be made in detail to the preferred embodiments of the present invention, examples of which are illustrated in the accompanying drawings. While the invention will be described in conjunction with the preferred embodiments, it will be understood that they are not intended to limit the invention to these embodiments. On the contrary, the invention is intended to cover alternatives, modifications and equivalents, which may be included within the spirit and scope of the invention as defined by the appended claims. Furthermore, in the following detailed description of embodiments of the present invention, numerous specific details are set forth in order to provide a thorough understanding of the present invention. However, it will be recognized by one of ordinary skill in the art that the present invention may be practiced without these specific details. In other instances, well-known methods, procedures, components, and circuits have not been described in detail as not to unnecessarily obscure aspects of the embodiments of the present invention.


Notation and Nomenclature:


Some portions of the detailed descriptions, which follow, are presented in terms of procedures, steps, logic blocks, processing, and other symbolic representations of operations on data bits within a computer memory. These descriptions and representations are the means used by those skilled in the data processing arts to most effectively convey the substance of their work to others skilled in the art. A procedure, computer executed step, logic block, process, etc., is here, and generally, conceived to be a self-consistent sequence of steps or instructions leading to a desired result. The steps are those requiring physical manipulations of physical quantities. Usually, though not necessarily, these quantities take the form of electrical or magnetic signals capable of being stored, transferred, combined, compared, and otherwise manipulated in a computer system. It has proven convenient at times, principally for reasons of common usage, to refer to these signals as bits, values, elements, symbols, characters, terms, numbers, or the like.


It should be borne in mind, however, that all of these and similar terms are to be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities. Unless specifically stated otherwise as apparent from the following discussions, it is appreciated that throughout the present invention, discussions utilizing terms such as “processing” or “accessing” or “executing” or “storing” or “rendering” or the like, refer to the action and processes of an integrated circuit (e.g., computing system 100 of FIG. 1), or similar electronic computing device, that manipulates and transforms data represented as physical (electronic) quantities within the computer system's registers and memories into other data similarly represented as physical quantities within the computer system memories or registers or other such information storage, transmission or display devices.


A shader is a program which is executed on a GPU (e.g., GPU 110). Multi-Sample Anti-aliasing (MSAA) resolve is a process (e.g., GPU hardware or software feature) where the GPU stores N samples per pixel (e.g., wherein N is 2, 3, 4, or 8). MSAA resolving is the process in which the N samples per pixel of an MSAA surface are transformed into one sample per pixel.


Color-space is a mapping from a pixel color value to display output physical intensity. Linear color-space refers to a mapping when two colors are added together and the output is the same as the result if two physical lights are added together. In contrast, perceptual color-space refers a mapping in which colors are added together but no longer match the result of the physical lights added together. Perceptual color-space mapping has a distribution which better matches how humans perceive color because humans are much more sensitive to differences in darks than differences in lights. Perceptual color-space has a mapping that has a perceptually even distribution of shades.


Low-dynamic-range (LDR) refers to colors being limited to the range which can be displayed by a display device (e.g., monitor or screen). In contrast, high-dynamic-range (HDR) refers to colors having a range which is brighter than the range which can be displayed on a display device.


Lenses (e.g., camera or eye) typically are not perfectly smooth resulting in a small amount of diffusion of bright objects in the view. This is often called “bloom” or lens diffusion. Graphics engines can leverage lens diffusion during an HDR to LDR conversion to provide hints as to the intensity and color of areas which cannot be displayed.


Computer System Environment


FIG. 1 shows a computer system 100 in accordance with one embodiment of the present invention. Computer system 100 depicts the components of a basic computer system in accordance with embodiments of the present invention providing the execution platform for certain hardware-based and software-based functionality. In general, computer system 100 comprises at least one CPU 101, a system memory 115, and at least one graphics processor unit (GPU) 110. The CPU 101 can be coupled to the system memory 115 via a bridge component/memory controller (not shown) or can be directly coupled to the system memory 115 via a memory controller (not shown) internal to the CPU 101. The GPU 110 may be coupled to a display 112. One or more additional GPUs can optionally be coupled to system 100 to further increase its computational power. The GPU(s) 110 is coupled to the CPU 101 and the system memory 115. The GPU 110 can be implemented as a discrete component, a discrete graphics card designed to couple to the computer system 100 via a connector (e.g., AGP slot, PCI-Express slot, etc.), a discrete integrated circuit die (e.g., mounted directly on a motherboard), or as an integrated GPU included within the integrated circuit die of a computer system chipset component (not shown). Additionally, a local graphics memory 114 can be included for the GPU 110 for high bandwidth graphics data storage.


The CPU 101 and the GPU 110 can also be integrated into a single integrated circuit die and the CPU and GPU may share various resources, such as instruction logic, buffers, functional units and so on, or separate resources may be provided for graphics and general-purpose operations. The GPU may further be integrated into a core logic component. Accordingly, any or all the circuits and/or functionality described herein as being associated with the GPU 110 can also be implemented in, and performed by, a suitably equipped CPU 101. Additionally, while embodiments herein may make reference to a GPU, it should be noted that the described circuits and/or functionality can also be implemented and other types of processors (e.g., general purpose or other special-purpose coprocessors) or within a CPU.


System 100 can be implemented as, for example, a desktop computer system or server computer system having a powerful general-purpose CPU 101 coupled to a dedicated graphics rendering GPU 110. In such an embodiment, components can be included that add peripheral buses, specialized audio/video components, IO devices, and the like. Similarly, system 100 can be implemented as a handheld device (e.g., cellphone, etc.), direct broadcast satellite (DBS)/terrestrial set-top box or a set-top video game console device such as, for example, the Xbox®, available from Microsoft Corporation of Redmond, Wash., or the PlayStation3®, available from Sony Computer Entertainment Corporation of Tokyo, Japan. System 100 can also be implemented as a “system on a chip”, where the electronics (e.g., the components 101, 115, 110, 114, and the like) of a computing device are wholly contained within a single integrated circuit die. Examples include a hand-held instrument with a display, a car navigation system, a portable entertainment system, and the like.


Exemplary Systems and Methods Enhanced Multi-Sample Anti-Aliasing

Embodiments of the present invention are operable to perform post-processing processes before or during multi-sample anti-aliasing resolve thereby providing enhanced and more accurate visual quality. Embodiments of the present invention are operable to perform post-processing processes before or during multi-sample anti-aliasing resolve thereby providing enhanced and more accurate visual results. Embodiments of the present invention further utilize results or samples from prior frames to perform temporal anti-aliasing thereby increasing visual quality (e.g., reduced flicker and ghosting).



FIG. 2A shows a flowchart of a conventional process for anti-aliasing and post-processing. Flowchart 200 depicts a process of post-processing that is performed after graphics rendering and anti-aliasing.


At block 202, an image is rendered. The rendering outputs multiple samples within each pixel of the image. Referring to FIG. 2B, samples 270 are output for pixel 260.


Referring back to FIG. 2A, at block 204, multi-sample anti-aliasing resolve is performed. The multi-sample anti-aliasing resolve averages the multiple samples (e.g., samples 270) to determine a sample for a pixel (e.g., pixel 260).


At block 206, post-processing is performed. The post-processing is performed on a per pixel basis based on the single sample determined for each pixel during block 204.


With reference to FIGS. 3A, 3B, 4, and 5, flowcharts 300-500 illustrate example functions used by various embodiments of the present invention for improved multi-sample anti-aliasing and post-processing processes. Although specific function blocks (“blocks”) are disclosed in flowcharts 300-500, such steps are examples. That is, embodiments are well suited to performing various other blocks or variations of the blocks recited in flowcharts 300-500. It is appreciated that the blocks in flowcharts 300-500 may be performed in an order different than presented, and that not all of the blocks in flowcharts 300-500 may be performed. Blocks of flowcharts 300-500 may be performed by a GPU or CPU.



FIG. 3A shows a flowchart of an exemplary computer controlled process for anti-aliasing and post-processing, in accordance with one embodiment of the present invention. FIG. 3A depicts a flowchart of process for improved anti-aliasing and application of post-processing processes. In one embodiment, techniques used in conventional post-processing are performed during or before anti-aliasing.


At block 302, an image is rendered. The image may be a frame or scene rendered via a GPU (e.g., GPU 110). Referring to FIG. 3B, FIG. 3B show an exemplary pixel 360 of the rendered image, samples 370-372 inside of pixel 360, and samples 374-375 outside of pixel 360. Samples 370-372 and 374-375 are produced as part of the rendering process. It is noted that samples 374-375 outside of pixels 360 are samples corresponding to pixels near pixel 360 (e.g., pixels adjacent to pixel 360).


Referring back to FIG. 3A, at block 304, enhanced multi-sample anti-aliasing resolve including filtering is performed. The enhanced multi-sample anti-aliasing resolve may include filtering that is performed during conventional post-processing. For example, samples 370 and 375 may be used to perform multi-sample anti-aliasing resolve based on exemplary motion vector 380.


At block 306, post-processing is performed. The post-processing may include a reduced number of processes as some conventional post-processing may be performed during or before the anti-aliasing of block 304.



FIG. 4 shows a flowchart of an exemplary computer controlled process for anti-aliasing, in accordance with one embodiment of the present invention. FIG. 4 depicts a process for multi-sample anti-aliasing resolve comprising post-processing processes or techniques thereby improving visual quality. Embodiments of the present invention are operable to apply post-processing processes before or during multi-sample anti-aliasing resolving instead of after multi-sample anti-aliasing resolving. In one embodiment, a pipeline (e.g., of a GPU) reads the multi-sample anti-aliasing surface from external memory (e.g., GPU memory) to a cache once (e.g., GPU cache) for application of multi-sampling anti-aliasing resolve and post-processing. The multi-sampling anti-aliasing resolve and post-processing are thereby optimized via a single memory access.


At block 402, a sampling pattern is determined. The sampling pattern may correspond to a pixel. The sampling pattern may be determined based on a selected filter. For example, a cubic filter or Gaussian filter may be used to select samples that are inside a pixel (e.g., samples 370-372) and samples that are outside of the pixel (e.g., samples 374-375). Embodiments of the present invention are thus operable to fetch M samples (where M>N) where the M samples (e.g., samples 370-372 and samples 374-375) include both N samples inside the pixel (e.g., samples 370-372) and samples outside the pixel (e.g., samples 374-375).


At block 404, the sampling pattern is adjusted based on a visual effect. The visual effect may be a post-processing effect. The M samples may be adjusted or selected based on the post-processing effect to be applied to the N samples within the pixel. For example, motion blur may utilize samples along a line of motion and the M samples are reconfigured or redetermined based on location along the line of motion (e.g., motion vector 380). As another example, depth of field might utilize samples in a circle and the M samples are reconfigured or re determined to locations inside the circle. In other words, post-processing effects are applied before the samples are filtered down to a single sample for each pixel (e.g., during multi-sample anti-aliasing resolve).


At block 406, a plurality of samples is accessed. In one embodiment, a first plurality of samples is accessed based on the sampling pattern. The first plurality of samples may comprise a second plurality of samples within the pixel (e.g., samples 370-372) and a third plurality of pixels outside of the pixel (e.g., samples 374-375).


At block 408, anti-aliasing resolve is performed. The anti-aliasing resolve may include multi-sample anti-aliasing resolving the M samples into one sample per pixel. Anti-aliasing resolve of a pixel is performed based on a plurality of samples (e.g., samples 370-372 inside the pixels and samples 374-375 outside the pixel) and the sampling pattern (e.g., based on a filter or post-processing effect including motion blur or depth of field). In one embodiment, the anti-aliasing resolve may comprise cubic filtering which reads samples from both inside and outside of a pixel thereby providing higher quality filtering. In one exemplary embodiment, the anti-aliasing resolve comprises cubic filtering.


The anti-aliasing filtering may comprise resolving the pixels in a linear high dynamic range (HDR) color-space. The resolving in linear HDR color-space enables correct blending of colors between background and foreground post-processed samples.


At block 410, per pixel filtering is performed. In one embodiment, the per pixel filtering may determine a value for the pixel on a per pixel basis after the anti-aliasing filtering. In one exemplary embodiment, the per pixel filtering includes application of per pixel post-processing processes (e.g., post-processing processes not performed during multi-sample anti-aliasing). For example, once-per-pixel processes such as film grain may be applied.


At block 412, conversion to low dynamic range (LDR) color-space is performed. In one embodiment, linear HDR color is converted to LDR display color-space for use in output to a display device. The conversion to LDR display color-space thereby provides physically correct color processing throughout a graphics pipeline.



FIG. 5 shows a flowchart of an exemplary computer controlled process for temporal anti-aliasing, in accordance with one embodiment of the present invention. FIG. 5 depicts a process for reducing temporal aliasing (e.g., flicker or ghosting) using samples or pixels from a prior frame and a current frame to increase visual quality. Embodiments of the present invention are operable to increase the effective number of samples per pixel by utilizing or accessing samples or pixels from a prior frame thereby increasing visual quality.


At block 502, a current frame is accessed. In one embodiment, samples corresponding to pixels of a current frame are accessed. In another embodiment, pixels corresponding to a current frame are accessed.


At block 504, a prior frame is accessed. In one embodiment, samples corresponding to pixels of a prior frame are accessed. In another embodiment, pixels corresponding to a prior frame are accessed.


At block 506, a motion vector is accessed. The motion vector may correspond to motion of an object or a graphics primitive in the prior frame and the current frame. The motion vector may further correspond to a motion blur filter to be applied to the current frame.


At block 508, a portion of the prior frame corresponding to a portion of the current frame is determined based on the motion vector. In one exemplary embodiment, a previous or prior frame is mapped to a current frame based on the motion vector. The motion vector may be used to determine corresponding pixels or samples between the current frame and the prior frame. In one embodiment, the portion of the prior frame comprises a pixel. In another embodiment, the portion of the prior frame comprises a plurality of samples. It is noted that the portion of the prior frame and the portion of the current frame may each comprise more than one sample or pixel.


In one exemplary embodiment, the motion vector may be used to determine pixels or samples from the prior frame which correspond to pixels or samples in the current frame. “Back-projection” or tracing the motion vector backwards may be used to provide the location of a pixel or sample in the prior frame. In one embodiment, back-projected temporal feedback is used to reduce temporal aliasing or flicker in motion caused by having a limited number of samples per pixel. Embodiments of the present invention are operable substantially reduce such flickering by filtering temporally. In another embodiment, temporal feedback is applied locally per sample instead of on a per pixel basis.


At block 510, a prior filtered color is blended for each sample or pixel. In one embodiment, the blending of a prior filtered sample or pixel (e.g., of a previous frame or portion of the current frame) with one of the plurality of samples is performed prior to the multi-sample anti-aliasing resolve. In one exemplary embodiment, prior post-processed colors for each sample are blended in before filtering the M samples into one sample per pixel (e.g., during multi-sample anti-aliasing resolve). The graphics engine might compute post-processing at a lower resolution for higher performance. Then for each sample, the sample is blended between the sample's color and the interpolated post-processed color based on how much post-processing should apply to the sample.


At block 512, the portion of the prior frame is adjusted based on color range. Embodiments of the present invention are operable to remove ghosting by using information from the M samples per pixel to limit the temporal feedback. For example, if the temporal feedback (e.g., samples or pixels from a prior frame) is outside the color range of the M samples (e.g., of the current frame), the temporal feedback is reduced in proportion to how far the temporal feedback is out of color range of the M samples (e.g., samples of the current frame).


At block 514, anti-aliasing filtering is performed. In one embodiment, the multi-sample anti-aliasing resolving of the portion of the current frame is based on the portion of the prior frame and the portion of the current frame. For example, the anti-aliasing may operable to reduce flicker and increase visual clarity. In one exemplary embodiment, the first portion of the prior frame is reduced in proportion to an amount that the first portion of the prior frame is out of the color range of the portion of the current frame.



FIG. 6 illustrates exemplary components used by various embodiments of the present invention. Although specific components are disclosed in computing system environment 600, it should be appreciated that such components are examples. That is, embodiments of the present invention are well suited to having various other components or variations of the components recited in computing system environment 600. It is appreciated that the components in computing system environment 600 may operate with other components than those presented, and that not all of the components of system 600 may be required to achieve the goals of computing system environment 600. It is noted that modules 620-652 may be implemented in hardware (e.g., as part of a GPU) or software as shown or in various combinations thereof.



FIG. 6 shows a block diagram of exemplary computer system and corresponding modules, in accordance with one embodiment of the present invention. With reference to FIG. 6, an exemplary system module for implementing embodiments includes a general purpose computing system environment, such as computing system environment 600. Computing system environment 600 may include, but is not limited to, servers, desktop computers, laptops, tablet PCs, mobile devices, and smartphones. In its most basic configuration, computing system environment 600 typically includes at least one processing unit 602 and computer readable storage medium 604. Depending on the exact configuration and type of computing system environment, computer readable storage medium 604 may be volatile (such as RAM), non-volatile (such as ROM, flash memory, etc.) or some combination of the two. Portions of computer readable storage medium 604 when executed facilitate enhanced multi-sample anti-aliasing (e.g., processes 300-500).


Additionally, computing system environment 600 may also have additional features/functionality. For example, computing system environment 600 may also include additional storage (removable and/or non-removable) including, but not limited to, magnetic or optical disks or tape. Such additional storage is illustrated in FIG. 10 by removable storage 608 and non-removable storage 610. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer readable medium 604, removable storage 608 and nonremovable storage 610 are all examples of computer storage media. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by computing system environment 600. Any such computer storage media may be part of computing system environment 600.


Computing system environment 600 may also contain communications connection(s) 612 that allow it to communicate with other devices. Communications connection(s) 612 is an example of communication media. Communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. The term computer readable media as used herein includes both storage media and communication media.


Communications connection(s) 612 may allow computing system environment 600 to communication over various networks types including, but not limited to, fibre channel, small computer system interface (SCSI), Bluetooth, Ethernet, Wi-fi, Infrared Data Association (IrDA), Local area networks (LAN), Wireless Local area networks (WLAN), wide area networks (WAN) such as the internet, serial, and universal serial bus (USB). It is appreciated the various network types that communication connection(s) 612 connect to may run a plurality of network protocols including, but not limited to, transmission control protocol (TCP), internet protocol (IP), real-time transport protocol (RTP), real-time transport control protocol (RTCP), file transfer protocol (FTP), and hypertext transfer protocol (HTTP).


Computing system environment 600 may also have input device(s) 614 such as a keyboard, mouse, pen, voice input device, touch input device, remote control, etc. Output device(s) 616 such as a display, speakers, etc. may also be included. All these devices are well known in the art and are not discussed at length.


In one embodiment, computer readable storage medium 604 includes graphics processing module 606. Graphics processing module 606 includes rendering module 620, anti-aliasing module 622, and post-processing module 630. Rendering module 620 is operable to render a scene or image and determine a plurality of samples for each pixel of the image.


Anti-aliasing module 622 includes sampling pattern module 640, sampling pattern adjustment module 642, sample access module 644, multi-sample anti-aliasing module 646, color space conversion module 650, frame access module 652, motion vector access module 654, and temporal multi-sample anti-aliasing module 656. In one embodiment, sampling pattern module 640 is operable to determine a sampling pattern of a plurality of samples corresponding to a pixel (e.g., a selection of samples of a pixel), as described herein. Sampling pattern adjustment module 642 is operable to adjust the sampling pattern based on a filter (e.g., motion blur filter or depth of field filter). Sample access module 644 is operable to access the plurality of samples based on the sampling pattern, as described herein.


Multi-sample anti-aliasing module 646 is operable to perform multi-sample anti-aliasing resolve of the pixel based on the plurality of samples and the sampling pattern, as described herein. In one embodiment, multi-sample anti-aliasing module 646 is operable to resolve the pixel in a linear high dynamic range (HDR) color-space. In one exemplary embodiment, the multi-sample anti-aliasing resolve comprises cubic filtering. In another embodiment, multi-sample anti-aliasing module 646 is operable to perform multi-sample anti-aliasing resolve of the pixel based on the plurality of samples of a current frame and a plurality of samples of a prior frame.


Color space conversion module 650 is operable to convert the pixel to a low dynamic range (LDR) display color-space.


Frame access module 652 is operable to access a prior frame and a current frame (e.g., of a video or rendered output). Motion vector access module 654 is operable to access a motion vector (e.g., corresponding to a graphics primitive, samples, or pixels of a prior frame and a current frame). Temporal multi-sample anti-aliasing module 656 is operable to determine a portion of the prior frame that corresponds to a portion of the current frame based on a motion vector. Temporal multi-sample anti-aliasing module 656 is further operable to perform multi-sample anti-aliasing resolve of the portion of the current frame based on the portion of the prior frame and the portion of the current frame.


Post-processing module 630 is operable to perform any remaining post-processing processes that were not applied by anti-aliasing module 622 or temporal multi-sample anti-aliasing module 656.


The foregoing descriptions of specific embodiments of the present invention have been presented for purposes of illustration and description. They are not intended to be exhaustive or to limit the invention to the precise forms disclosed, and many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the invention and its practical application, to thereby enable others skilled in the art to best utilize the invention and various embodiments with various modifications as are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the claims appended hereto and their equivalents.

Claims
  • 1. A method of enhancing visual quality of an image for rendering on a display screen of a computing device, the computing device further including a processor and a memory storing instructions, said method comprising: determining, by the processor, a sampling pattern corresponding to a pixel within the image;adjusting, by the processor, said sampling pattern based on a visual effect to produce an adjusted sampling pattern;accessing, from the memory, a first plurality of samples based on said adjusted sampling pattern, wherein said first plurality of samples comprises a second plurality of samples within said pixel and a third plurality of samples outside of said pixel; andfiltering, by the processor, said first plurality of samples to provide a resolved single sample pixel based on said first plurality of samples and said adjusted sampling pattern.
  • 2. The method as described in claim 1 wherein said filtering comprises resolving said pixel in a linear high dynamic range (HDR) color-space.
  • 3. The method as described in claim 1 wherein said filtering comprises cubic filtering.
  • 4. The method as described in claim 2 wherein said resolving said pixel in a linear high dynamic range (HDR) color-space comprises blending a plurality of colors between background and foreground post-processed samples.
  • 5. The method as described in claim 1 further comprising: converting said resolved single sample pixel to a low dynamic range (LDR) display color-space.
  • 6. The method as described in claim 1 wherein said visual effect is performed during post-processing.
  • 7. The method as described in claim 1 wherein said visual effect comprises at least one of; motion blur and depth of field.
  • 8. A method for increasing visual quality of an image for rendering on a display screen of a computing device, the computing device having a processor and a memory including instructions executable by the processor to: access, from the memory, a current frame of the image;access, from the memory, a prior frame of the image;access a motion vector mapping an image element common to said prior frame and said current frame;determine, at the processor, a portion of said prior frame corresponding to a portion of said current frame based on said motion vector; andfilter said portion of said current frame to provide a resolved current frame portion based on said portion of said prior frame and said portion of said current frame.
  • 9. The method as described in claim 8 wherein said portion of said prior frame comprises a pixel.
  • 10. The method as described in claim 8 wherein said portion of said prior frame comprises a plurality of samples.
  • 11. The method as described in claim 8 wherein the instructions are further executable by the processor to: blend a prior filtered color sample with said portion of said current frame prior to said multi-sample anti-aliasing.
  • 12. The method as described in claim 8 wherein the instructions are further executable by the processor to reduce said portion of said prior frame in proportion to an amount that said portion of said prior frame is out of the color range of said portion of said current frame.
  • 13. The method as described in claim 8 wherein said filtering reduces flickering of the image to be rendered on the display screen.
  • 14. A system for graphics processing, said system including a processor, a display screen for displaying an image, and a memory storing instructions, the instructions being executable in the processor and the system comprising: a sampling pattern module configured to determine a sampling pattern of a plurality of samples corresponding to a pixel in the image;a sampling pattern adjustment module configured to adjust said sampling pattern based on a filter to produce an adjusted sampling pattern;a sample access module configured to access said plurality of samples based on said adjusted sampling pattern; anda filtering module configured to provide a resolved single sample pixel based on said plurality of samples and said adjusted sampling pattern.
  • 15. The system as described in claim 14 wherein said filtering module resolves said pixel in a linear high dynamic range (HDR) color-space.
  • 16. The system as described in claim 14 wherein said filtering module comprises a cubic filtering module.
  • 17. The system as described in claim 14 wherein the filtering module comprises a temporal filtering module configured to provide the resolved single sample pixel based on a portion of a current frame and a portion of a prior frame.
  • 18. The system as described in claim 14 further comprising: a color space conversion module for converting said pixel to a low dynamic range (LDR) display color-space.
  • 19. The system as described in claim 14 wherein said filtering module comprises a motion blur filtering module.
  • 20. The system as described in claim 14 further wherein said filtering module provides a resolved single sample pixel based on said plurality of samples of a current frame and a plurality of samples of a prior frame.
US Referenced Citations (165)
Number Name Date Kind
4208810 Rohner et al. Jun 1980 A
4918626 Watkins et al. Apr 1990 A
5043810 Vreeswijk et al. Aug 1991 A
5081594 Horsley Jan 1992 A
5287438 Kelleher Feb 1994 A
5313287 Barton May 1994 A
5432898 Curb et al. Jul 1995 A
5446836 Lentz et al. Aug 1995 A
5452104 Lee Sep 1995 A
5452412 Johnson, Jr. et al. Sep 1995 A
5483258 Cornett et al. Jan 1996 A
5543935 Harrington Aug 1996 A
5570463 Dao Oct 1996 A
5594854 Baldwin et al. Jan 1997 A
5623692 Priem et al. Apr 1997 A
5633297 Valko et al. May 1997 A
5664162 Dye Sep 1997 A
5815162 Levine Sep 1998 A
5854631 Akeley et al. Dec 1998 A
5854637 Sturges Dec 1998 A
5872902 Kuchkuda et al. Feb 1999 A
5977987 Duluk, Jr. Nov 1999 A
6028608 Jenkins Feb 2000 A
6034699 Wong et al. Mar 2000 A
6072500 Foran et al. Jun 2000 A
6104407 Aleksic et al. Aug 2000 A
6104417 Nielsen et al. Aug 2000 A
6115049 Winner et al. Sep 2000 A
6118394 Onaya Sep 2000 A
6128000 Jouppi et al. Oct 2000 A
6137918 Harrington et al. Oct 2000 A
6160557 Narayanaswami Dec 2000 A
6160559 Omtzigt Dec 2000 A
6188394 Morein et al. Feb 2001 B1
6201545 Wong et al. Mar 2001 B1
6204859 Jouppi et al. Mar 2001 B1
6219070 Baker et al. Apr 2001 B1
6249853 Porterfield Jun 2001 B1
6259460 Gossett et al. Jul 2001 B1
6323874 Gossett Nov 2001 B1
6359623 Larson Mar 2002 B1
6362819 Dalal et al. Mar 2002 B1
6366289 Johns Apr 2002 B1
6370270 Nair et al. Apr 2002 B1
6429877 Stroyan Aug 2002 B1
6437780 Baltaretu et al. Aug 2002 B1
6452595 Montrym et al. Sep 2002 B1
6469707 Voorhies Oct 2002 B1
6480205 Greene et al. Nov 2002 B1
6501564 Schramm et al. Dec 2002 B1
6504542 Voorhies et al. Jan 2003 B1
6522329 Ihara et al. Feb 2003 B1
6525737 Duluk, Jr. et al. Feb 2003 B1
6529207 Landau et al. Mar 2003 B1
6606093 Gossett et al. Aug 2003 B1
6611272 Hussain et al. Aug 2003 B1
6614444 Duluk, Jr. et al. Sep 2003 B1
6614448 Garlick et al. Sep 2003 B1
6624823 Deering Sep 2003 B2
6633197 Sutardja Oct 2003 B1
6633297 McCormack et al. Oct 2003 B2
6671000 Cloutier Dec 2003 B1
6693637 Koneru et al. Feb 2004 B2
6693639 Duluk, Jr. et al. Feb 2004 B2
6697063 Zhu Feb 2004 B1
6717576 Duluk, Jr. et al. Apr 2004 B1
6717578 Deering Apr 2004 B1
6734861 Van Dyke et al. May 2004 B1
6741247 Fenney May 2004 B1
6747057 Ruzafa et al. Jun 2004 B2
6765575 Voorhies et al. Jul 2004 B1
6778177 Furtner Aug 2004 B1
6788301 Thrasher Sep 2004 B2
6798410 Redshaw et al. Sep 2004 B1
6803916 Ramani et al. Oct 2004 B2
6819332 Baldwin Nov 2004 B2
6833835 van Vugt Dec 2004 B1
6906716 Moreton et al. Jun 2005 B2
6938176 Alben et al. Aug 2005 B1
6940514 Wasserman et al. Sep 2005 B1
6947057 Nelson et al. Sep 2005 B2
6956579 Diard et al. Oct 2005 B1
6961057 Van Dyke et al. Nov 2005 B1
6978317 Anantha et al. Dec 2005 B2
7002591 Leather et al. Feb 2006 B1
7009607 Lindholm et al. Mar 2006 B2
7009615 Kilgard et al. Mar 2006 B1
7061495 Leather Jun 2006 B1
7064771 Jouppi et al. Jun 2006 B1
7075542 Leather Jul 2006 B1
7081902 Crow et al. Jul 2006 B1
7119809 McCabe Oct 2006 B1
7126600 Fowler et al. Oct 2006 B1
7154066 Talwar et al. Dec 2006 B2
7158148 Toji et al. Jan 2007 B2
7170515 Zhu Jan 2007 B1
7184040 Tzvetkov Feb 2007 B1
7224364 Yue et al. May 2007 B1
7307628 Goodman et al. Dec 2007 B1
7307638 Leather et al. Dec 2007 B2
7382368 Molnar et al. Jun 2008 B1
7453466 Hux et al. Nov 2008 B2
7483029 Crow et al. Jan 2009 B2
7548996 Baker et al. Jun 2009 B2
7551174 Iourcha et al. Jun 2009 B2
7633506 Leather et al. Dec 2009 B1
7634637 Lindholm et al. Dec 2009 B1
7791617 Crow et al. Sep 2010 B2
7965902 Zelinka et al. Jun 2011 B1
8063903 Vignon et al. Nov 2011 B2
8390645 Crow et al. Mar 2013 B1
9117309 Crow Aug 2015 B1
20010005209 Lindholm et al. Jun 2001 A1
20020050979 Oberoi et al. May 2002 A1
20020097241 McCormack et al. Jul 2002 A1
20020130863 Baldwin Sep 2002 A1
20020140655 Liang et al. Oct 2002 A1
20020158885 Brokenshire et al. Oct 2002 A1
20020196251 Duluk, Jr. et al. Dec 2002 A1
20030038818 Tidwell Feb 2003 A1
20030067468 Duluk, Jr. et al. Apr 2003 A1
20030076325 Thrasher Apr 2003 A1
20030122815 Deering Jul 2003 A1
20030163589 Bunce et al. Aug 2003 A1
20030194116 Wong et al. Oct 2003 A1
20030201994 Taylor et al. Oct 2003 A1
20040085313 Moreton et al. May 2004 A1
20040130552 Duluk, Jr. et al. Jul 2004 A1
20040183801 Deering Sep 2004 A1
20040196285 Rice et al. Oct 2004 A1
20040207642 Crisu et al. Oct 2004 A1
20040246251 Fenney et al. Dec 2004 A1
20050030314 Dawson Feb 2005 A1
20050041037 Dawson Feb 2005 A1
20050066148 Luick Mar 2005 A1
20050122338 Hong et al. Jun 2005 A1
20050134588 Aila et al. Jun 2005 A1
20050134603 Iourcha et al. Jun 2005 A1
20050179698 Vijayakumar et al. Aug 2005 A1
20050259100 Teruyama Nov 2005 A1
20060044317 Bourd et al. Mar 2006 A1
20060170690 Leather Aug 2006 A1
20060203005 Hunter Sep 2006 A1
20060245001 Lee et al. Nov 2006 A1
20060267981 Naoi Nov 2006 A1
20060269155 Tener Nov 2006 A1
20070035706 Margulis Feb 2007 A1
20070035707 Margulis Feb 2007 A1
20070074266 Raveendran Mar 2007 A1
20070087145 Hanita Apr 2007 A1
20070139440 Crow et al. Jun 2007 A1
20070268298 Alben et al. Nov 2007 A1
20070273689 Tsao Nov 2007 A1
20070296725 Steiner et al. Dec 2007 A1
20080024497 Crow et al. Jan 2008 A1
20080024522 Crow et al. Jan 2008 A1
20080100618 Woo et al. May 2008 A1
20080151101 Tian Jun 2008 A1
20080273218 Kitora et al. Nov 2008 A1
20090083692 Rieger et al. Mar 2009 A1
20090083693 Rieger et al. Mar 2009 A1
20110188744 Sun Aug 2011 A1
20110221762 Cheng Sep 2011 A1
20140098883 Hannuksela Apr 2014 A1
20140301463 Rusanovskyy et al. Oct 2014 A1
Foreign Referenced Citations (6)
Number Date Country
101093578 Dec 2007 CN
06180758 Jun 1994 JP
10134198 May 1998 JP
11195132 Jul 1999 JP
2005182547 Jul 2005 JP
0013145 Mar 2000 WO
Non-Patent Literature Citations (8)
Entry
A Hardware Assisted Design Rule Check Architecture Larry Seller Jan. 1982 Proceedings of the 19th Conference on Design Automation DAC '82 Publisher: IEEE Press.
A Parallel Alogorithm for Polygon Rasterization Juan Pineda Jun. 1988 ACM.
A VLSI Architecture for Updating Raster-Scan Displays Satish Gupta, Robert F. Sproull, Ivan E. Sutherland Aug. 1981 ACM SIGGRAPH Computer Graphics, Proceedings of the 8th Annual Conference on Computer Graphics and Interactive Techniques SIGGRAPH '81, vol. 15 Issue Publisher ACM Press.
Blythe, OpenGL section 3.4.1, Basic Line Segment Rasterization, Mar. 29, 1997, pp. 1-3.
Boyer, et al.; “Discrete Analysis for Antialiased Lines;” Eurographics 2000; 3 Pages.
Crow; “The Use of Grayscale for Improves Raster Display of Vectors and Characters;” University of Texas, Austin, Texas; Work supported by the National Science Foundation unser Grants MCS 76-83889; pp. 1-5: ACM Press.
Foley, J. “Computer Graphics: Principles and Practice”, 1987, Addison-Wesley Publishing, 2nd Edition, pp. 545-546.
Fuchs; “Fast Spheres Shadow, Textures, Transparencies, and Image Enhancements in Pixel-Planes”; ACM; 1985; Department of Computer Science, University of North Carolina at Chapel Hill, Chapel Hill, NC 27514.
Related Publications (1)
Number Date Country
20140354675 A1 Dec 2014 US