ype is equal to SI or the macroblock prediction mode is equal to Inter in an SP slice, sMbFlag is set equal to 1, Otherwise (mb_type not equal to SI and the macroblock prediction mode is not equal to Inter in an SP slice), sMbFlag is set equal to 0. The variable qP is derived as follows: If the input array C relates to a luma residual block and sMbFlag is equal to 0, qP=QP'Y = (8-330) Otherwise, if the input array C relates to a luma residual block and sMbFlag is equal to 1, qP = QSy (8-331) Rec. ITU-T H.264 (01/2012) Otherwise, if the input array C relates to a chroma residual block and sMbFlag is equal to 0, qP = QP'c (8-332) Otherwise (the input array C relates to a chroma residual block and sMbFlag is equal to 1), qP = QSc (8-333) Depending on the value of TransformBypassModeFlag, the following applies: If TransformBypassModeFlag is equal to 1, the output r is derived as: (8-334) Otherwise (TransformBypassModeFlag is equal to 0), the following ordered steps are specified: The scaling process for residual 4x4 blocks as specified in clause 8.5.12.1 is invoked with bitDepth, qP, and c as the inputs and the output is assigned to the 4x4 array d of scaled transform coefficients with elements dij. 2. The transformation process for residual 4x4 blocks as specified in clause 8.5.12.2 is invoked with bitDepth and d as the inputs and the output is assigned to the 4x4 array r of residual sample values with elements Iij. 8.5.12.1 Scaling process for residual 4x4 blocks Inputs of this process are: the variables bitDepth and qP, a 4x4 array C with elements Cij which is either an array relating to a residual block of luma component or an array relating to a residual block of a chroma component. Output of this process is a 4x4 array of scaled transform coefficients d with elements dii. The bitstream shall not contain data that result in any element Cij of C with i, j = 0..3 that exceeds the range of integer values from -2 + bitDepth)to.2(7+bitDepth)_ 1, inclusive. Scaling of 4x4 block transform coefficient levels Cij proceed