ck that covers the input reference layer sample location is intra coded. The reference layer macroblock address refMbAddr is derived as follows: If RefLayerMbaffFrameFlag is equal to 0, the variable refMbAddr is derived by refMbAddr = yRef refMbH) * RefLayerPicWidthInMbs + (xRef/ refMbW) (G-285) Rec. ITU-T H.264 (01/2012) Otherwise (RefLayerMbaffFrameFlag is equal to 1), the variable refMbAddr is derived as specified in the following ordered steps: 1. A variable refMbAddrTop is derived by refMbAddrTop =2* (1(2*refMbH)) * RefLayerPicWidthInMbs +(xRef/refMbW)) (G-286) Depending on refLayerFieldMbFlag refMbAddrTop ], the variable refMbAddr is derived as follows: If refLayerFieldMbFlag[ refMbAddrTop ] is equal to 0, the variable refMbAddr is derived by refMbAddr = refMbAddrTop + yRef%(2*refMbH))/ refMbH (G-287) Otherwise (refLayerFieldMbFlag[ refMbAddrTop ] is equal to 1), the variable refMbAddr is derived by refMbAddr=refMbAddrTop + (Ryef%2 (G-288) The reference layer slice identification refSliceIdc is set equal to refLayerSliceIdc[refMbAddr ]. Depending on refLayerMbType refMbAddr ], the variable refIntraMbFlag is derived as follows: If refLayerMbType refMbAddr ] is equal to I_4x4, I_8x8, I_16x16, I_PCM, or I_BL, refIntraMbFlag is set equal to 1. Otherwise (refLayerMbType[ refMbAddr ] is not equal to I_4x4,I_8x8,I_16x16,I_PCM, or I_BL), refIntraMbFlag is set equal to 0. G.8.6.2.2.2 Construction process for not available sample values prior to intra resampling Inputs to this process are: two variables refMbW and refMbH specifying the width and height, respectively, of a reference layer macroblock for the considered colour component, two variables refArrayW and refArrayH specifying the width and height, respectively, of the array of reference layer sample values, a (refArrayW)x(refArrayH) array refSampleArray of reference layer sample values, two variables xOffset and yOffset specifying the X and y coordinates, respectively, of the reference layer sample location that corresponds to the sample refSampleArray[ 0,0] o