[Encoder] Refactor a function for further strategy adjustment

reviewed: https://rbcommons.com/s/OpenH264/r/825/