gned to p' and q'i (i = 0..2). Otherwise (bS is equal to 4), the process specified in clause 8.7.2.4 is invoked with Pi and qi (i = 0..3), chromaEdgeFlag, a, and given as input, and the output is assigned to p' and q'i (i = 0..2). Otherwise (filterSamplesFlag is equal to 0), the filtered result samples p'i and q'i (i = 0..2) are replaced by the corresponding input samples pi and qi: for i = 0..2, (G-357) for ri=0..2, q'i = qi (G-358) G.8.7.4.3 SVC derivation process for the luma content dependent boundary filtering strength Inputs to this process are: the input sample values Po and qo of a single set of samples across an edge that is to be filtered, the variable interLayerDeblockingFlag, the variable verticalEdgeFlag, the arrays sliceIdc, fieldMbFlag, mbType, cTrafo, predFlagL0, predFlagL1, refIdxL0, refIdxL1, mvL0, and mvL1, the array rSL containing residual sample values. Output of this process is the variable bS. The following variables are derived as specified in the following: mbAddrP and mbAddrQ specify the macroblocks containing the samples Po and qo, respectively. mbPartIdxP and mbPartIdxQ specify the macroblock partitions containing the samples Po and qo, respectively. subMbPartIdxP and subMbPartIdxQ specify the sub-macroblock partitions containing the samples Po and qo, respectively. pFLXP and pFLXQ with X being replaced by 0 and 1 are equal to predFlagLX[ mbAddrP ][ mbPartIdxP ] and predFlagLX[ mbAddrQ ][ mbPartIdxQ ], respectively. refLXP and refLXQ with X being replaced by 0 and 1 are equal to refIdxLX[ mbAddrP ][ mbPartIdxP ] and refIdxLX[ mbAddrQ ][ mbPartIdxQ respectively. mvLXP and mvLXQ with X being replaced by 0 and 1 are equal to mvLX[ mbAddrP ][ mbPartIdxP ][ subMbPartP ] and mvLX[ mbAddrQ ][ mbPartIdxQ ][ subMbPartQ ], respectively. numMvP and numMvQ are equal to (pFLOP + pFL1P) and (pFL0Q+pFL1Q), respectively. When numMvP and numMvQ are both equal to 1, the variables refX and mvX with X being replaced by P and Q are derived as follows: If pFLOX is equal to 1, refX is set equal to refLOX and