Port x264 deblocking code to libavcodec.