f the macroblock with address refMbAddr in the layer representation with DQId equal to MaxRefLayerDQId. Rec. ITU-T H.264 (01/2012) iv. For refIntraMbAddr proceeding over the macroblock addresses for the macroblocks of the set setRefIntraMbs, refILIntraPredFlag[ refIntraMbAddr ] is set equal to 1. Otherwise (SpatialResolutionChangeFlag is equal to 1), the following ordered steps are specified: When RestrictedSpatialResolutionFlag is equal to 0, MbaffFrameFlag is equal to 0, RefLayerMbaffFrameFlag is equal to 0, and base_mode_flag for the macroblock with address mbAddr is equal to 1, the derivation process for reference layer macroblocks as specified in clause G.6.1 is invoked with the luma location (xC% 16, yC % 16), fieldMbFlag, refLayerFieldMbFlag, and refLayerMbType as the inputs and the outputs are assigned to mbAddrRefLayer and (xRef, yRef). For this invocation of clause G.6.1, CurrMbAddr is set equal to mbAddr. The element currILIntraPredFlag[ xC, yC ] is derived as follows: If any of the following conditions are true, currILIntraPredFlag[ xC, yC ] is set equal to 1: mbType[ mbAddr ] is equal to I_BL, RestrictedSpatialResolutionFlag is equal to 0, MbaffFrameFlag is equal to 0, RefLayerMbaffFrameFlag is equal to 0, base_mode_flag for the macroblock with address mbAddr is equal to 1, and refLayerMbType[mbAddrRefLayer ] is equal to I_PCM, I_16x16,I_8x8,I_4x4,or I BL. Otherwise, currILIntraPredFlag[ xC, yC ] is set equal to 0. When currILIntraPredFlag[ xC, yC ] is equal to 1, the following ordered steps are specified: Let setOfRefSamples be the set of reference layer luma sample locations xR, yR ) of the luma sample values that are used in the filtering processes specified in clause G.8.6.2.3 and, when applicable, clause G.8.6.2.4 for deriving the inter-layer intra prediction sample for the luma sample at location (xC, yC ) relative to the upper-left luma sample of the layer picture. For each of the reference layer luma sample locations ( xR, yR of the set setOfRefSamples that correspond to luma samples marked "