The bilateral filter is the first loop filter in the decoding process chain of the JEM. Just after a TU is reconstructed, each sample in the reconstructed TU is replaced by a weighted average of itself and its neighbours within the TU. The weights are calculated based on the distance from the center sample as well as the difference in sample values.
1