[Encoder UT] code refactor of pixel sad/satd.

code review approved at https://rbcommons.com/s/OpenH264/r/339/