x, mbResL[ y ] + refLayerMbResL[ (G-173) =-(1<<BitDepthy) (G-174) yMax= (1<<BitDepthy) 1 (G-175) Rec. ITU-T H.264 (01/2012) 3. When ChromaArrayType is not equal to 0, for CX being replaced by Cb and Cr, all elements mbRescx[ ] of the (MbWidthC)x(MbHeightC) array mbRescx with X = ..(MbWidthC - 1) and y=0. (MbHeightC are modified by mbRescx[ X, y ] = Clip3( cMin, cMax, mbRescx[ X, y ] + refLayerMbRescx[ X y ] ) (G-176) cMin =-(1<<BitDepthc)+ 1 (G-177) cMax = = (1<< BitDepthc) - 1 (G-178) The picture sample array construction process as specified in clause G.8.5.4.1 is invoked with fieldMbFlag, mbResL. picResL, and, when ChromaArrayType is not equal to 0, mbRescb, mbRescr picRescb, and picResc as the inputs and the outputs are a modified version of the array picResL and, when ChromaArrayType is not equal to 0, modified versions of the arrays picRescb and picRescr. G.8.5.3.1 Construction process for luma residuals or chroma residuals with ChromaArrayType equal to 3 Inputs to this process are: a variable iYCbCr specifying the colour component (when present), a variable cTrafo specifying the transform type, a list of scaled transform coefficient values sTCoeff with (256 + 2 * MbWidthC * MbHeightC) elements. Outputs of this process are residual sample values as a 16x16 array mbRes with elements mbRes X, y ]. When iYCbCr is not present as input to this clause, it is inferred to be equal to 0. Depending on iYCbCr, the variables bitDepth and cO are derived as follows: If iYCbCr is equal to 0, bitDepth is set equal to BitDepthy and cO is set equal to 0. Otherwise, if iYCbCr is equal to 1, bitDepth is set equal to BitDepthc and cO is set equal to 256. Otherwise (iYCbCr is equal to 2), bitDepth is set equal to BitDepthc and cO is set equal to (256 + MbWidthC * MbHeightC). Depending on cTrafo, the 16x16 array mbRes is derived as follows: If cTrafo is equal to T_PCM, the construction process for luma residuals or chroma residuals with ChromaArrayType equal to 3 of I PCM macroblocks as specified in clause G.8.5.3.1.1 is invoked 