layer sample location (xRef, yRef) relative to the upper-left sample of the considered colour component of the reference layer picture, a variable chromaFlag specifying whether the luma or a chroma component is subject to the resampling process, Rec. ITU-T H.264 (01/2012) two variables refMbW and refMbH specifying the width and height, respectively, of a reference layer macroblock for the considered colour component, 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. Output of this process is a variable refTransBlkIdc specifying an identification for the reference layer transform block that contains the sample at location xRef, yRef). The reference layer macroblock address refMbAddr and the reference layer sample location ( xM, yM) inside the reference layer macroblock are derived as follows: If RefLayerMbaffFrameFlag is equal to 0, the variable refMbAddr and the sample location xM, yM) are derived refMbAddr = =(yRef/refMbH) * RefLayerPicWidthInMbs+(xRef/refMbW) (G-325) = xRef% refMbW (G-326) yRef% refMbH (G-327) Otherwise (RefLayerMbaffFrameFlag is equal to 1), the variable refMbAddr is derived as specified in the following ordered steps: 1. A variable refMbAddrTop and the horizontal sample location xM are derived by refMbAddrTop=2*((yRef/(2*refMbH))*RefLayerPicWidthInMbs (xRef/refMbW)) (G-328) =xRef%%erMbW (G-329) Depending on refLayerFieldMbFlag[ refMbAddrTop ], the variable refMbAddr and the vertical sample location yM are derived as follows: - If refLayerFieldMbFlag[ refMbAddrTop ] is equal to 0, the variables refMbAddr and yM are derived by refMbAddr = refMbAddrTop + (yRef % refMbH) ) / refMbH (G-330) = yRef% refMbH (G-331) Otherwise (refLayerFieldMbFlag[ refMbAddrTop ] is equal to 