ether the current macroblock is a field or a frame macroblock, Rec. ITU-T H.264 (01/2012) a one-dimensional array refLayerFieldMbFlag with RefLayerPicSizeInMbs elements specifying which macroblocks of the reference layer representation are field macroblocks and which macroblocks are frame macroblocks, a one-dimensional array refLayerCTrafo with RefLayerPicSizeInMbs elements specifying the luma transform types for the macroblocks of the reference layer representation, a a(RefLayerPicWidthInSamplesL)x(RefLayerPicHeightInSamples) array refLayerPicSamples_ of luma samples for the reference layer representation, a (PicWidthInSamples_)x(PicHeightInSamples) array picSamples of luma samples, - when ChromaArrayType is not equal to 0, two RefLayerPicWidthInSamplesc)x(RefLayerPicHeightInSamplesc) arrays refLayerPicSamplesch and refLayerPicSamplescr of chroma samples for the reference layer representation, when ChromaArrayType is not equal to 0, two (PicWidthInSamplesc)x(PicHeightInSamplesc) arrays picSamplescb and picSamplescr of chroma samples. Outputs of this process are: a modified version of the array picSamples of luma samples, when ChromaArrayType is not equal to 0, modified versions of the arrays picSamplescb and picSamplescr of chroma samples. The resampling process for residual samples of a macroblock colour component as specified in clause G.8.6.3.1 is invoked with chromaFlag equal to 0, mbW equal to 16, mbH equal to 16, fieldMbFlag, refLayerPicSamples, refLayerFieldMbFlag, and refLayerCTrafo as the inputs and the output is the 16x16 array mbPredL of residual prediction samples for the luma component of the current macroblock. When ChromaArrayType is not equal to 0, for CX being replaced by Cb and Cr, the resampling process for residual samples of a macroblock colour component as specified in clause G.8.6.3.1 is invoked with chromaFlag equal to 1, mbW equal to MbWidthC, mbH equal to MbHeightC, fieldMbFlag, refLayerPicSamplescx- refLayerFieldMbFlag, and refLayerCTrafo as the inputs and the output is the (MbWidthC)x