s as follows: If all of the following conditions are true: i is equal to 0, j is equal to 0, C relates to a luma residual block coded using Intra_16x16 macroblock prediction mode or C relates to a chroma residual block. the variable doo is derived by doo = COO (8-335) Otherwise, the following applies: If qP is greater than or equal to 24, the scaled result is derived as dij=(cii*LevelScale4x4( = qP % 6, i, j) ) << ( qP / 6 - 4), with i, j = 0..3 except as noted above (8-336) Otherwise (qP is less than 24), the scaled result is derived as di = withi, j =0..3 exceptas notedabove (8-337) The bitstream shall not contain data that result in any element dii of d with i, j = 0..3 that exceeds the range of integer values from 8.5.12.2 Transformation process for residual 4x4 blocks Inputs of this process are: the variable bitDepth, a 4x4 array of scaled transform coefficients d with elements dij Rec. ITU-T H.264 (01/2012) Outputs of this process are residual sample values as 4x4 array r with elements rij. The bitstream shall not contain data that result in any element dij of d with i, j = 0..3 that exceeds the range of integer values from -2 + bitDepth) to 2 (7 + bitDepth) - 1, inclusive. The transform process shall convert the block of scaled transform coefficients to a block of output samples in a manner mathematically equivalent to the following. First, each (horizontal) row of scaled transform coefficients is transformed using a one-dimensional inverse transform as follows. A set of intermediate values is computed as follows: eio = dio + di2, with i = 0..3 (8-338) e = =0..3 (8-339) e12 =(dii>>1)- = - di3, with i 0..3 (8-340) ei3di+(di3>>1),with i = 0..3 (8-341) The bitstream shall not contain data that result in any element eij of e with i, j = 0..3 that exceeds the range of integer values from - -2 (7 + bitDepth) to 2(7+bitDepth) - 1, inclusive. Then, the transformed result is computed from these intermediate values as follows: i = 0..3 (8-342) (8-343) = ei ei2, with 0..3 (8-344) fi3 = eio ei3, with 0..3 (8-345) The 