 in clause 6.4.1, the current macroblock is treated as field macroblock when Rec. ITU-T H.264 (01/2012) fieldMbFlag[ CurrMbAddr ] is equal to 1, and it is treated as frame macroblock when fieldMbFlag[ CurrMbAddr ] is equal to 0. The variables xP and yP are derived as follows: If chromaEdgeFlag is equal to 0, xP is set equal to xl and yP is set equal to yI. Otherwise (chromaEdgeFlag is equal to 1), xP is set equal to (xl / SubWidthC) and yP is set equal to ( ( yl + SubHeightC - 1) / SubHeightC ). For each sample location (xEk, yEk), k = 0..(nE - 1), the following ordered steps are specified: 1. The filtering process is applied to a set of eight samples across a 4x4 block horizontal or vertical edge denoted as pi and qi with i = 0..3 as shown in Figure 8-11 with the edge lying between Po and qo. pi and qi with i = 0..3 are specified as follows: If verticalEdgeFlag is equal to 1, qi=s[xP+xEk+i,yP+dy*yEk] (G-349) (G-350) Otherwise (verticalEdgeFlag is equal to 0), (G-351) (G-352) Let mbAddrP and mbAddrQ specify the addresses of the macroblocks that contain the samples Po and qo, respectively. 3. The process specified in clause G.8.7.4.2 is invoked with the sample values pi and qi (i = 0..3), interLayerDeblockingFlag, chromaEdgeFlag, verticalEdgeFlag, filterOffsetA, filterOffsetB, qPp set equal to qpDB[ mbAddrP ] ], qPq set equal to qpDB[ mbAddrQ ], sliceIdc, fieldMbFlag, mbType, cTrafo, predFlagL0, predFlagL1, refIdxL0, refIdxL1, mvL0, mvL1, and rSL as inputs, and the output is assigned to the filtered result sample values p'i and q'i with i = 0..2. The input sample values Pi and qi with i = 0..2 are replaced by the corresponding filtered result sample values p'i and q'i with i = 0..2 inside the sample array s' as follows: If verticalEdgeFlag is equal to 1, P+xEk+i,yP+dy*yEk]=q'i (G-353) [xP+xEk-i-1,yP+dy* yEk] p' (G-354) Otherwise (verticalEdgeFlag is equal to 0), s'[xP+xEk, yP+dy*(yEk+i)-(yEk%2)]=q'i (G-355) s'[ xP + xEk, yP P+dy*(yEk-i-1)-(yEk%2)]=pi (G-356) G.8.7.4.2 SVC filtering process for a set of samples acr