- adding one extra pixel all around the frame- do not copy when SAO is not applied
5% improvement
cherry picked from commit 10fc29fc19a12c4d8168fbe1a954b76386db12d0
d249e68 hevc/sao: optimze sao implementation
libavcodec/hevc.c | 27 +++++++++---
libavcodec/hevc.h | 1 +
libavcodec/hevc_filter.c | 66 +++++++++++++++++++++---------
libavcodec/hevcdsp.h | 4 +-
libavcodec/hevcdsp_template.c | 91 +++++++++++++++++++++--------------------
5 files changed, 117 insertions(+), 72 deletions(-)