derived as follows: If chromaEdgeFlag is equal to 0, aa*(1<<(BitDepthy -8)) (8-456) B=B*(1<<(BitDepthy-8 (8-457) Otherwise (chromaEdgeFlag equal to 1), aa*(1<<(BitDepthc-8)) (8-458) =B*(1<<(BitDepthc-8)) (8-459) The variable filterSamplesFlag is derived by: filterSamplesFlag = (bS !=0 && Abs( po - qo ) && Abs( p1 - po ) <B && q1-qo)<B) (8-460) Rec. ITU-T H.264 (01/2012) Table 8-16 - Derivation of offset dependent threshold variables a' and B' from indexA and indexB indexA (for a') or indexB (for (''')' 012345678 0000000000000000445 B00000000000000002223333444 Table 8-16 (concluded) - Derivation of indexA and indexB from offset dependent threshold variables a' and B' indexA (for a') or indexB (for (')' 8.7.2.3 Filtering process for edges with bS less than 4 Inputs to this process are the input sample values Pi and qi (i = 0..2) of a single set of samples across an edge that is to be filtered, chromaEdgeFlag, chromaStyleFilteringFlag, bS, B, and indexA, for the set of input samples, as specified in clause 8.7.2. Outputs of this process are the filtered result sample values p'i and q'i (i = 0..2) for the set of input sample values. Depending on the values of indexA and bS, the variable t'co is specified in Table 8-17. Depending on chromaEdgeFlag, the corresponding threshold variable tco is derived as follows: If chromaEdgeFlag is equal to 0, * (1 << ( BitDepthy -8)) (8-461) Otherwise (chromaEdgeFlag is equal to 1), tco t'co *(1<<(BitDepthc-8)) (8-462) Table 8-17 - Value of variable t'co as a function of indexA and bS indexA 01234567891 bS= 1 000000000000000000000001 0000000000000000000001111 00000000000000000111111111 Table 8-17 (concluded) - Value of variable as a function of indexA and bS indexA bS= 1 1111111222233344456678910118 111112222333445567881011 12222333444566789101131416 Rec. ITU-T H.264 (01/2012) The threshold variables ap and aq are derived by: ap = Abs( p2 - po) (8-463) ag = Abs( 92 - 90 ) (8-464) The threshold variable tc is determined as follows: If chromaStyleFilteringFlag is equal to 0, c=tco+((ap