edLX[2*xP+xS,2yP+yS]=mvILPredLX[2*xP+1-xS,2yP+yS = (G-248) Otherwise, if tempRefldxPredLX[2*xP + xS, 2 * yP+1-yS is equal to refIdxILPredLX[ xP, yP ], the motion vector predictor mvILPredLX[2 * xP + xS, 2 * yP + YS is modified by: mvILPredLX[2*xP+xS,2*yP+yS]=mvILPredLX[2*xP+xS,2*yP+1-yS] = - (G-249) Otherwise (tempRefIdxPredLX[2 xP + 1 xS, 2 yP+1-yS] is equal to refIdxILPredLX| xP, yP ]), the motion vector predictor mvILPredLX| 2 * xP + xS, 2 yP + yS ] is modified by: mvILPredLX[2 yP+yS] = mvILPredLX[2 * xP + 1 - + 1 - yS ] (G-250) NOTE - The process specified above can also be applied when RestrictedSpatialResolutionChangeFlag is equal to 1, but in this case, the reference index predictor refIdxILPredLX| xP, yP ] and the motion vector predictors mvILPredLX[ 2 * xP + xS, 2 yP + YS ] with xS, yS = 0..1 will not be modified. When RestrictedSpatialResolutionChangeFlag is equal to 0, slice_type is equal to EB, and direct_8x8_inference_flag is equal to 1, for each 8x8 block indexed by xP, yP = 0..1 and for X being replaced by 0 or 1, the following ordered steps are specified: 1. The motion vector tempMv with components tempMv[0] and tempMv[ is derived by: tempMv[c]=mvILPredX[3*xP,3yP]c] with c=0..1 (G-251) 2. The array mvILPredLX is modified by: mvILPredLX[2 2 yP + yS ][ c ] = tempMv[ ] with xS, yS = 0..1 and c=0..1 (G-252) When RestrictedSpatialResolutionChangeFlag is equal to 0, for each 8x8 block indexed by xP, yP = 0..1, the motion vector predictor arrays mvILPredL0 and mvILPredL1 are modified by applying the following ordered steps: 1. The variable maxX is derived as follows: If slice_type is equal to EB, maxX is set equal to 1. Rec. ITU-T H.264 (01/2012) Otherwise (slice_type is equal to EP), maxX is set equal to 0. 2. The variables xO and yO are set equal to (2 * xP) and (2 * yP), respectively. 3. The function mvDiff( mv1, mv 2 of two motion vectors mv1 and mv2 is defined by mvDiff( = (G-253) 4. The variable subPartSize is derived as follows: If for X=0..maxX, all of the following conditions are true, subPartSi