1. A method comprising: determining at least one of an (i) activity measure associated with a set of pixels neighboring a pixel undergoing intraframe prediction or (ii) a distance measure between at least one pixel in the set of pixels and the pixel undergoing intraframe prediction; and selecting a filter for filtering at least a portion of the set of pixels in accordance with the at least one of the activity measure or the distance measure.