on ( xMbPic, yMbPic). For this invocation of the process specified in clause 6.4.1, the current macroblock is treated as field macroblock when fieldMbFlag is equal to 1, and it is treated as frame macroblock when fieldMbFlag is equal to 0. The luma location (xxrm, yFrm) is derived by: xFrm = (xMbPic+(4*x+1)) (G-238) yFrm = (yMbPic+(4*y+1)*(1- + fieldMbFlag - field_pic_flag ) ) * + field_pic_flag ) (G-239) The variables scaleX and scaleY are modified by: scaleX = ((4*dSW) <<16) scaledW >> / scaledW (G-240) scaleY = (( ( * * SSH ) <<16) + scaledH >> 1) / scaledH (G-241) Rec. ITU-T H.264 (01/2012) d. The motion vector aMv is modified by: aMv[0]+=(((xxrm - ScaledRefLayerLeftOffset * scaleX + 32768 16) dOX (G-242) (( yFrm - ScaledRefLayerTopOffset) * scaleY + 32768 >> 16) - 4* dOY (G-243) 9. The motion vector predictor mvILPredLX[ X, y ] is derived by: mvILPredLX[ X, y [[0]=aMv[0] (G-244) mvILPredLX| X, y I[ 1]=aMv[1]/(1+fieldMbFlag) (G-245) For each 8x8 block indexed by xP, yP = 0..1 and for X being replaced by 0 or 1, the reference index predictor refIdxILPredLX[ xP, yP is set equal to tempRefldxPredLX[ 2 * xP, 2 * yP ], and when RestrictedSpatialResolutionChangeFlag is equal to 0, the following ordered steps are specified: 1. The 4x4 blocks indexed by xS, yS = 0..1 of the current 8x8 block are processed in increasing order of (2*yS+xS), and for each 4x4 block, the reference index predictor refIdxILPredLX[ xP, yP ] is modified by: refIdxILPredLX[ xP,yP = MinPositive( refIdxILPredLX[ xP, yP ], tempRefldxPredLX[ + xS, yS (G-246) live(a.)) if otherwise a >= 0 and b >=0 (G-247) 2. The 4x4 blocks indexed by xS, yS = 0..1 of the current 8x8 block are processed in increasing order of (2*yS+xS), and for each 4x4 block, when tempRefldxPredLX[ 2 * xP + xS, 2 * yP + yS ] is not equal to the reference index predictor refIdxILPredLX[ xP, yP ], the following applies: If tempRefldxPredLX[2*xP + - xS, 2 * yP + yS is equal to refIdxILPredLX[ xP, yP ], the motion vector predictor mvILPredLX[ 2 * xS, 2 yP + yS ] is modified by: mvILPr