Title of Invention

A METHOD AND APPARATUS FOR READING FILM GRAIN PATTERNS IN A RASTER ORDER IN FILM GRAIN SIMULATION

Abstract The present invention provides a method and apparatus for reading film grain patterns in a raster order in film grain simulation including establishing a pseudo-random starting position, repeating the pseudo-random starting position for each line of a group of film grain blocks, and using a different pseudo-random starting position for each display line of a next group of film grain blocks. In various embodiments of the present invention, the different pseudo-random starting positions are triggered by resetting at least one seed value of a pseudo-random number generator implemented to determine said pseudo-random starting positions.
Full Text CROSS-REFERENCE TO RELATED APPLICATIONS
This application claims priority to United States Provisional Patent Application Serial No. 60/619,632, filed October 18, 2004, which is herein incorporated by reference in its entirety.
FIELD OF THE INVENTION
The present invention generally relates to film grain simulation and, more particularly, to a method and apparatus for reading film grain patterns in a raster order in film grain simulation.
BACKGROUND OF THE INVENTION
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 trăit 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 l MPEG-4 AVC video compression standard, and in particular in its Fidelity Range Extensions (FRExt) Amendment 1 (JVT-K051, ITU-T Recommendation H.264 l ISO/IEC 14496-10 International Standard with Amendment 1, Redmond, USA, June 2004), a film grain Supplemental Enhancement Information (ŞEI) 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 l MPEG-4 AVC standard specifies which parameters are present in the film grain ŞEI message, how to interpret them and the syntax to be used to encode the ŞEI message in binary format. The standard does not specify, however, the exact procedure to simulate film grain upon reception of the film grain ŞEI 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, NY, 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 ŞEI message as specified by the H.264 / AVC video coding standard or the like.
SUMMARY OF THE INVENTION
The present invention advantageously provides a method and apparatus for reading film grain patterns in a raster order in film grain simulation.
In one embodiment of the present invention a method for reading film grain patterns in a raster order in film grain simulation includes establishing a pseudo-random starting position, repeating the pseudo-random starting pbsition for each line of a group of film grain blocks, and using a different pseudo-random starting position for each display line of a next group of film grain blocks. In various embodiments of the present invention, the different pseudo-random starting positions are triggered by resetting at least one seed value of a pseudo-random number generator implemented to determine said pseudo-random starting positions.
In an alternate embodiment of the present invention an apparatus for reading film grain patterns in a raster order in film grain simulation includes a pseudo random number generator, for establishing a pseudo-random starting position for each line of a group of film grain blocks and for establishing a different
pseudo-random starting position for each display line of a next group of film grain blocks. In one embodiment of the present invention the pseudo-random starting positions each comprise a horizontal offset and a vertical offset and the offsets are determined by taking the most significant bit (MSB) and the least significant bit (LSB) of the pseudo-random number generator.
BRIEF DESCRIPTION OF THE DRAWINGS
The teachings of the present invention can be readily understood by considering the following detailed description in conjunction with the accompanying drawings, in which:
FIG. 1 depicts a high level block diagram of a video decoder subsystem having film grain simulation capabilities in accordance with one embodiment of the present invention;
FIG. 2 depicts a high level block diagram of an embodiment of an interface controller suitable for use in the video decoder subsystem of FIG. 1;
FIG. 3 depicts a high level block diagram of a typical arrangement of the film grain database of FIG. 1 and its offsets;
FIG. 4 depicts a high level block diagram of an embodiment of a uniform pseudo-random number generator for randomly selecting film grain blocks;
FIG. 5 depicts a high level block diagram of a plurality of 64x64 film grain patterns having 8x8 blocks where only one film grain pattern is used for the selection of film grain blocks; and
FIG. 6 depicts a high level block diagram of a plurality of 64x64 film grain patterns having 8x8 blocks where two film grain patterns are used for the selection of film grain blocks.
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, identica) reference numerals have been used, where possible, to designate identical elements that are common to the figures.
DETAILED DESCRIPTION OF THE INVENTION
The present invention advantageously provides a method for reading film grain patterns in a raster order 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 skiiled 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.
FIG. 1 depicts a high level block diagram of. a video decoder subsystem having film grain simulation capabilities in accordance with one embodiment of the present invention. The video decoder subsystem 100 of FIG. 1 illustratively comprises a video decoder (illustratively a H.264 decoder) 106, a video display and graphics engine 108, a host interface 110, an interface controller (illustratively a RAM interface controller) 112, and a local memory (illustratively a local RAM memory) 114 implemented as a film grain cache for storing a small subset of the film grain patterns in the remote film grain database 104. FIG. 1 further depicts a host CPU 102 and a remote permanent storage program memory comprising a remote film grain database 104. Although in the video decoder subsystem 100 of FIG. 1, the host CPU 102 and the remote film grain database 104 are depicted as comprising separate components, in alternate embodiments of the present invention, the remote film grain database 104 can be located in a permanent memory of the CPU 102. Furthermore, although in the video decoder subsystem 100 of FIG. 1, the video decoder 106, the video display and graphics engine 108, the host interface 100, and the interface controller 112 are depicted as comprising separate components, in alternate embodiments of the present invention, the video decoder 106, the video display and graphics engine 108, the host interface 100, and the interface controller 112 can comprise a single component and can be integrated in a single integrated system-on-chip (SoC) design.
Furthermore, although in the video decoder subsystem 100 of FIG. 1, the means for storing the film grain patterns are depicted as a local memory 114 (cache) and a remote film grain database 104, in alternate embodiments of the present invention, substantially any accessible storage means may be implemented to maintain a subset of the film grain patterns and the total number of film grain patterns. Such means may include storage disks, magnetic storage media, optica! storage media or substantially any storage means. In addition, one or more storage means may be implemented for each of the storage devices. Even further, although the film grain database 104 of FIG. 1 is depicted as being located remotely f rom the memory 114, in alternate embodiments of the present invention, the film grain patterns storage means may be located in close proximity or at great distances f rom each other.
FIG. 2 depicts a high level block diagram of an embodiment of an interface controller suitable for use in the video decoder subsystem 100 of FIG. 1. The interface controller 112 of FIG. 2 comprises a processor 210 as well as a memory 220 for storing control programs, algorithms and the like. The processor 210 cooperates with convenţional support circuitry 230 such as power supplies, clock circuits, cache memory and the like as well as circuits that assist in executing the software routines stored in the memory 220. As such, it is contemplated that some of the process steps discussed herein as software processes may be implemented within hardware, for example, as circuitry that cooperates with the processor 210 to perform various steps. The interface controller 112 also contains input-output circuitry 240 that forms an interface between the various respective funcţional elements communicating with the interface controller 112.
Although the interface controller 112 of FIG. 2 is depicted as a general purpose computer that is programmed to perform various control functions in accordance with the present invention, the invention can be implemented in hardware, for example, as an application specified integrated circuit (ASIC). As such, the process steps described herein are intended to be broadly interpreted as being equivalently performed by software, hardware, or a combination thereof.
Referring back to the subsystem 100 of FIG. 1, the remote film grain database 104 is typically relatively large. In one embodiment of the present
invention, the H.264 video decoder 106, the video display and graphics engine 108, the. host interface 110, the interface controller 112, and the local memory 114 comprise components of an HD DVD player. Film grain patterns from the remote film grain database 104 are needed to be accessed at the sample rate of, for example, the HD DVD player. Therefore, fast access to the large film grain database 104 is necessary. In the subsystem 100 of FIG. 1 in accordance with the present invention, only a small portion of the remote film grain database 104 is used during Supplemental Enhancement Information (ŞEI) film grain periods, which are leveraged to develop a caching technique to reduce complexity.
More specifically, the film grain simulation process of FIG. 1 requires the decoding of film grain ŞEI messages, conveyed in the International Standard ITU-T Rec. H.264 l ISO/IEC 14496-10 bit-streams as specified by Amendment 1 (Fidelity Range Extensions), which are both herein included by reference in their entireties. In one embodiment of the present invention, film grain ŞEI messages are sent preceding l (intra-coded) pictures, and only one film grain ŞEI message precedes a particular l picture.
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 64x64 film grain image. 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 transmitled in the ŞEI 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 FIG. 1, and typically does not change. The film grain database 104 contains random film grain patterns in a very large variety of film grain shapes and sizes. However, for a specific video content sequence only a small subset of this database is actually needed to effectively simulate film grain. The specification limits the number of film grain patterns to a small subset for any ŞEI message period. Therefore, the present invention implements a small film grain cache, such as the local memory 114, which is updated on receipt of ŞEI messages.
Typically, the remote film grain database 104 is stored in the permanent storage of the host CPU 102 or at the site of the nost 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 ŞEI 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 tb 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 interface 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 ŞEI message. Such an embodiment, however, has the disadvantage that more memory (e.g., RAM) is required. In some implementations, however, such large memory space is aiready 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 ari embodiment, on each receipt of an ŞEI 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 aiready 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 ŞEI 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 f rom the remote film grain database 104 to the local memory 114 for each l 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 database104. That is, the selection of which film grain patterns to stora in the local memory 114 depends on empirica! data based on what film grain pattems in the film grain database 104 were most often used across a wide selection of film content.
In any avânt, 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.
As previously described and with respect to the video decoder subsystem 100 of FIG. 1, in one embodiment of the present invention, the film grain database 104 of film grain patterns is composed of 169,64x64 sample images (pattems) of continuous film grain. Each of the 169 images represents a different film grain pattern. A film grain pattern has a specific size and shape created by a frequency filtering model as described in C. Gomila, J. Llach, J Cooper, "Film Grain Simulation for HD DVD Systems", October 18 2004, which is herein incorporated by reference in its entirety.
During a film grain simulation process, blocks of film grain are accessed in a random order. That is, a pseudo-random number generator is used to create an offset in the horizontal and vertical directions into a film grain pattern (or film grain pattern database having more than one film grain pattern) to determine a start read position for selecting samples of film grain patterns. For example, FIG. 3 depicts a high level block diagram of a typical arrangement of the film grain database of FIG. 1. FIG. 3 depicts a 64x64 sample film grain pattern having Loffset in the x-axis (horizontal offset) and j_offset in the y-axis (vertical offset). FIG. 3 further depicts the 169 film grain patterns of the various types. In one embodiment of the present invention and with reference to FIG. 3, the film grain pattern is composed of 64x64 samples divided into 8x8 blocks of film grain samples. In such embodiments of the present invention, the offsets may optionally be limited to the range [0,48] to ensure that a full 16x16 block is available on the edges of the film grain pattern database. As described, a pseudo-random number generator is used to create an offset in the horizontal and vertical directions into the 64x64 film grain pattern. In one embodiment of the
present invention, the horizontal offset resolution is limited to every 4m sample, while the vertical offset resolution is limited to every 8* sample. It should be noted however, that in alternate embodiments of the present invention, other horizontal offset and vertical offset resolution values may be chosen. Furthermore, in embodiments of the present invention, the offsets may optionally be limited to the range [0,48] to ensure that a full 16x16 block is available on the edges of the film grain pattern database.
FIG. 4 depicts a high level block diagram of an embodiment of a pseudo-random number generator in accordance with the present invention. The pseudo-random number generator 400 of FIG. 4, using a polynomial modulo 2 operator, x31 + x3 + 1, is used to randomly select film grain blocks of samples from the film grain patterns in a film grain database. In the embodiment of FIG. 4, the polynomial modulo 2 operator is implemented in a 32-bit shift register. At each stage, twb random numbers are extracted from the register by taking the MSB and LSB. Specifically in the pseudo-random number generator 400 of FIG. 4, two random numbers are extracted from the register by taking the 16MSB and 16LSB, for an embodiment having film grain patterns of 64x64 samples in a film grain database grouped into 4 blocks of 8x8 samples, 2 vertical and 2 horizontal. In accordance with one embodiment of the present invention, upon receipt of a film grain ŞEI message, a seed, ei, used for simulating film grain on the first color component is set to 1; a seed, 62, used for simulating film grain on the second color component is set to 557,794,999; and a seed, e3, used for simulating film grain on the third color component is set to 974,440,221. It should be noted however that the values of seed ei, 62, and 63 depicted above are merely one embodiment of the present invention and that in alternate embodiments of the present invention, other seed values may be used.
A subtle aspect of the pseudo-random number generator 400 of FIG. 4 is that blocks of film grain samples are grouped together in patterns. The patterns are achieved, in accordance with the present invention, by resetting the seed values for each group of blocks. That is, the seed values are the same for the beginning of each display line for every line of the group of blocks. This feature is implemented to maintain the larger film grain pattern quality.
. For example, in one embodiment of the present invention, the film grain samples are grouped together in blocks of 8x8 samples and arranged in groups of 4 blocks, 2 horizontally and 2 vertically. This pattern is achieved, in accordance with the present invention, by resetting the seed values for each group of blocks only every 16 lines and 16 columns. That is, the seed values are the same for the beginning.of each display line for every line of the group of blocks (i.e., for the example above, every 16 lines).
Although in the embodiment of the present invention described directiy above, the inventors described the present invention implementing groups of 2x2 blocks of 8x8 samples (resulting in the updating of the seed values every 16 lines and 16 columns), other configurations can be used, even with a non-integer number of blocks, such that the seeds are updated after substantially any desired numbers of lines and columns consistently throughout the detemnined pattern. An important aspect of the present invention is to have a repeatable pseudo-random number pattern that is determinable.
In accordance with the present invention, the film grain patterns can be read out of memory in a raster order to match the display needs. This is possible, in accordance with the present invention, due to the repeatable characteristic of the pseudo random number generator as described above. To reiterate, the pseudo-random number x(k, ec) is started with a new seed upon receipt of a film grain ŞEI message. As such and referring to the example described above, a new random number in the pseudo random number sequence is generated every 16 horizontal samples across the display line. In accordance with the present invention, at the end of a display line, the pseudo-random number generator is reset with the value (x(k, ec)) from the beginning of the previous line. Since the pseudo-random process is repeatable, the same blocks are chosen every 16 samples during the second display line. This process repeats itself for each display line through the 16th display line. After the 16th display, the pseudo-random number x(k, ec) is updated to the next value in the sequence of pseudo-random values and saved (i.e., in a register) for use as the starting x(k, ec) for the next 16 display lines.
For example, FIG. 5 depicts a high level block diagram of a plurality of 64x64 film grain patterns having 8x8 blocks where only one film grain pattern is used for the selection of film grain blocks. That is, in FIG. 5 all of the block averages of a decoded picture segment point to the same film grain pattern, film grain pattern 1 of FIG. 5. Therefore, FIG. 5 depicts the grouping of 8x8 blocks into 16x16 blocks in accordance with one embodiment of the present invention all in one film grain pattern.
FIG. 6 depicts a high level block diagram of a plurality of 64x64 film grain patterns having 8x8 blocks where two film grain patterns are used for the selection of film grain blocks. That is, in the embodiment of FIG. 6 the block averages of a decoded picture segment point to film grain pattern 1 and pattern 2. In this case you can still see the 16x16 patterns, however they now cross back and forth between film grain pattern 1 and pattern 2. The same pseudo-random state is used for all the film grain pattern types.
Using the concepts of the present invention, the display engine of the decoder can read film grain data in raster order and full block (the illustratively 8x8 blocks) reads are not necessary. Another benefit of the above described concepts of the present invention is that an 8x8 block RAM used in film grain deblocking during film grain simulation for 8x8 blocks can be reduced to 2 samples. Only the two samples on the right edge of the previous film grain block on the current display line (e.g., previous_fg_block[i + 6][j] and previous_fg_block[i + 7][j])are needed. That is, in deblocking vertical edges between adjacent blocks to form film grain patterns, a deblocking filter is applied between adjacent film grain blocks to ensure the seamless formation of film grain patterns. The deblocking filter applies only to the vertical edges between adjacent blocks. Because the film grain blocks are simulated in raster scan order in accordance with the present invention and as described above, only the two samples on the right edge of the previous film grain block on the current display line are needed for deblocking.
Having described various embodiments for a method and apparatus for reading film grain patterns in a raster order during 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 varipus embodiments of the present invention, other and further embodiments of the invention may be devised without departing f rom the basic scope thereof. As such, the appropriate scope of the invention is to be determined according to the claims, which follow.





