bound[c][i]) (D-20) s[j]=i Samples that do not fall into any of the defined intervals are not modified by the grain generation function. Samples that fall into more than one interval will originate multi-generation grain. Multi-generation grain results from adding the grain computed independently for each intensity interval. comp_model_value[c ][ ] represents each one of the model values present for the colour component C and the intensity interval i. The set of model values has different meaning depending on the value of model id. The value of comp_model_value[c][i][j] shall be constrained as follows, and may be additionally constrained as specified elsewhere in this clause. If model id is equal to 0, comp_model_value[ c][i][j] shall be in the range of 0 to 2 filmGrainBitDepth[c 1, inclusive. Otherwise (model id is equal to 1), comp_model_value[c][i) shall be in the range of -2° filmGrainBitDepth[c]-1) to 2 - filmGrainBitDepth| c]-1) 1, inclusive. Depending on model_id, the synthesis of the film grain is modelled as follows: If model id is equal to 0, a frequency filtering model enables simulating the original film grain for c = 0..2, X = 0..PicWidthInSamples, and y = 0..PicHeightInSamples__ as specified by: k,y,c-1])>>log2_scale_factor (D-21) where Q[ c ] is a two-dimensional random process generated by filtering 16x16 blocks gaussRv with random-value elements gaussRvj generated with a normalized Gaussian distribution (independent and identically distributed Gaussian random variable samples with zero mean and unity variance) and where the value of an element G[ X, y, C -1 ] used in the right-hand side of the equation is inferred to be equal to 0 when c - 1 is less than 0. NOTE 6 - A normalized Gaussian random value can be generated from two independent, uniformly distributed random values over the interval from 0 to 1 (and not equal to 0), denoted as uRvo and uRv1, using the Box-Muller transformation specified by (D-22) where Ln( x) is the natural logarithm of X (the base-e logarithm, where e is natural logarit