Cost function optimization and its hardware design for the Sample Adaptive Offset of HEVC standard | IEEE Conference Publication | IEEE Xplore