hevc: implement the interpolation process

This is heavily inspired by the implementation in the VP8 decoder