[Encoder] Completing and bug-fixing the screen content MD/ME process

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