 from -2 (7 BitDepthC) to 2 (7) BitDepthC) 1, inclusive. NOTE 2 - The elements tCoeffLevel cO + 16* b ] and sTCoeff| cO 16* b=0..(numB - 1) can exceed the range of integer values from -2(7 BitDepthC) to 27 BitDepthc) 1, inclusive. G.8.5.2 Transform coefficient level scaling process prior to transform coefficient refinement Inputs to this process are: a variable cTrafo specifying the luma transform type for the current macroblock, a list tCoeffLevel with (256 + 2 * MbWidthC * MbHeightC) elements specifying transform coefficient level values for the current macroblock, a variable tQPy specifying the luma quantisation parameter for the current macroblock, a variable refQPy specifying the quantisation parameter for the macroblock of the reference layer representation, when ChromaArrayType is not equal to 0, two variables tQPcb and tQPcr specifying chroma quantisation parameters for the current macroblock, when ChromaArrayType is not equal to 0, two variables refQPcb and refQPcr specifying chroma quantisation parameters for the macroblock of the reference layer representation, Output of this process is a modified version of the list tCoeffLevel. Table G-6 specifies the scale values cS for transform coefficient level scaling. Table G-6 - Scale values cS for transform coefficient level scaling refQP-cQP+54)%6 scale value cS The variable iYCbCr proceeds over the values from 0 to ( ( ChromaArrayType ==0)?0: 2), inclusive, and for each value of iYCbCr, the following ordered steps are specified: 1. The variables cO, iMax, cQP, and refQP are derived by iYCbCr : ( 256 + (iYCbCr - 1 MbWidthC MbHeightC)) (G-167) iMax = =((iYCbCr ==0)? 255 : ( MbWidthC*MbHeightC-1)) (G-168) cQP =((iYCbCr == = 0) ? tQPy : (iYCbCr tQPcb tQPcr)) (G-169) refQP = =((iYCbCr ==0)? refQPy : (iYCbCr==1?refQPcb : refQPcr) (G-170) 2. The variable cS is set as specified in Table G-6 using the values of refQP and cQP. 3. The variable rShift is calculated by rShift=(refQP-cQP+54)/ = (G-171) 4. The list tCoeffLevel of transform coefficient level values is modi