lag as the inputs and the output is the sample location (RRef16, yRef16) in units of 1/16-th sample. NOTE 1 - In this invocation of the process in clause G.6.3, only the vertical component yRef16 of the sample location needs to be derived. 3. The variables yRef and yPhase are derived by yRef = (yRef16>>4)-yOffset (G-301) yPhase=(yRef16-16* yOffset)% = 16 (G-302) 4. Depending on filteringModeFlag, the sample value tempArray[ X, y ] is derived as follows: If filteringModeFlag is equal to 0, the sample value tempArray[ X, y ] is derived by tempArray[ x,y]=eF[yPhase,0] * refSampleArray[ X, yRef-1] + yPhase, * refSampleArray[ X, yRef] [[ PPase, * refSampleArray[ X, yRef + 1 + (G-303) F[ yPhase, 3 * refSampleArray[ X, yRef + -2] Otherwise (filteringModeFlag is equal to 1), the sample value tempArray[ X, y ] is derived by tempArray[ X, y]=(16 = yPhase ) * refSampleArray[ X, yRef yPhase * refSampleArray[ X, yRef 1] (G-304) Each sample predArray[ X, y ] with X = 0..(mbW -1)andy=0..(mbH/(1+fldPrdInFrmMbFlag) - + 2 * yBorder - 1) is derived as specified in the following ordered steps: 1. The derivation process for reference layer sample locations in resampling as specified in clause G.6.3 is invoked with chromaFlag, the sample location (x,0), fieldMbFlag, and botFieldFlag as the inputs and the output is the sample location (RRef16, yRef16) in units of 1/16-th sample. NOTE 2 - In this invocation of the process in clause G.6.3, only the horizontal component xRef16 of the sample location needs to be derived. Rec. ITU-T H.264 (01/2012) The variables xRef and xPhase are derived by xRef = xRef16>>4)-xOffset - (G-305) xPhase = (xRef16 - 16 xOffset) % 16 (G-306) Depending on filteringModeFlag, and with Clip1 being replaced by Cliply for chromaFlag equal to 0 and Clip1c for chromaFlag equal to 1, the sample value predArray[ X, y ] is derived as follows: If filteringModeFlag is equal to 0, the sample value tempArray| X, y ] is derived by predArray[ X, y =Clip1((eF[ xPhase, 01 * tempArray[xRef-1,y]+ eF[ xPhase, 1 * tempArray[xRef,y]+ 