cture array prior to decoding of the next block. The reference sample filtering process for Intra_8x8 sample prediction in clause 8.3.2.2.1 is invoked with the samples pl y ] with x = -1, = y=1-.7 and X = 0..15, y=-1 (if available) as input and p'[ X, y ] with X = -1, y 7=1..7 and X = 0..15, y=-1 as output. Depending on Intra8x8PredMode| luma8x8BlkIdx ], one of the Intra_8x8 prediction modes specified in clauses 8.3.2.2.2 to 8.3.2.2.10 is invoked. 8.3.2.2.1 Reference sample filtering process for Intra 8 sample prediction Inputs to this process are the reference samples p[ X, y ] with x=-1, y -1..7 and X =0..15, y=1 (if available) for Intra_8x8 sample prediction. Outputs of this process are the filtered reference samples p'[x,y] with x=-1, y=1-.7 and X 0..15, y=1 for Intra_8x8 sample prediction. When all samples p[ X, -1 ] with X = 0..15 are marked as "available for Intra_8x8 prediction", the following applies: 1. The value of p'[ 0,-1] is derived as follows: Rec. ITU-T H.264 (01/2012) If p[-1,-1] is marked as "available for Intra_8x8 prediction", p'[ 0,-1] is derived by p'[0,-1]=(p[-1,-1]+2*p[0,-1]+p[1,-1) >>2 (8-78) Otherwise (p[-1,-1] is marked as "not available for Intra_8x8 prediction"), p'[ 0,-1] is derived by 0,-1]=(3*p[0,-1]+p[1,-1]+2)>>2 (8-79) 2. The values of p'[ X, ,1], with X = 1..14, are derived by (8-80) 3. The value of p'[ 15, -1 ] is derived by p'[15,-1]=(p[14,-1]+3*p[15,-1]+2)>>2 (8-81) When the sample p[ -1, -1] is marked as "available for Intra_8x8 prediction", the value of p'[ -1, -1] is derived as follows: If the sample p[ 0,-1] is marked as "not available for Intra_8x8 prediction" or the sample p[ -1,0] is marked as "not available for Intra_8x8 prediction", the following applies: If the sample p[ 0,-1] is marked as "available for Intra_8x8 prediction", p'[ -1,-1] is derived by (-1,-1]=(3*p[-1,-1]+p[0,-1]+2)>> 2 (8-82) Otherwise, if the sample p[0,-1] is marked as "not available for Intra 8x8 prediction" and the sample p[ [-1,0] is marked as "available for Intra_8x8 prediction", p'[-1,-1 ] is