The present invention generally relates to film grain simulation and, more particularly, to apparatuses and systems for determining block averages in film grain simulation.
Film grain forms in motion picture images during the process of development. Film grain is clearly noticeable in HD images and becomes a distinctive cinema trait that is becoming more desirable to preserve through the whole image processing and delivery chain. Nevertheless, film grain preservation is a challenge for current encoders since compression gains related to temporal prediction cannot be exploited. Because of the random nature of the grain, visually lossless encoding is only achieved at very high bit-rates. Lossy encoders tend to suppress the film grain when filtering the high frequencies typically associated with noise and fine textures.
In the recently created H.264 I MPEG-4 AVC video compression standard, and in particular in its Fidelity Range Extensions (FRExt) Amendment 1 (JVT-K051, ITU-T Recommendation H.264 I ISO/IEC 14496-10 International Standard with Amendment 1, Redmond, USA, June 2004), a film grain Supplemental Enhancement Information (SEI) message has been defined. Such a message describes the film grain characteristics regarding attributes like size and intensity, and allows a video decoder to simulate the film grain look onto a decoded picture. The H.264 I MPEG-4 AVC standard specifies which parameters are present in the film grain SEI message, how to interpret them and the syntax to be used to encode the SEI message in binary format. The standard does not specify, however, the exact procedure to simulate film grain upon reception of the film grain SEI message.
Film grain simulation is a relatively new technology used in post-production to simulate film grain on computer-generated material, as well as during restoration of old film stocks. For this kind of applications, there exists commercial software in the market like Cineon®, from Eastman Kodak Co, Rochester, N.Y., and Grain Surgery™, from Visual Infinity. These tools require user interaction and are complex to implement, which makes them unsuitable for real-time video coding applications. Furthermore, none of these tools has the capability to interpret a film grain SEI message as specified by the H.264/AVC video coding standard or the like.
The present invention advantageously provides apparatuses and systems for determining block averages in film grain simulation.
In one embodiment of the present invention, an apparatus for determining block averages in film grain simulation includes a memory storing at least one of control programs, algorithms and film grain patterns and a processor for executing the program routines. In such an embodiment, the apparatus configured to determine a block average for said decoded picture in a display pipeline, avoiding external memory usage for the block average and select at least one film grain pattern for combination with said decoded picture, wherein the selecting is based, at least in part, on the determined block average.
In an alternate embodiment of the present invention, an apparatus for determining block averages in film grain simulation includes a memory storing at least one of control programs, algorithms and film grain patterns and a processor for executing the program routines. In such an embodiment, the apparatus configured to determine a block average for the decoded picture during a decode process, store the determined block average in an external memory and select at least one film grain pattern for combination with the decoded picture, wherein the selecting is based, at least in part, on the determined block average.
The teachings of the present invention can be readily understood by considering the following detailed description in conjunction with the accompanying drawings, in which:
It should be understood that the drawings are for purposes of illustrating the concepts of the invention and are not necessarily the only possible configuration for illustrating the invention. To facilitate understanding, identical reference numerals have been used, where possible, to designate identical elements that are common to the figures.
The present invention advantageously provides methods for determining block averages in film grain simulation. Although the present invention will be described primarily within the context of a video decoder subsystem for application in, for example, IC designs for consumer HD DVD players, the specific embodiments of the present invention should not be treated as limiting the scope of the invention. It will be appreciated by those skilled in the art and informed by the teachings of the present invention that the concepts of the present invention can be advantageously applied in any film grain simulation processes in, for example, media player/receiver devices, decoders, set-top boxes, television sets or the like.
Furthermore, although in the video decoder subsystem 100 of
Although the interface controller 112 of
Referring back to the subsystem 100 of
More specifically, the film grain simulation process of
In one embodiment of the present invention, the remote film grain database 104 of film grain patterns is composed of 169 patterns of 4,096 film grain samples, each representing a 64×64 film grain image. For example,
In the film grain database 104, each film grain pattern is synthesized using a different pair of cut frequencies according to a frequency filtering model of the standard specifications. The cut frequencies transmitted in the SEI message are used to access the remote film grain database 104 of film grain patterns during the film grain simulation process. The film grain database 104 is stored in ROM, Flash, or other permanent storage device, such as the film grain database 104 of the video decoder subsystem 100 of
Typically, the remote film grain database 104 is stored in the permanent storage of the host CPU 102 or at the site of the host CPU 102. However, it is the video decoder 106 and the video display and graphics engine 108 that need fast access to the film grain database 104. As such, and in accordance with the present invention, the local memory 114 is provided for fast access to at least a subset of the film grain patterns. That is, at least a small subset of the film grain patterns needed or most implemented by the existing SEI message period is transferred to and stored in the local memory 114.
In one embodiment of the present invention, the local memory 114 is large enough to store the entire film grain database 104. In such an embodiment, the video decoder 106 and the video display and graphics engine 108 have immediate and fast access, via the controller 112, to all of the available film grain patterns originally stored in the remote film grain database 104. In addition, such an embodiment of the present invention has the advantage that the film grain cache in the local memory 114 does not have to be updated on receipt of an SEI message. Such an embodiment, however, has the disadvantage that more memory (e.g., RAM) is required. In some implementations, however, such large memory space (e.g., RAM) is already available.
In an alternate embodiment of the present invention, the local memory 114 is only large enough to store a subset of the film grain database 104. In such an embodiment, on each receipt of an SEI message, the controller 112 initiates an examination of the cache of the local memory 114 to determine if any of the subset of film grain patterns already in the local memory 114 needs to be replaced with different film grain patterns in the remote film grain database 104 selected in the new SEI message. An advantage of this technique is a smaller local memory 114 allocation. A disadvantage is that the cache of the local memory 114 must be managed by the controller 112, and in the worst case, a full cache size must be transferred from the remote film grain database 104 to the local memory 114 for each I frame via, for example, the controller 112. In addition, in such an embodiment of the present invention, on device boot up (or reset), the local memory 114 (i.e., the film grain cache) can be pre-initialized by the controller 112 with the most common film grain patterns stored in the remote film grain database 104. That is, the selection of which film grain patterns to store in the local memory 114 depends on empirical data based on what film grain patterns in the film grain database 104 were most often used across a wide selection of film content.
In any event, in the above described embodiments of the present invention, the local memory 114 in accordance with the present invention, in conjunction with the controller 112, enable the video decoder 106 and the video display and graphics engine 108 faster access to the film grain patterns previously only contained in the remote film grain database 104.
Referring back to
where Avg1 is the average value of the samples in block 1, which has its top-left sample at coordinate (0,0) and its bottom-right sample at coordinate (7,7), Avg2 is the average of the samples in block 2, which has its top-left sample at coordinates (8,0), and its bottom-right sample at coordinates (15,7), etc.
In addition, the block average can be computed for each color component separately. For example, if the decoded picture is a color image in the YUV color space (Y with luminance information, U and V with chrominance information), it is possible to compute three block averages for the picture, one per color component. If the sample at coordinates (x,y) for color component c are denoted by decoded_picture[c][x][y], the block average of a block N samples wide and M samples high which top-left sample is at coordinate (Ox, Oy) could be computed as follows:
The previous pseudo-code essentially initializes the block average to 0, then adds to it the value of all the samples in the block and finally divides the resulting value by the number of samples, to obtain the average. This process should be repeated for all three color components.
In the case of film grain simulation, where the film grain parameters change on a block basis, the block average of each block (i.e., the average value of the samples of the block) is used to select the appropriate film grain parameters for the block. In accordance with the present invention, the inventors propose herein two options for determining the block average of a decoded picture.
In a first embodiment of the present invention, the block average of a decoded picture is determined during the display process. In some implementations, a decoder may already read decoded picture blocks (e.g., 8×8 blocks) from external memory (e.g., RAM) during the display process. In this case and in accordance with the present invention, the block average (e.g., 8×8 block average) is performed in the display pipeline. In accordance with the present invention, it is possible to compute the block average (e.g., 8×8 block average) during the display process even if pixels are read in raster-scan order (i.e. left to right, top to bottom). For example,
In the method 400 of
In a second embodiment of the present invention, the block average of a decoded picture is determined during a video decode process (i.e., during the H.264 decode process). During the video compression decode operation the 8×8 block samples are available. For example,
These block averages are then stored in an external memory (e.g., RAM), such as the local memory 114 of
The two methods for determining block averages in accordance with the embodiments of the present invention described above trade off external memory (e.g., RAM) storage with memory bandwidth. The first method uses no external memory, but requires either extra reads of the 8×8 blocks, or internal memory in the display pipeline. The second method requires a little extra memory bandwidth, and 146 Kbytes of external memory (e.g., RAM).
Having described various embodiments for methods, apparatus and systems for film grain simulation (which are intended to be illustrative and not limiting), it is noted that modifications and variations can be made by persons skilled in the art in light of the above teachings. It is therefore to be understood that changes may be made in the particular embodiments of the invention disclosed which are within the scope and spirit of the invention as outlined by the appended claims. While the forgoing is directed to various embodiments of the present invention, other and further embodiments of the invention may be devised without departing from the basic scope thereof. As such, the appropriate scope of the invention is to be determined according to the claims, which follow.
This application claims priority to U.S. Provisional Patent Application Ser. No. 60/619,632, filed Oct. 18, 2004, and is a Continuation of U.S. patent application Ser. No. 11/252,320 which are herein incorporated by reference in their entireties.
Number | Name | Date | Kind |
---|---|---|---|
4191594 | Stark et al. | Mar 1980 | A |
4636845 | Alkofer | Jan 1987 | A |
4935816 | Faber | Jun 1990 | A |
5028280 | Ihara et al. | Jul 1991 | A |
5140414 | Mowry | Aug 1992 | A |
5262248 | Ihara et al. | Nov 1993 | A |
5335013 | Faber | Aug 1994 | A |
5374954 | Mowry | Dec 1994 | A |
5406326 | Mowry | Apr 1995 | A |
5457491 | Mowry | Oct 1995 | A |
5471572 | Buchner et al. | Nov 1995 | A |
5475425 | Przyborski et al. | Dec 1995 | A |
5629769 | Cookingham et al. | May 1997 | A |
5641596 | Gray et al. | Jun 1997 | A |
5659382 | Rybczynski | Aug 1997 | A |
5687011 | Mowry | Nov 1997 | A |
5706361 | Kent et al. | Jan 1998 | A |
5706380 | Kent et al. | Jan 1998 | A |
5709972 | Cookingham et al. | Jan 1998 | A |
5767860 | Zimmer et al. | Jun 1998 | A |
5781664 | Bheda et al. | Jul 1998 | A |
5805782 | Foran | Sep 1998 | A |
5817447 | Yip | Oct 1998 | A |
5831673 | Przyborski et al. | Nov 1998 | A |
6233647 | Bentz et al. | May 2001 | B1 |
6441918 | Hori | Aug 2002 | B1 |
6559849 | Anderson et al. | May 2003 | B1 |
6650327 | Airey et al. | Nov 2003 | B1 |
6665369 | Ukita et al. | Dec 2003 | B2 |
6683979 | Walker et al. | Jan 2004 | B1 |
6987586 | Bogdanowicz et al. | Jan 2006 | B2 |
7065255 | Chen et al. | Jun 2006 | B2 |
7366242 | Demos | Apr 2008 | B2 |
9117260 | Cooper | Aug 2015 | B2 |
20020034337 | Shekter | Mar 2002 | A1 |
20020154140 | Tazaki | Oct 2002 | A1 |
20030218610 | Mech et al. | Nov 2003 | A1 |
20040114055 | Yu | Jun 2004 | A1 |
20040151389 | Itagaki et al. | Aug 2004 | A1 |
20050200499 | Di Peppe | Sep 2005 | A1 |
20060256853 | Schlockermann | Nov 2006 | A1 |
20060291557 | Tourapis | Dec 2006 | A1 |
20080232811 | Milner et al. | Sep 2008 | A1 |
Number | Date | Country |
---|---|---|
1324060 | Nov 2001 | CN |
0373615 | Jun 1990 | EP |
0430504 | Jun 1991 | EP |
0575006 | Oct 1999 | EP |
0622000 | Mar 2000 | EP |
1156679 | Nov 2001 | EP |
1175091 | Jan 2002 | EP |
1215624 | Jun 2002 | EP |
1511320 | Mar 2005 | EP |
1662802 | May 2006 | EP |
1947621 | Jul 2008 | EP |
04349458 | Dec 1992 | JP |
05328134 | Dec 1993 | JP |
7322245 | Dec 1995 | JP |
08079765 | Mar 1996 | JP |
9508507 | Aug 1997 | JP |
11085955 | Mar 1999 | JP |
2002374541 | Dec 2002 | JP |
2003324326 | Jan 2003 | JP |
2003274413 | Sep 2003 | JP |
2005080301 | Mar 2005 | JP |
1020040051370 | Jun 2004 | KR |
2139637 | Oct 1999 | RU |
WO9314591 | Jul 1993 | WO |
WO9520292 | Jul 1995 | WO |
WO9722204 | Jun 1997 | WO |
WO0146992 | Jun 2001 | WO |
WO0177871 | Oct 2001 | WO |
WO0233958 | Apr 2002 | WO |
WO03005731 | Jan 2003 | WO |
WO2004104931 | Dec 2004 | WO |
WO2004105250 | Dec 2004 | WO |
WO2005027045 | Mar 2005 | WO |
Entry |
---|
Campisi et al., “Signal-Dependent Film Grain Noise Generation using Homomorphic Adaptive Filtering”, IEEE Proceedings: Vision, Image and Signal Processing, vol. 147, No. 3, Jun. 23, 2000, pp. 283-287. |
Yoshida, “Go with the Grain, Film R&D Chief Urges, for Art's Sake”, EETimes, Feb. 7, 2005, http://www.eetimes.com/showArticle.jhtml?articleID=59301182 (last checked Jul. 23, 2007), pp. 1-4. |
Yan et al., “Efficient Video Coding with Hybrid Spatial and Fine Grain SNR Scalabilities”, Proceedings of SPIE, vol. 4671, pp. 850-859, 2002. |
Shahnaz et al., “Image Compression in Signal-Dependent Noise”, Applied Optics, vol. 38, No. 26, Sep. 10, 1999, pp. 5560-5567. |
Al-Shaykh et al., “Lossy Compression of Images Corrupted by Film Grain Noise”, Proceedings of International Conference on Image Processing, Sep. 16-19, 1996, Lausanne, Switzerland, vol. I of III, IEEE 1996, pp. 805-808. |
Al-Shaykh et al., “Lossy Compression of Noisy Images”, IEEE Transactions on image Processing, vol. 7, No. 12, Dec. 1998, pp. 1641-1652. |
Al-Shaykh et al., “Restoration of Lossy Compressed Noisy Images”, IEEE Transactions of Image Processing, vol. 8., No. 10, pp,1348-1360, Oct. 1999. |
Brightwell et al., “Automated Correction of Film Unsteadiness, Dirt and Grain”, International Broadcasting Convention, Sep. 16-20, 1994 Conference Publication, No. 397, pp. 667-672. |
Chavel et al., “Film Grain Noise in Partially Coherent Imaging”, Optical Engineering, vol. 19, No. 3, May/Jun. 1980, pp. 404-410. |
Fischer et al., “Image Sharpening Using Permutation Weighted Medians”, Dept of Electrical Engineering, University of Delware, Newark, DE, Sep. 2000, pp. 1-4. |
McLean et al., “Telecine Noise Reduction”, IEE Seminar Digital Restoration of Film and Video Archives, (Ref. No. 01/049), London, UK. Jan. 16, 2001, pp. 2/1-2/6. |
Yan et al., “Film Grain Noise Removal and Generation for Color Images”, 1997 IEEE Signal Processing Workshop on Higher-Order Statistics, Jul. 21-23, Banff, Alberta, Canada. pp. 73-76. |
Yan et al., “Signal-Dependent Film Grain Noise Removal and Generation Based on Higher-Order Statistics”, 1997 IEEE Signal Processing Workshop on Higher-Order Statistics, Jul. 21-23, Banff, Alberta, Canada, pp. 77-81. |
Zhang et al., “Constant Quality Constrained Rate Allocation for FGS Video Coded Bitstreams”, Proceedings of SPIE, vol. 4671, pp. 817-827, 2002. |
Zhao, “Constant Quality Rate Control for Streaming MPEG-4 FGS Video”, IEEE, 2002, pp. 544-547. |
Van Der Schaar et al., “Fine-Granularity-Scalability for Wireless Video and Scalable Storage”, Proceedings of SPIE, vol. 4671, pp. 805-816, 2002. |
Oktem et al., “Transform Domain Algorithm for Reducing Effect of Film-Grain Noise in Image Compression”, Electronics Letters, vol. 35, No. 21, Oct. 14, 1999, pp. 1830-1831. |
Peng et al., “Adaptive Frequency Weighting for Fine-Granularity-Scalability”, Proceedings of SPIE, vol. 4671, pp. 840-849, 2002. |
Prades-Nebot et al., “Rate Control for Fully Fine Grained Scalable Video Coders”, Proceedings of SPIE, vol. 4671, pp. 828-839, 2002. |
Schlockerman et al: “Film Grain Coding in H.264/AVC”. JVT of ISO/IEC ITU-T MOEG & ITU-T VCEG (ISO/IEC JTC/SC29/WC11 and ITU-T SG16 Q6) , Sep. 6, 2006, pp. 1-8. |
Gomila: “SEI Message for Film Grain Encoding”; JVT of ISO/IEC ITU-T VCEG, May 2003, pp. 1-14, Geneva. |
Number | Date | Country | |
---|---|---|---|
20150187387 A1 | Jul 2015 | US |
Number | Date | Country | |
---|---|---|---|
60629632 | Oct 2004 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 11252320 | Oct 2005 | US |
Child | 14659782 | US |