eference layer sample array construction process prior to residual resampling as specified in clause G.8.6.3.2 is invoked with chromaFlag, mbW, mbH, fieldMbFlag, botFieldFlag equal to 1, yBorder equal to 0, refLayerPicSamples, refLayerFieldMbFlag, and refLayerCTrafo as the inputs and the outputs are the variables refArrayBotW, refArrayBotH, the array refSampleArrayBot of reference layer sample values, the array refTransBlkIdcBot of reference layer transform block identifications, and the variables xOffsetBot and yOffsetBot. The interpolation process for residual prediction as specified in clause G.8.6.3.3 is invoked with chromaFlag, mbW, mbH, fieldMbFlag, botFieldFlag equal to 1, fldPrdInFrmMbFlag equal to 1, yBorder equal to 0, refArrayBotW, refArrayBotH, refSampleArrayBot, refTransBlkIdcBot, xOffsetBot, and yOffsetBot as the inputs and the output is the (mbW)x(mbH/2) array botFieldPredArray of bottom field prediction samples. 5. Each sample predArray[ X, y ] with X D..(mbW 1) and y=0..(mbH-1) of the array mbPred of residual prediction samples is derived by mbPred[ .y]=(((y%2) 0) topFieldPredArray| k,y>>1] : botFieldPredArray[ (G-313) G.8.6.3.2 Reference layer sample array construction process prior to residual resampling Inputs to this process are: - a variable chromaFlag specifying whether the luma or a chroma component is subject to the resampling process, two variables mbW and mbH specifying the width and height, respectively, of a macroblock for the considered colour component, a variable fieldMbFlag specifying whether the current macroblock is a field or a frame macroblock, a variable botFieldFlag specifying whether a top or a bottom field is subject to the resampling process (when RefLayerFrameMbsOnlyFlag is equal to 0 or frame_mbs_only_flag is equal to 0), a variable yBorder specifying the vertical border for determining the vertical size of the output arrays, an array refLayerPicSamples, which is a (RefLayerPicWidthInSamplesL)x(RefLayerPicHeightInSamples) array containing constructed residual luma sampl