ause G.8.5.3.2.2 is invoked with iCbCr and sTCoeff as the inputs and the output is the (MbWidthC)x(MbHeightC) array mbRescx of residual chroma sample values. Otherwise (ChromaArrayType is equal to 3), the construction process for luma residuals or chroma residuals with ChromaArrayType equal to 3 as specified in clause G.8.5.3.1 is invoked with iYCbCr set equal to (1 + iCbCr), cTrafo, and sTCoeff as the inputs and the output is the (MbWidthC)x(MbHeightC) array mbRescx of residual chroma sample values. G.8.5.3.2.1 Construction process for chroma residuals of PCM macroblocks Inputs to this process are: a variable iCbCr specifying the chroma component, a list of scaled transform coefficient values sTCoeff with (256 + 2 * MbWidthC * MbHeightC) elements. Outputs of this process are residual chroma sample values as a (MbWidthC)x(MbHeightC) array mbRes with elements mbRes X, y ]. The (MbWidthC)x(MbHeightC) array mbRes is derived by mbRes[ X, ]=sTCoeff| 256 + iCbCr * MbWidthC * MbHeightC+y*MbWidthC+x) (G-186) with X = ..(MbWidthC -1) and y = ..(MbHeightC G.8.5.3.2.2 Construction process for chroma residuals with ChromaArrayType equal to 1 or 2 This process is only invoked when ChromaArrayType is equal to 1 or 2. Inputs to this process are: a variable iCbCr specifying the chroma component, a list of scaled transform coefficient values sTCoeff with (256 + 2 * MbWidthC MbHeightC) elements. Outputs of this process are residual chroma sample values as a (MbWidthC)x(MbHeightC) array mbRes with elements mbRes X, y ]. The variables nW, nH, numB, and cO are derived by nW = MbWidthC / (G-187) nH = MbHeightC (G-188) numB = nW nH (G-189) = 256 + iCbCr * MbWidthC*MbHeightC) (G-190) For the chroma DC transform coefficients of all residual 4x4 chroma blocks, the following ordered steps are specified: The (nW)x(nH) array C with the elements Cij is derived by j=sTCoeff[cO+32*i+16*j] = with i = 0..(nH-1), .(nW - 1) (G-191) Rec. ITU-T H.264 (01/2012) 2. The transformation process for chroma DC transform coefficients as specified in clause 8