med depending on the variable ChromaArrayType as follows: If ChromaArrayType is equal to 1, the scaled result is derived as: dcC=((f*LevelScale4x4(qP%6,0,0))<< (qP/6)) >> 5, with i,j=0,1 (8-326) Otherwise (ChromaArrayType is equal to 2), the following ordered steps are specified: 1. The variable qPDC is derived as: DC=qP+3 (8-327) Depending on the value of qPDC, the following applies: If qPDC is greater than or equal to 36, the scaled result is derived as: dcC=(fii*LevelScale4x4(qPDC%6,0,0))<<(qPDC / 6-6), with = 0..3, = (8-328) Otherwise (qPDC is less than 36), the scaled result is derived as: = 0,1 (8-329) The bitstream shall not contain data that result in any element dcCii of dcC with i, j = 0..3 that exceeds the range of integer values from -2 + bitDepth) to 2 (7) bitDepth) inclusive. NOTE 1 - When entropy_coding_mode_flagi is equal to 0 and qP is less than 4 and profile_idc is equal to 66, 77, or 88, the range of values that can be represented for the elements Cij of C in clause 8.5.11.1 may not be sufficient to represent the full range of values of the elements dcCi of dcC that could be necessary to form a close approximation of the content of any possible source picture. NOTE 2 - Since the range limit imposed on the elements dcCii of dcC is imposed after the right shift in Equation 8-326 or 8-329, a larger range of values must be supported in the decoder prior to the right shift. 8.5.12 Scaling and transformation process for residual 4x4 blocks Input to this process is a 4x4 array C with elements Cij which is either an array relating to a residual block of the luma component or an array relating to a residual block of a chroma component. Outputs of this process are residual sample values as 4x4 array r with elements Iij. The variable bitDepth is derived as follows: If the input array C relates to a luma residual block, bitDepth is set equal to BitDepthy. Otherwise (the input array C relates to a chroma residual block), bitDepth is set equal to BitDepthc. The variable sMbFlag is derived as follows: If mb t