 When a stream is encoded, the filter strength can be selected, or the filter can be switched off entirely.Otherwise, the filter strength is determined by coding modes of adjacent blocks, quantization step size, and the steepness of the luminance gradient between blocks.The filter operates on the edges of each 4×4 or 8×8 transform block in the luma and chroma planes of each picture.