A method and apparatus for deblocking and edge enhancement of block based
digital video includes determining that two blocks share a common
boundary; measuring edge activity of the common boundary, comparing the
measured edge activity to a first threshold, filtering one or more pixels
of the two blocks with a low pass filter if the edge activity is below
the first threshold, and enhancing one or more pixels of the two
neighboring blocks if the edge activity is at or above the first
threshold.