oss a horizontal or vertical block edge Inputs to this process are: the input sample values pi and qi with i = 0..3 of a single set of samples across an edge that is to be filtered, the variable interLayerDeblockingFlag, the variable chromaEdgeFlag, the variable verticalEdgeFlag, the variables filterOffsetA and filterOffsetB, the variables qPp and qPq, the arrays sliceIdc, fieldMbFlag, mbType, cTrafo, predFlagL0, predFlagL1, refIdxL0, refIdxL1 mvL0, and mvL1, an array rSL containing residual sample values. Outputs of this process are the filtered result sample values p' and q' with i in the range of 0..2. The content dependent boundary filtering strength variable bS is derived as follows: Rec. ITU-T H.264 (01/2012) If chromaEdgeFlag is equal to 0, the SVC derivation process for the luma content dependent boundary filtering strength specified in clause G.8.7.4.3 is invoked with Po, qo, interLayerDeblockingFlag verticalEdgeFlag, sliceIdc, fieldMbFlag, mbType, cTrafo, predFlagL0, predFlagL1, refIdxL0, refIdxL1, mvL0, mvL1, and rSL as inputs, and the output is assigned to bS. Otherwise (chromaEdgeFlag is equal to 1), the bS used for filtering a set of samples of a horizontal or vertical chroma edge is set equal to the value of bS for filtering the set of samples of a horizontal or vertical luma edge, respectively, that contains the luma sample at location ( SubWidthC * X, SubHeightC * inside the luma array of the same field, where (x, y is the location of the chroma sample qo inside the chroma array for that field. The process specified in clause 8.7.2.2 is invoked with Po, qo, p1, q1, chromaEdgeFlag, bS, filterOffsetA, filterOffsetB, qPp, and qPq as inputs, and the output is assigned to filterSamplesFlag, indexA, a, and . Depending on the variable filterSamplesFlag, the following applies: If filterSamplesFlag is equal to 1, the following applies: If bS is less than 4, the process specified in clause 8.7.2.3 is invoked with Pi and qi (i = 0..2), chromaEdgeFlag, bS, B, and indexA given as input, and the output is assi