hevc: optimize sao_edge_filter