nal construction process for not available sample values Inputs to this process are: two variables refArrayW and refArrayH specifying the width and height, respectively, of the array of reference layer sample values, a (refArrayW)x(refArrayH) array p of reference layer sample values, a sample location difference ( xD, yD ), a sample location (x,y) inside the reference layer sample array refSampleArray, a variable cornerSampleAvailableFlag. Output of this process is the sample array p with a modified sample value at sample location (x,y). The variables diffHorVer and sgnXY are derived by diffHorVer = =Abs(xD)-Abs(yD) (G-294) sgnXY = Sign(xD*yD) (G-295) When cornerSampleAvailableFlag is equal to 0, the following ordered steps are specified: The variable cornerSample is set equal to p[ X - xD, y yD sample location (xC, yC) is set equal to - xD + Sign(xD) y - yD + Sign( yD) ) and the sample value p[x-xD,y-yD]is modified by Rec. ITU-T H.264 (01/2012) p[x-xD,y-yD]=(p[x-xD,yC]+p[xC,y-yD]+1)>>1 (G-296) The sample value p[ X, y ] is derived as follows: If diffHorVer is greater than 0, the sample location (xC, yC ) is set equal to (x -sgnXY*yD,y-yD) - and the sample value p[ X, y ] is derived by p[x,y]=(p[xC-1,yC] +2* p[ xC, yC]+p[xC+1,yC] +2) >> 2 (G-297) Otherwise, if diffHorVer is less than 0, the sample location xC, yC) is set equal to ( X - xD, y sgnXY * xD) and the sample value p[x,1 ] is derived by p[x,y]=(p[xC,yC-1]+2*p[xC,yC]+p[xC,yC+1]+ (G-298) Otherwise (diffVerHor is equal to 0), the sample location (xC, yC ) is set equal ( X - xD +Sign(x) ), - yD + Sign( yD) and the sample value p[ X, y ] is derived by [x,y]=(p[xC,y-yD]+2*px-xD,y - - yD + p[ - xD, yC]+2)> >> 2 (G-299) When cornerSampleAvailableFlag is equal to 0, the sample value p[ - xD, - yD ] is set equal to cornerSample. G.8.6.2.3 Interpolation process for Intra_Base prediction Inputs to this process are: a variable filteringModeFlag specifying the interpolation method, a variable chromaFlag specifying whether the luma or a chroma component is subject to t