e values for the reference layer representation when chromaFlag is equal to 0 or a(RefLayerPicWidthInSamplesc)x(RefLayerPicHeightInSamplesc) array containing constructed residual chroma sample values for the reference layer representation when chromaFlag is equal to 1, 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. Rec. ITU-T H.264 (01/2012) Outputs of this process are: two variables refArrayW and refArrayH specifying the width and height, respectively, of the constructed arrays of reference layer sample values and reference layer transform block identification, a (refArrayW)x(refArrayH) array refSampleArray of reference layer sample values, a (refArrayW)x(refArrayH) array refTransBlkIdc of reference layer transform block identifications, two variables xOffset and yOffset specifying the X and y coordinate, respectively, of the reference layer sample location that corresponds to the sample refSampleArray[ 0,0] of the array refSampleArray and the transform block identification refTransBlkIdc[ 0, 0 of the array refTransBlkIdc. The variables refW, refH, refMbW, refMbH, xOffset, yOffset, refArrayW, refArrayH, yRefScale, and yRefAdd are derived as specified in the following ordered steps: 1. The derivation process for reference layer sample locations in resampling as specified in clause G.6.3 is invoked with chromaFlag, the sample location (0, -yBorder), fieldMbFlag, and botFieldFlag as the inputs and the output is the sample location (xRefMin16, yRefMin16) in units of 1/16-th sample. 2. The derivation process for reference layer sample locations in resampling as specified in clause G.6.3 is invoked with chromaFlag, the sample location mbW - 1, mbH + yBorder ), fieldMbFlag, and botFieldFlag