1. A method for reading film grain patterns in a raster order in film grain
simulation comprising:
establishing a start read offset position;
repeating said start read offset position for each display line of a group of film grain blocks; and
using a different start read offset position for each display line of a next group of film grain blocks.
2. The method of claim 1, wherein said start read offset positions are
determined pseudo-randomly.
3. The method of claim 1, wherein said start read offset positions are
determined using a pseudo-random number generator.
4. The method of claim 1, wherein said start read offset positions each
comprise a vertical offset and a horizontal offset.
5. The method of claim 4, wherein said horizontal offset is limited to
every fourth film grain sample.
6. The method of claim 4, wherein said vertical offset is limited to every
eighth film grain sample.
7. The method of claim 1, wherein said group of film grain blocks and
said next group of film grain blocks each comprise four groups of 8x8 film grain
samples, said groups being arranged as two vertical groups and two horizontal
groups.
8. The method of claim 7, wherein said different start read offset
position is triggered by resetting at least one seed value of a pseudo-random
number generator implemented to determine said start read offset positions.
9. A rriethod for reading film grain patterns in a raster order in film grain
simulation comprising:
establishing a pseudo-random starting position;
repeating said pseudo-random starting position for each line of a group of film grain blocks; and
using a different pseudo-random starting position for each display line of a next group of film grain blocks.
10. The method of claim 9, wherein said pseudo-random starting
position iş determined using a pseudo-random number generator.
11. The method of claim 9, wherein a number of film grain samples in
each line of each group of film grain blocks is determined by setting seed values
of said pseudo-random number generator.
12. The method of claim 9, wherein a number of lines in each group of
film grain blocks is determined by said pseudo-random number generator.
13. The method of claim 9, wherein said pseudo-random starting
positions each comprise a vertical offset and a horizontal offset of at least one film
grain pattern.
14. The method of claim 13, wherein said horizontal offset is limited to
every fourth film grain sample of said at least one film grain pattern.
15. The method of claim 13, wherein said vertical offset is limited to
every eighth film grain sample of said at least one film grain pattern.
16. The method of claim 9, wherein said film grain patterns are located
in a film grain database.
17. The method of claim 9, wherein said group of film grain blocks and
said next group of film grain blocks each comprise four groups of 8x8 film grain
samples, said groups each being arranged as two vertical groups and two
horizontal groups.
18. An apparatus for enabling reading of film grain patterns in a raster
order in film grain simulation comprising:
a pseudo random number generator, for establishing a pseudo-random starting position for each line of a group of film grain blocks and for establishing a different pseudo-random starting position for each display line of a next group of film grain blocks.
19. The apparatus of claim 18, wherein seed values for said pseudo-
random number generator are the same for the beginning of each line of a group
of film grain blocks.
20. The apparatus of ciaim 18, wherein seed values for said pseudo-
random number generator are different between said group of film grain blocks
and said next group of film grain blocks.
21. The apparatus of claim 18, wherein said pseudo-random number
generator is implemented to randomly select groups of film grain blocks of from
said film grain patterns.
22. The apparatus of claim 18, wherein said pseudo-random starting
positions each comprise a horizontal offset and a vertical offset.
23. The apparatus of claim 22, wherein said offsets are limited to the
range[0, 48].
24. The apparatus of claim 22 wherein said offsets are determined by
the pseudo-random number generator by taking the most significant bit (MSB) and
the least significant bit (LSB).





