[Encoder] Refactor a function for further strategy adjustment

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