Documents:

http://ipindiaonline.gov.in/patentsearch/GrantedSearch/viewdoc.aspx?id=pKiye2m19t4kUVVR90aAGA==&loc=+mN2fYxnTC4l0fUd8W4CAA==


Patent Number 269471
Indian Patent Application Number 2377/DELNP/2007
PG Journal Number 44/2015
Publication Date 30-Oct-2015
Grant Date 23-Oct-2015
Date of Filing 28-Mar-2007
Name of Patentee THOMSON LICENSING
Applicant Address 46, QUAI A. LE GALLO, F-92100 BOULOGNE-BILLANCOURT (FR)
Inventors:
# Inventor's Name Inventor's Address
1 GOMILA, CRISTINA 25C CHESTNUT COURT, PRINCETON, NEW JERSEY 08540, U.S.A.
2 COOPER, JEFFREY, ALLEN 11 TOTH LANE, ROCKY HILL, NEW JERSEY 08553, U.S.A.
3 LLACH, JOAN 25C CHESTNUT COURT, PRINCETON, NEW JERSEY, 08540, U.S.A.
PCT International Classification Number G06T 9/00
PCT International Application Number PCT/US2005/037054
PCT International Filing date 2005-10-17
PCT Conventions:
# PCT Application Number Date of Convention Priority Country
1 60/619,632 2004-10-18 U.S.A.